Queries the status of the Control Policy feature.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetControlPolicyEnablementStatus

The operation that you want to perform. Set the value to GetControlPolicyEnablementStatus.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
EnablementStatus String Disabled

The status of the Control Policy feature. Valid values:

  • Enabled: The Control Policy feature is enabled.
  • PendingEnable: The Control Policy feature is being enabled.
  • Disabled: The Control Policy feature is disabled.
  • PendingDisable: The Control Policy feature is being disabled.
RequestId String 1DC39A4E-3B52-4EFE-9F93-4897D7FFA0C4

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=GetControlPolicyEnablementStatus
&<Common request parameters>

Sample success responses

XML format

<GetControlPolicyEnablementStatusResponse>
	  <EnablementStatus>Disabled</EnablementStatus>
	  <RequestId>1DC39A4E-3B52-4EFE-9F93-4897D7FFA0C4</RequestId>
</GetControlPolicyEnablementStatusResponse>

JSON format

{
  "EnablementStatus": "Disabled",
  "RequestId": "1DC39A4E-3B52-4EFE-9F93-4897D7FFA0C4"
}

Error codes

For a list of error codes, visit the API Error Center.