Lista as políticas de controle anexadas à Raiz, a uma pasta ou a um membro.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
resourcemanager:ListControlPolicyAttachmentsForTarget |
list |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| TargetId |
string |
Sim |
O ID do destino. Valores válidos:
|
fd-ZDNPiT**** |
| Language |
string |
Não |
O idioma para as descrições das políticas de controle do sistema. Valores válidos:
Nota
Este parâmetro se aplica apenas a políticas de controle do sistema. |
zh-CN |
| ControlPolicyType |
string |
Não |
RESOURCE_CONTROL_POLICY |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
C276B600-7B7A-49E8-938C-E16CFA955A82 |
| ControlPolicyAttachments |
object |
As políticas de controle anexadas. |
|
| ControlPolicyAttachment |
array<object> |
A lista de políticas de controle anexadas. |
|
|
object |
As informações sobre uma política de controle anexada. |
||
| Description |
string |
The description of the control policy. |
ExampleControlPolicy |
| EffectScope |
string |
The effective scope of the control policy. Valid values:
|
RAM |
| PolicyName |
string |
The name of the control policy. |
ExampleControlPolicy |
| PolicyId |
string |
The ID of the control policy. |
cp-jExXAqIYkwHN**** |
| AttachDate |
string |
The time when the control policy was attached. |
2021-03-19T02:56:24Z |
| PolicyType |
string |
The type of the control policy. Valid values:
|
Custom |
| ControlPolicyType |
string |
RESOURCE_CONTROL_POLICY |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "C276B600-7B7A-49E8-938C-E16CFA955A82",
"ControlPolicyAttachments": {
"ControlPolicyAttachment": [
{
"Description": "ExampleControlPolicy",
"EffectScope": "RAM",
"PolicyName": "ExampleControlPolicy",
"PolicyId": "cp-jExXAqIYkwHN****",
"AttachDate": "2021-03-19T02:56:24Z",
"PolicyType": "Custom",
"ControlPolicyType": "RESOURCE_CONTROL_POLICY"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 404 | EntityNotExists.Target | The specified target does not exist in the resource directory. | The specified object does not exist in the resource directory. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.