All Products
Search
Document Center

Resource Management:GetPolicyEnableStatus

Last Updated:Mar 03, 2024

Queries the status of the Tag Policy feature.

Operation description

This topic provides an example on how to call the API operation to query the status of the Tag Policy feature for the current logon account. The response shows that the Tag Policy feature in multi-account mode is enabled for the current logon account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. Set the value to cn-shanghai.

cn-shanghai
UserTypestringNo

The mode of the Tag Policy feature. This parameter specifies a filter condition for the query. Valid values:

  • USER: single-account mode
  • RD: multi-account mode

For more information about the modes of the Tag Policy feature, see Modes of the Tag Policy feature.

Note The value of this parameter is not case-sensitive.
RD

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

6C8DF1B1-C65F-5D3A-9FDA-26A4683BB36B
StatusModelsobject []

The information of the Tag Policy feature.

UserTypestring

The mode of the Tag Policy feature. Valid values:

  • USER: single-account mode
  • RD: multi-account mode

For more information about the modes of the Tag Policy feature, see Modes of the Tag Policy feature.

RD
Statusstring

The status of the Tag Policy feature. Valid values:

  • PendingEnable: The feature is being enabled.
  • Enabled: The feature is enabled.
  • Closing: The feature is being disabled.
  • Disabled: The feature is disabled.
Enabled

Examples

Sample success responses

JSONformat

{
  "RequestId": "6C8DF1B1-C65F-5D3A-9FDA-26A4683BB36B",
  "StatusModels": [
    {
      "UserType": "RD",
      "Status": "Enabled"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.