Querying the Compliance of External Config Rules for Enrolled Accounts
Function
This API is used to query the compliance of the external Config rules for enrolled accounts.
URI
GET https://{endpoint}/v1/governance/managed-accounts/{managed_account_id}/external-config-rule-compliances
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
managed_account_id |
Yes |
String |
ID of an enrolled account. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
account_id |
String |
ID of an enrolled account. |
config_rule_compliances |
Array of ExternalConfigRuleCompliance objects |
Compliance of Config rules. |
Parameter |
Type |
Description |
---|---|---|
rule_name |
String |
Compliance rule. |
status |
String |
Compliance status. |
control_id |
String |
ID of an external rule. |
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
Querying the compliance of external Config rules for an enrolled account in an organization
GET https://{endpoint}/v1/governance/managed-accounts/{managed_account_id}/external-config-rule-compliances
Example Responses
Status code: 200
Request succeeded.
{ "account_id" : "string", "config_rule_compliances" : [ { "rule_name" : "string", "status" : "string", "control_id" : "string" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
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