Consulta informações sobre customer gateways.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
vpc:DescribeCustomerGateways |
list |
CustomerGateway
CustomerGateway
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região do customer gateway. Você pode chamar DescribeRegions para consultar os IDs de região. |
cn-shanghai |
| CustomerGatewayId |
string |
Não |
O ID da instância do customer gateway. Nota
Se você não especificar o ID da instância de um customer gateway, o sistema consultará informações sobre todos os customer gateways na região atual por padrão. |
cgw-bp1pvpl9r9adju6l5**** |
| PageNumber |
integer |
Não |
O número da página da lista. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página em uma consulta paginada. Valor máximo: 50. Valor padrão: 10. |
10 |
| Tag |
array<object> |
Não |
A lista de tags vinculadas ao customer gateway. |
|
|
object |
Não |
As informações da tag. |
||
| Key |
string |
Não |
A chave da tag. Se você especificar este parâmetro, o valor não poderá ser uma string vazia. A chave da tag pode ter até 64 caracteres e não pode começar com Você pode especificar até 20 chaves de tag por vez. |
TagKey |
| Value |
string |
Não |
O valor da tag. O valor da tag pode ter até 128 caracteres e pode ser uma string vazia. Não pode começar com Cada chave de tag corresponde a um valor de tag. Você pode especificar até 20 valores de tag por vez. |
TagValue |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos ao qual o customer gateway pertence. Você pode chamar ListResourceGroups para consultar os IDs de grupos de recursos. |
rg-acfmzs372yg**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| PageSize |
integer |
O número de entradas por página em uma consulta paginada. |
10 |
| RequestId |
string |
O ID da solicitação. |
E82612A9-CB90-4D7E-B394-1DB7F6509B29 |
| PageNumber |
integer |
O número da página da lista. |
1 |
| TotalCount |
integer |
O número total de entradas na lista. |
1 |
| CustomerGateways |
object |
||
| CustomerGateway |
array<object> |
A lista de customer gateways. |
|
|
array<object> |
As informações sobre o customer gateway. |
||
| IpAddress |
string |
The IP address of the gateway device in the on-premises data center. |
139.32.XX.XX |
| Asn |
integer |
The autonomous system number of the gateway device in the on-premises data center. |
65530 |
| Description |
string |
The description of the customer gateway. |
desctest |
| CustomerGatewayId |
string |
The instance ID of the customer gateway. |
cgw-bp1pvpl9r9adju6l5**** |
| CreateTime |
integer |
The timestamp when the customer gateway was created. Unit: milliseconds. The timestamp is in the UNIX format and represents the total number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1492747187000 |
| Name |
string |
The name of the customer gateway. |
nametest |
| AuthKey |
string |
The authentication key of the BGP routing protocol for the gateway device in the on-premises data center. |
AuthKey**** |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags bound to the customer gateway. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
| ResourceGroupId |
string |
The ID of the resource group to which the customer gateway belongs. You can call ListResourceGroups to query resource group information. |
rg-acfmzs372yg**** |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 10,
"RequestId": "E82612A9-CB90-4D7E-B394-1DB7F6509B29",
"PageNumber": 1,
"TotalCount": 1,
"CustomerGateways": {
"CustomerGateway": [
{
"IpAddress": "139.32.XX.XX",
"Asn": 65530,
"Description": "desctest",
"CustomerGatewayId": "cgw-bp1pvpl9r9adju6l5****",
"CreateTime": 1492747187000,
"Name": "nametest",
"AuthKey": "AuthKey****",
"Tags": {
"Tag": [
{
"Key": "TagKey",
"Value": "TagValue"
}
]
},
"ResourceGroupId": "rg-acfmzs372yg****"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Forbidden.TagKey.Duplicated | The specified tag key already exists. | The tag resources are duplicate. |
| 400 | SizeLimitExceeded.TagNum | The maximum number of tags is exceeded. | The number of tags has reached the upper limit. |
| 400 | InvalidParameter.TagValue | The specified parameter TagValue is invalid. | The error message returned because the specified tag value is invalid. |
| 400 | InvalidParameter.TagKey | The specified parameter TagKey is invalid. | The error message returned because the specified tag key is invalid. |
| 400 | Duplicated.TagKey | The specified parameter TagKey is duplicated. | The error message returned because the specified tag key already exists. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.