GET https://apis.wso2.com/api/am/admin/v0.15/throttling/blacklist
Retrieves all existing blocking condtions.
apim:bl_view
i
GET https://localhost:9443/api/am/admin/v0.15/throttling/blacklist
Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e
HTTP/1.1 200 OK
Content-Type: application/json
{
"count": 3,
"list": [
{
"conditionId": "0b65b686-841b-48eb-b4c2-427d24584d71",
"conditionType": "IP",
"conditionValue": "127.0.0.332"
},
{
"conditionId": "3baa990c-f90b-4e3e-9db7-f29ee7f46f48",
"conditionType": "IP",
"conditionValue": "localhost"
},
{
"conditionId": "b513eb68-69e8-4c32-92cf-852c101363cf",
"conditionType": "IP",
"conditionValue": "10.100.7.77"
}
]
}
curl -k -H "Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e" https://localhost:9443/api/am/admin/v0.15/throttling/blacklist
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Header |
Accept optional |
Media types acceptable for the response. Default is application/json. |
String |
application/json |
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 |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. Blocking conditions returned |
BlockingConditionList |
304 |
Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future). |
|
406 |
Not Acceptable. The requested media type is not supported. |
Error |
POST https://apis.wso2.com/api/am/admin/v0.15/throttling/blacklist
Adds a new Blocking condition.
apim:bl_manage
i
POST https://localhost:9443/api/am/admin/v0.15/throttling/blacklist
Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e
Content-Type: application/json
{
"conditionType": "IP",
"conditionValue": "10.100.7.77"
}
HTTP/1.1 201 Created
Location: https://localhost:9443/api/am/admin/v0.15/throttling/blacklist/b513eb68-69e8-4c32-92cf-852c101363cf
Content-Type: application/json
{
"conditionId": "b513eb68-69e8-4c32-92cf-852c101363cf",
"conditionType": "IP",
"conditionValue": "10.100.7.77"
}
curl -k -X POST -H "Authorization: Bearer a1e3951b-a15c-3d79-a15b-99f1d612843e" -H "Content-Type: application/json" https://localhost:9443/api/am/admin/v0.15/throttling/blacklist
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Body |
body required |
Blocking condition object that should to be added |
BlockingCondition (BlockingCondition) | |
Header |
Content-Type required |
Media type of the entity in the body. Default is application/json. |
String |
application/json |
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. |
BlockingCondition |
400 |
Bad Request. Invalid request or validation error |
Error |
415 |
Unsupported media type. The entity of the request was in a not supported format. |