Create a new Resource
To create a new Resource with the local management interface, use the API Access Control resources page.
Procedure
- In the appliance top menu, Web > API Access Control > Resources.
- The user is prompted to set the user name, password, and domain for the Policy Server if these credentials are not already set.
- Expand the Reverse Proxy instance to show the list of available resource
servers.These are the 2nd level objects in the tree.
- Select the required resource server to create the Resource.
- Click Add.A dialog box is displayed prompting for the resource server details.
- In the Identification tab, enter the details for the new API
resource.
- Enter the user friendly description for this resource in the Name field.
- Enter the path for this resource in the Path field.
- Select the HTTP method for this resource from the Method drop-down list.
- Add any path aliases that can be used for this resource to the list of URL
aliases.
- Click Add. A dialog is displayed prompting for the new alias.
- Enter the new alias. Note: A wildcard character (*) might be used if required.
- Click Save.
- Remove any path aliases by selecting the alias or aliases in the list and click the Delete button.
- In the Policy tab, select the policy to be attached to this
resource
- Use the parent policy and select the default Verify Identity Access Policy radio button. Do not attach any policy directly. This will use the policy set in the resource server.
- Click the No Access Permitted (disabled) radio button to not allow access.
- Click the Unauthenticated Access Allowed radio button to allow unauthenticated access.
- Click the Any Authenticated radio button to allow any authenticated access.
- Click the Custom radio button to use a custom Access Control Policy.
- Select the custom policy name form the drop-down list.
- Select the rate limiting policy to be attached to this resource by using the Rate Limiting Policy dropdown.
- Select the CORS policy to be attached to this resource by using the CORS Policy dropdown.
- In the Responses tab, set any static response headers to
create.
- Click Add to add a new response header.
- In the dialog box, select the Header Name or enter a new value in the Header Name field.
- Enter the Header Value.
- Click Save.
- To delete a response header select the header from the list and click Delete.
- Click Add to add a new response header.
- In the Documentation tab, enter the settings to allow the resource
documentation to be returned.
- Enter the content type that can be used to retrieve the
documentation. For example,
application/swagger.json. If a request to the resource contains this value in the accept header, the documentation file is returned. - Select the documentation file from the drop-down list. If it does not exist click the upload button to select and upload the file. These files can be managed by using Manage the API documentation root.
- Enter the content type that can be used to retrieve the
documentation. For example,
- Once all of the data are set, click Save to create the new resource.