- Service Overview
- Getting Started
- User Guide
- API Reference
- FAQs
- General Reference
Copied.
Enabling a Governance Policy
Function
This API is used to enable a governance policy for an OU in an organization.
URI
POST https://{endpoint}/v1/governance/controls/enable
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
identifier |
Yes |
String |
Governance policy ID. |
target_identifier |
Yes |
String |
ID of an OU. |
parameters |
No |
Array of EnableControlParameters objects |
Policy parameters. |
Response Parameters
Status code: 201
Parameter |
Type |
Description |
---|---|---|
control_operate_request_id |
String |
Operation ID of a governance policy. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
request_id |
String |
Unique ID of the request. |
encoded_authorization_message |
String |
Encrypted error message. |
details |
Array of ForbiddenErrorDetail objects |
Error message indicating no permissions for cross-service invoking. |
Example Requests
Enabling a governance policy for an OU in an organization
POST https://{endpoint}/v1/governance/controls/enable { "identifier" : "string", "target_identifier" : "string" }
Example Responses
Status code: 201
Request succeeded.
{ "control_operate_request_id" : "string" }
Status Codes
Status Code |
Description |
---|---|
201 |
Request succeeded. |
403 |
No permissions. |
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