Consulta os atributos de um gateway endpoint.
Depuração
Parâmetros de solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Exemplo |
Descrição |
|
Action |
String |
Sim |
GetVpcGatewayEndpointAttribute |
Operação a ser executada. Defina o valor como GetVpcGatewayEndpointAttribute. |
|
EndpointId |
String |
Sim |
vpce-bp1w1dmdqjpwul0v3**** |
ID do gateway endpoint. |
|
RegionId |
String |
Sim |
cn-hangzhou |
ID da região do gateway endpoint. Chame a operação DescribeRegions para consultar a lista de regiões mais recente. |
Parâmetros de resposta
| Parâmetro | Tipo | Exemplo | Descrição |
| RequestId | String | A1122D0F-7B3B-5445-BB19-17F27F97FE1C | ID da solicitação. |
| EndpointId | String | vpce-bp1w1dmdqjpwul0v3**** | ID do gateway endpoint. |
| EndpointName | String | test | Nome do gateway endpoint. |
| EndpointDescription | String | test | Descrição do gateway endpoint. |
| ServiceName | String | com.aliyun.cn-hangzhou.oss | Nome do serviço de endpoint. |
| VpcId | String | vpc-bp1nh86rugg01zol0**** | ID da Virtual Private Cloud (VPC) à qual o gateway endpoint pertence. |
| PolicyDocument | String | {"Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "*" ], "Action" : [ "*" ], "Principal" : [ "*" ] } ] } | Política de acesso ao serviço em nuvem. |
| CreationTime | String | 2021-08-27T01:58:37Z | Horário de criação do gateway endpoint. Segue o padrão ISO 8601 no formato AAAA-MM-DDThh:mm:ssZ e é exibido em UTC. |
| EndpointStatus | String | Created | Status do gateway endpoint. Valores válidos:
|
| RouteTables | Array of String | ["vtb-bp1s6g17997knk6a3****", "vtb-bp12qsdjwm37kv679****"] | ID da tabela de rotas associada ao gateway endpoint. |
| ResourceGroupId | String | rg-acfmxvfvazb4p**** | ID do grupo de recursos ao qual o gateway endpoint pertence. |
| Tags | Array of Tag | Lista de tags. | |
| Key | String | FinanceDept | Chave da tag. |
| Value | String | FinanceJoshua | Valor da tag. |
Exemplos
Solicitações de exemplo
http(s)://[Endpoint]/?Action=GetVpcGatewayEndpointAttribute
&EndpointId=vpce-bp1w1dmdqjpwul0v3****
&RegionId=cn-hangzhou
&Common request parameters
Respostas de sucesso de exemplo
Formato XML
HTTP/1.1 200 OK
Content-Type:application/xml
<GetVpcGatewayEndpointAttributeResponse>
<RequestId>A1122D0F-7B3B-5445-BB19-17F27F97FE1C</RequestId>
<EndpointId>vpce-bp1w1dmdqjpwul0v3****</EndpointId>
<EndpointName>test</EndpointName>
<EndpointDescription>test</EndpointDescription>
<ServiceName>com.aliyun.cn-hangzhou.oss</ServiceName>
<VpcId>vpc-bp1nh86rugg01zol0****</VpcId>
<PolicyDocument>{"Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "*" ], "Action" : [ "*" ], "Principal" : [ "*" ] } ] }</PolicyDocument>
<CreationTime>2021-08-27T01:58:37Z</CreationTime>
<EndpointStatus>Created</EndpointStatus>
<RouteTables>["vtb-bp1s6g17997knk6a3****", "vtb-bp12qsdjwm37kv679****"]</RouteTables>
<ResourceGroupId>rg-acfmxvfvazb4p****</ResourceGroupId>
<Tags>
<Key>FinanceDept</Key>
<Value>FinanceJoshua</Value>
</Tags>
</GetVpcGatewayEndpointAttributeResponse>
Formato JSON
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A1122D0F-7B3B-5445-BB19-17F27F97FE1C",
"EndpointId" : "vpce-bp1w1dmdqjpwul0v3****",
"EndpointName" : "test",
"EndpointDescription" : "test",
"ServiceName" : "com.aliyun.cn-hangzhou.oss",
"VpcId" : "vpc-bp1nh86rugg01zol0****",
"PolicyDocument" : "{\"Version\" : \"1\", \"Statement\" : [ { \"Effect\" : \"Allow\", \"Resource\" : [ \"*\" ], \"Action\" : [ \"*\" ], \"Principal\" : [ \"*\" ] } ] }",
"CreationTime" : "2021-08-27T01:58:37Z",
"EndpointStatus" : "Created",
"RouteTables" : [ "[\"vtb-bp1s6g17997knk6a3****\", \"vtb-bp12qsdjwm37kv679****\"]" ],
"ResourceGroupId" : "rg-acfmxvfvazb4p****",
"Tags" : [ {
"Key" : "FinanceDept",
"Value" : "FinanceJoshua"
} ]
}
Códigos de erro
|
HttpCode |
Código de erro |
Mensagem de erro |
Descrição |
|
400 |
ResourceNotFound.GatewayEndpoint |
The specified resource gateway endpoint is not found. |
O gateway endpoint especificado não existe. |
Para obter uma lista de códigos de erro, consulte Códigos de erro do serviço.