Todos os produtos
Search
Central de documentação

:GetVpcGatewayEndpointAttribute

Última atualização: Jul 03, 2026

Consulta os atributos de um gateway endpoint.

Depuração

O OpenAPI Explorer calcula automaticamente o valor da assinatura. Recomendamos chamar esta operação no OpenAPI Explorer para maior conveniência. A ferramenta também gera dinamicamente códigos de exemplo da operação para diferentes SDKs.

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âmetroTipoExemploDescrição
RequestIdStringA1122D0F-7B3B-5445-BB19-17F27F97FE1C

ID da solicitação.

EndpointIdStringvpce-bp1w1dmdqjpwul0v3****

ID do gateway endpoint.

EndpointNameStringtest

Nome do gateway endpoint.

EndpointDescriptionStringtest

Descrição do gateway endpoint.

ServiceNameStringcom.aliyun.cn-hangzhou.oss

Nome do serviço de endpoint.

VpcIdStringvpc-bp1nh86rugg01zol0****

ID da Virtual Private Cloud (VPC) à qual o gateway endpoint pertence.

PolicyDocumentString{"Version" : "1", "Statement" : [ { "Effect" : "Allow", "Resource" : [ "*" ], "Action" : [ "*" ], "Principal" : [ "*" ] } ] }

Política de acesso ao serviço em nuvem.

CreationTimeString2021-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.

EndpointStatusStringCreated

Status do gateway endpoint. Valores válidos:

  • Creating
  • Created
  • Modifying
  • Associating
  • Dissociating
  • Deleting
RouteTablesArray of String["vtb-bp1s6g17997knk6a3****", "vtb-bp12qsdjwm37kv679****"]

ID da tabela de rotas associada ao gateway endpoint.

ResourceGroupIdStringrg-acfmxvfvazb4p****

ID do grupo de recursos ao qual o gateway endpoint pertence.

TagsArray of Tag

Lista de tags.

KeyStringFinanceDept

Chave da tag.

ValueStringFinanceJoshua

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.