Chama ListControlPolicies para obter uma lista de políticas de controle.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
resourcemanager:ListControlPolicies |
list |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PolicyType |
string |
Não |
O tipo de política de controle. Valores válidos:
|
System |
| PageNumber |
integer |
Não |
O número da página. Valor inicial: 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Intervalo válido: 1 a 100. Valor padrão: 10. |
10 |
| Language |
string |
Não |
O idioma das descrições retornadas para as políticas de controle. Valores válidos:
Nota
Este parâmetro só tem efeito para políticas de controle do sistema. |
zh-CN |
| Tag |
array<object> |
Não |
As tags da política. |
|
|
object |
Não |
Uma tag. |
||
| Key |
string |
Não |
A chave da tag. |
tag_key |
| Value |
string |
Não |
O valor da tag. |
tag_value |
| ControlPolicyType |
string |
Não |
RESOURCE_CONTROL_POLICY |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| TotalCount |
integer |
O número total de políticas de controle. |
1 |
| RequestId |
string |
O ID da solicitação. |
9424A34C-3471-45AD-B6AB-924BBDFE42F9 |
| PageSize |
integer |
O número de entradas por página. |
10 |
| PageNumber |
integer |
O número da página. |
1 |
| ControlPolicies |
object |
As políticas de controle. |
|
| ControlPolicy |
array<object> |
A lista de políticas de controle. |
|
|
array<object> |
Uma política de controle. |
||
| UpdateDate |
string |
The time the control policy was last updated. |
2020-08-05T06:32:24Z |
| Description |
string |
The description of the control policy. |
支持阿里云所有操作的系统管控策略 |
| EffectScope |
string |
The effective scope of the control policy. Valid values:
|
All |
| AttachmentCount |
string |
The number of times the control policy is attached. |
44 |
| PolicyName |
string |
The name of the control policy. |
FullAliyunAccess |
| PolicyId |
string |
The ID of the control policy. |
cp-FullAliyunAccess |
| CreateDate |
string |
The time the control policy was created. |
2020-08-05T06:32:24Z |
| PolicyType |
string |
The type of the control policy. Valid values:
|
System |
| Tags |
object |
The tags attached to the control policy. |
|
| Tag |
array<object> |
The list of tags. |
|
|
object |
A tag. |
||
| Key |
string |
The tag key. |
tag_key |
| Value |
string |
The tag value. |
tag_value |
| ControlPolicyType |
string |
The type of the control policy. This parameter is available only in the China (Shenzhen) Finance and China (Shanghai) Finance regions. |
RESOURCE_CONTROL_POLICY |
Exemplos
Resposta de sucesso
JSON formato
{
"TotalCount": 1,
"RequestId": "9424A34C-3471-45AD-B6AB-924BBDFE42F9",
"PageSize": 10,
"PageNumber": 1,
"ControlPolicies": {
"ControlPolicy": [
{
"UpdateDate": "2020-08-05T06:32:24Z",
"Description": "支持阿里云所有操作的系统管控策略",
"EffectScope": "All",
"AttachmentCount": "44",
"PolicyName": "FullAliyunAccess",
"PolicyId": "cp-FullAliyunAccess",
"CreateDate": "2020-08-05T06:32:24Z",
"PolicyType": "System",
"Tags": {
"Tag": [
{
"Key": "tag_key",
"Value": "tag_value"
}
]
},
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.