Warning | ||
---|---|---|
| ||
This page is in development and as such, its contents may be incorrect |
The policies API provides functionality that allows a administrator to add, delete or update policies
Table of Contents |
---|
Section | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Get all policiesLists all the policies configured in the Aspire
Pagination query string parameters
Response
| |||||||||||||||||||||
Response code | Description | ||||||||||||||||||||
200 | Success |
Section | |||||||
---|---|---|---|---|---|---|---|
Get all policies, filteredLists policies configured in the Aspire, filtered by a specified criteria
|
: 200 |
Section | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Get single policyGets information about a single policy configured in Aspire
Path Parameters
Query String Parameters
Response
| ||||||||||||||||||||||||||||
Response code | Description | |||||||||||||||||||||||||||
200 | Success |
Section | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Addpoliciespolicy(ies)Adds policies to Aspire
Body Parameters
Other parameters passed in the request body will depend on the type of policy being created: Throttle type:
Route type:
Example
Response
Status | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Response code | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
201 | Created | 406 | Not acceptable - there was an issue validating the input
Section | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Updatepoliciespolicy(ies)Update policies in Aspire.
Body Parameters
+ fields from "Add" section...Other parameters passed in the request body will depend on the type of policy being created - see Add a Policy above Example
Response
See Response Body for details regarding the response body returned where multiple items are affected with some (or all) returning errors Status: 200, 404, 406 |
Section | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Update policies, filteredUpdate policies configured in the Aspire, filtered by a specified criteria
Response
| ||||||||||
200 | Success | |||||||||
404 | Not found - a given seed identifier was not found | 406 | Not acceptable - there was an issue validating the input
| |
{
"message": "update result response message"
} |
Status: 200, 406
Section | |||||||
---|---|---|---|---|---|---|---|
Delete multiple policies, filteredDelete multiple policies from Aspire, filtered by a specified criteria
Body Parameters | |||||||
Name | Type | Required | Description | filter | JSON | Required | Filters retrieved policies. Check the filter definition here
Code Block | ||
---|---|---|
| ||
{ "message": "optional response message" } |
See Response Body for details regrading the response body returned where multiple items are affected with some (or all) returning errors
Status
Status: 200
Section | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Delete policy(ies)Delete a single policy one or more policies from Aspire.
Path Parameters and Query parameters
Body Parameter
ExamplesExample
Response
| ||||||||||||||||||||||||||||||||||
Response code | Description | |||||||||||||||||||||||||||||||||
200 | Success | |||||||||||||||||||||||||||||||||
404 | Not found - a given seed identifier was not found | 406 | Not acceptable - there was an issue validating the input