Unblocking a Blocked IP Address
Function
This API is used to unblock a blocked IP address.
URI
PUT /v5/{project_id}/event/blocked-ip
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enterprise_project_id | No | String | Enterprise project ID. To query all enterprise projects, set this parameter to all_granted_eps. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
| region | Yes | String | Region ID |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| data_list | No | Array of BlockedIpRequestInfo objects | List of IP addresses to be unblocked |
Response Parameters
Status code: 200
Request succeeded.
None
Example Requests
Remove the blocked IP address 192.168.1.6 of the host af423efds-214432fgsdaf-gfdsaggbvf in SSH mode.
PUT https://{endpoint}/v5/{project_id}/event/blocked-ip
{
"data_list" : [ {
"host_id" : "af423efds-214432fgsdaf-gfdsaggbvf",
"src_ip" : "192.168.1.6",
"login_type" : "ssh"
} ]
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot