Unbinding a Protected Object From a Policy
Function
Unbind a protected object from a policy.
Calling Method
For details, see Calling APIs.
URI
POST /v1/cnad/policies/{policy_id}/unbind
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
policy_id |
Yes |
String |
Policy ID. |
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 the user token. |
|
Content-Type |
Yes |
String |
Content-Type |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
package_id |
Yes |
String |
Instance ID. |
|
id_list |
Yes |
Array of strings |
ID list of protected IP addresses. |
Response Parameters
Status code: 200
OK
None
Example Requests
Unbind the protected IP address 634f346e-a291-4124-a6be-ac57e6152464 from the specified protection policy of the instance 634f346e-a291-4124-a6be-ac57e6152463.
POST https://{endpoint}/v1/cnad/policies/{policy_id}/unbind
{
"package_id" : "634f346e-a291-4124-a6be-ac57e6152463",
"id_list" : [ "634f346e-a291-4124-a6be-ac57e6152464" ]
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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