Queries the status of the Tag Policy feature.
Operation description
Queries the Tag Policy feature status for the current logon account. In this example, the response shows that multi-account mode is enabled.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
tag:GetPolicyEnableStatus |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Set the value to cn-shanghai. |
cn-shanghai |
| UserType |
string |
No |
The mode of the Tag Policy feature. Valid values:
Modes of the Tag Policy feature. Note
This parameter is not case-sensitive. |
RD |
| OpenType |
string |
No |
The enabling type. Valid values:
|
TAG_POLICY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6C8DF1B1-C65F-5D3A-9FDA-26A4683BB36B |
| StatusModels |
array<object> |
The Tag Policy feature details. |
|
|
object |
The Tag Policy feature details. |
||
| UserType |
string |
The mode of the Tag Policy feature. Valid values:
|
RD |
| Status |
string |
The status of the Tag Policy feature. Valid values:
|
Enabled |
Examples
Success response
JSON format
{
"RequestId": "6C8DF1B1-C65F-5D3A-9FDA-26A4683BB36B",
"StatusModels": [
{
"UserType": "RD",
"Status": "Enabled"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.