Blacklist (Individual)


Delete a Blocking condition

DELETE https://apis.wso2.com/api/am/admin/v0.12/throttling/blacklist/{conditionId}

Deletes an existing Blocking condition

OAuth 2.0 Scope

apim:bl_managei

Request

DELETE https://localhost:9443/api/am/admin/v0.12/throttling/blacklist/b513eb68-69e8-4c32-92cf-852c101363cf Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e

Response

HTTP/1.1 200 OK

Sample CURL

curl -k -X DELETE -H "Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e" -H "Content-Type: application/json" https://localhost:9443/api/am/admin/v0.12/throttling/blacklist/b513eb68-69e8-4c32-92cf-852c101363cf

Parameters

Type Name Description Schema Default
Path

conditionId

required

Blocking condition identifier

String

Header

If-Match

optional

Validator for conditional requests; based on ETag (Will be supported in future).

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on Last Modified header (Will be supported in future).

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 (Will be supported in future).

Error

Get a Blocking Condition

GET https://apis.wso2.com/api/am/admin/v0.12/throttling/blacklist/{conditionId}

Retrieves a Blocking Condition providing the condition Id

OAuth 2.0 Scope

apim:bl_viewi

Request

GET https://localhost:9443/api/am/admin/v0.12/throttling/blacklist/b513eb68-69e8-4c32-92cf-852c101363c Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e

Response

HTTP/1.1 200 OK Content-Type: application/json { "conditionId": "b513eb68-69e8-4c32-92cf-852c101363cf", "conditionType": "IP", "conditionValue": "10.100.7.77" }

Sample CURL

curl -k -H "Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e" https://localhost:9443/api/am/admin/v0.12/throttling/blacklist/b513eb68-69e8-4c32-92cf-852c101363c

Parameters

Type Name Description Schema Default
Path

conditionId

required

Blocking condition identifier

String

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource (Will be supported in future).

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future).

String

Responses

HTTP Code Description Schema

200

OK. Condition returned

BlockingCondition

304

Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future).

404

Not Found. Requested Condition does not exist.

Error

406

Not Acceptable. The requested media type is not supported.

Error