Consulta as instâncias de rede entre contas que foram autorizadas para uma instância do Cloud Enterprise Network (CEN).
Descrição da operação
Chamar a operação DescribeGrantRulesToCen com parâmetros inválidos retorna um RequestId, mas não fornece informações sobre as instâncias de rede entre contas que a instância do CEN tem permissão para acessar.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:DescribeGrantRulesToCen |
get |
*CenInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
4906B209-8613-5C19-9CC9-B7A3FFDA731C |
| GrantRules |
object |
||
| GrantRule |
array<object> |
Uma lista de regras de concessão. |
|
|
object |
Os detalhes da instância de rede. |
||
| ChildInstanceType |
string |
The type of the network instance. Valid values:
|
VPC |
| ChildInstanceRegionId |
string |
The region ID of the network instance. |
cn-hangzhou |
| ChildInstanceOwnerId |
integer |
The ID of the Alibaba Cloud account that owns the network instance. |
1250123456123456 |
| ChildInstanceId |
string |
The ID of the network instance. |
vpc-bp1rgeww9mdstuuar**** |
| CenId |
string |
The ID of the CEN instance. |
cen-nye53d7p3hzyu4**** |
| OrderType |
string |
The payer for the network instance. Valid values:
|
PayByCenOwner |
| EffectiveOrderType |
string |
The effective payer for the network instance. |
PayByCenOwner |
| CenOwnerId |
integer |
The ID of the Alibaba Cloud account that owns the CEN instance. |
1210123456123456 |
| CreateTime |
integer |
The time when the permission was granted. The time is in UTC and follows the ISO 8601 standard. |
2024-01-24T16:27Z |
| TotalCount |
integer |
O número total de entradas. |
1 |
| MaxResults |
integer |
|
20 |
| NextToken |
string |
O token de paginação que é usado na próxima solicitação para recuperar uma nova página de resultados.
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "4906B209-8613-5C19-9CC9-B7A3FFDA731C",
"GrantRules": {
"GrantRule": [
{
"ChildInstanceType": "VPC",
"ChildInstanceRegionId": "cn-hangzhou",
"ChildInstanceOwnerId": 1250123456123456,
"ChildInstanceId": "vpc-bp1rgeww9mdstuuar****",
"CenId": "cen-nye53d7p3hzyu4****",
"OrderType": "PayByCenOwner",
"EffectiveOrderType": "PayByCenOwner",
"CenOwnerId": 1210123456123456,
"CreateTime": 0
}
]
},
"TotalCount": 1,
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | MissingParameter | Missing parameter. | The error message returned because one or more required parameters are not set. |
| 400 | InvalidParameter.RegionId | The specified Region Id is invalid. | The error message returned because the specified region ID is invalid. |
| 400 | IllegalParam.NextToken | NextToken is illegal | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | MissingParameter.RegionId | Missing RegionId parameter. | Missing RegionId parameter. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.