Disabling an Assignment
Function
This API is used to disable an assignment based on its ID.
URI
POST /v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/disable
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| domain_id | Yes | String | Specifies the account ID. Maximum length: 36 |
| policy_assignment_id | Yes | String | Specifies the assignment ID. Maximum length: 36 |
Request Parameters
None
Response Parameters
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Specifies the error code. |
| error_msg | String | Specifies the error message. |
Example Request
None
Example Response
None
Status Codes
| Status Code | Description |
|---|---|
| 202 | Operation accepted. |
| 400 | Invalid parameter. |
| 403 | Authentication failed or you do not have the operation permission. |
| 404 | No assignments found. |
| 500 | Internal server error. |
Error Codes
See Error Codes.
Last Article: Enabling an Assignment
Next Article: Running a Resource Compliance Evaluation
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.