Advanced Policies


Get all Advanced level throttle policies
GET https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced

Get all Advanced level throttle policies

OAuth 2.0 Scope

apim:tier_viewi

Request

GET https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced

Response

Not Available

Sample CURL

Not Available

Parameters

Type Name Description Schema Default
Header

Accept

optional

Media types acceptable for the response. Default is JSON.

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec.

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource.

String

Responses

HTTP Code Description Schema

200

OK. Policies returned

AdvancedThrottlePolicyList

304

Not Modified. Empty body because the client has already the latest version of the requested resource.

406

Not Acceptable. The requested media type is not supported.

Error

Delete an Advanced level throttle policy
DELETE https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Delete an Advanced level throttle policy

OAuth 2.0 Scope

apim:tier_managei

Request

DELETE https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Response

Not Available

Sample CURL

Not Available

Parameters

Type Name Description Schema Default
Path

policyId

required

Thorttle policy UUID

String

Header

If-Match

optional

Validator for conditional requests; based on ETag.

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on Last Modified header.

String

Responses

HTTP Code Description Schema

200

OK. Resource successfully deleted.

404

Not Found. Resource to be deleted does not exist.

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error

Retrieve an Advanced Policy
GET https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Retrieve a Advanced Policy providing the policy name.

OAuth 2.0 Scope

apim:tier_viewi

Request

GET https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Response

Not Available

Sample CURL

Not Available

Parameters

Type Name Description Schema Default
Path

policyId

required

Thorttle policy UUID

String

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec.

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource.

String

Responses

HTTP Code Description Schema

200

OK. Policy returned

AdvancedThrottlePolicy

304

Not Modified. Empty body because the client has already the latest version of the requested resource.

404

Not Found. Requested Policy does not exist.

Error

406

Not Acceptable. The requested media type is not supported.

Error

Update an Advanced level throttle policy
PUT https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Update an Advanced level throttle policy

OAuth 2.0 Scope

apim:tier_managei

Request

PUT https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced/{policyId}

Response

Not Available

Sample CURL

Not Available

Parameters

Type Name Description Schema Default
Path

policyId

required

Thorttle policy UUID

String

Body

body

required

Policy object that needs to be modified

AdvancedThrottlePolicy (AdvancedThrottlePolicy)

Header

Content-Type

required

Media type of the entity in the body. Default is JSON.

String

JSON

Header

If-Match

optional

Validator for conditional requests; based on ETag.

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on Last Modified header.

String

Responses

HTTP Code Description Schema

200

OK. Policy updated.

AdvancedThrottlePolicy

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. The resource to be updated does not exist.

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error

Add an Advanced level throttle policy
POST https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced

Add an Advanced level throttle policy

OAuth 2.0 Scope

apim:tier_managei

Request

POST https://apis.wso2.com/api/am/admin/v0.14/throttling/policies/advanced

Response

Not Available

Sample CURL

Not Available

Parameters

Type Name Description Schema Default
Body

body

required

Advanced level policy object that should to be added

AdvancedThrottlePolicy (AdvancedThrottlePolicy)

Header

Content-Type

required

Media type of the entity in the body. Default is JSON.

String

JSON

Responses

HTTP Code Description Schema

201

Created. Successful response with the newly created object as entity in the body. Location header contains URL of newly created entity.

AdvancedThrottlePolicy

400

Bad Request. Invalid request or validation error

Error

415

Unsupported media type. The entity of the request was in a not supported format.