Todos os produtos
Search
Central de documentação

API Gateway:DescribeInstances

Última atualização: Jun 28, 2026

Descreve os detalhes de uma ou mais instâncias compartilhadas ou dedicadas em uma região.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

apigateway:DescribeInstances

get

*Instance

acs:apigateway:{#regionId}:{#accountId}:instance/*

Nenhuma Nenhuma

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

InstanceId

string

Não

O ID da instância. Se você não especificar este parâmetro, todas as instâncias serão consultadas.

api-shared-vpc-001

Language

string

Não

O idioma da resposta. As descrições das políticas do sistema são retornadas neste idioma.

  • en: Inglês.

  • zh: Chinês.

  • ja: Japonês.

zh

InstanceType

string

Não

EnableTagAuthorization

boolean

Não

Indica se a autorização baseada em tags deve ser ativada.

false

Tag

array<object>

Não

As tags anexadas à instância.

object

Não

As tags anexadas à instância.

Key

string

Não

A chave da tag.

key1

Value

string

Não

O valor da tag.

value

PageNumber

integer

Não

PageSize

integer

Não

500

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

PageNumber

integer

O número da página atual.

1

RequestId

string

O ID da solicitação.

CEB6EC62-B6C7-5082-A45A-45A204724AC2

PageSize

integer

O número de entradas por página.

10

TotalCount

integer

O número total de entradas.

1

Instances

object

InstanceAttribute

array<object>

Os detalhes das instâncias.

array<object>

Os detalhes das instâncias.

Status

string

The instance status.

RUNNING

VpcSlbIntranetEnable

boolean

Indicates whether the internal-facing SLB for the VPC is enabled.

true

ClassicEgressAddress

string

The egress IP address of the classic network.

10.0.0.1

ZoneLocalName

string

The name of the zone.

Multi Zone 2

UserVpcId

string

The ID of the user's VPC.

vpc-t***hx****yu9****t0g4

VpcIntranetEnable

boolean

Indicates whether the internal-facing VPC is enabled.

true

VpcOwnerId

integer

The ID of the Alibaba Cloud account to which the VPC belongs.

1408453217640291****

InstanceId

string

The instance ID.

api-shared-vpc-020

InstanceRpsLimit

integer

The records per second (RPS) limit of the instance.

500

InstanceType

string

The type of the instance. Valid values:

  • VPC_SHARED: shared instance (VPC)

  • VPC_DEDICATED: dedicated instance (VPC)

VPC_SHARED

RegionId

string

The ID of the region where the instance resides.

cn-beijing

InstanceSpec

string

The instance specification.

api.s1.small

InstanceChargeType

string

The billing method of the instance. Valid values:

  • PrePaid: subscription.

  • PayAsYouGo: pay-as-you-go.

PrePaid

HttpsPolicies

string

The HTTPS security policy.

HTTPS2_TLS1_2

VpcEgressAddress

string

The egress CIDR block of the internal-facing VPC.

100.104.254.0/26

NewVpcEgressAddress

string

The new egress CIDR block of the internal-facing VPC.

100.104.253.0/26

EgressIpv6Enable

boolean

Indicates whether IPv6 egress is enabled.

true

ExpiredTime

string

The expiration time of the instance.

1659801600000

InstanceName

string

The instance name.

test

ZoneId

string

The zone ID.

cn-hangzhou-MAZ5(g,h)

SupportIpv6

boolean

Indicates whether IPv6 is supported.

true

InternetEgressAddress

string

The public egress IP address.

47.241.89.244

CreatedTime

string

The time when the instance was created.

2021-10-22 15:36:53.0

InstanceSpecAttributes

object

SpecAttribute

array<object>

The details of the instance specifications.

object

The details of the instance specifications.

Value

string

The value of the specification.

2500

LocalName

string

The name of the variable.

最大每秒请求数

UserVswitchId

string

The ID of the user's vSwitch.

vsw-t4***eh****d7q****i2f

AclName

string

The name of the access control list (ACL).

test

AclType

string

The type of the ACL. Valid values:

  • black: blacklist

  • white: whitelist

white

AclStatus

string

Indicates whether the ACL is enabled. Valid values:

  • on: enabled.

  • off: disabled.

on

AclId

string

The ID of the ACL.

acl-uf6f9zfxfxtp5j9ng3yv4

IntranetSegments

string

The internal network CIDR blocks from which the API Gateway instance can be accessed.

[\"172.36.0.0/16\",\"172.31.16.0/20\"]

IPV6AclName

string

The name of the IPv6 ACL.

testIPV6

IPV6AclId

string

The ID of the IPv6 ACL.

acl-124resFfs235

IPV6AclType

string

The type of the IPv6 ACL. Valid values:

  • black: blacklist

  • white: whitelist

black

IPV6AclStatus

string

Indicates whether the IPv6 ACL is enabled. Valid values:

  • on: enabled.

  • off: disabled.

off

DedicatedInstanceType

string

The type of the dedicated instance. Valid values:

  • vpc_connect: VPC-connected dedicated instance

  • normal: classic network-based dedicated instance

vpc_connect

InstanceCidrBlock

string

The CIDR block where the dedicated instance resides.

  • 172.16.0.0/12

  • 192.168.0.0/16

192.168.0.0/16

ConnectVpcId

string

The ID of the user VPC that is connected to the VPC-connected dedicated instance.

vpc-m5eo7khlb4h4f8y9egsdg

NetworkInterfaceAttributes

object

NetworkInterfaceAttribute

array<object>

The network interface details of the user VPC connected to the dedicated instance.

object

The network interface details of the user VPC connected to the dedicated instance.

VswitchId

string

The ID of the vSwitch.

vsw-2zeqals6rbj51bhjn8b89

SecurityGroupId

string

The ID of the security group. Services in the same security group can access each other.

sg-2zeehz13zcyj1kfk3o85

CidrBlock

string

The CIDR block of the vSwitch.

192.168.17.0/24

ZoneId

string

The zone ID.

cn-shenzhen-d

InstanceClusterId

string

The ID of the dedicated instance cluster that manages this dedicated instance.

apigateway-cluster-sh-1523cafbgffd

MaintainStartTime

string

The start time of the maintenance window. The time is in the HH:mmZ format and is in UTC.

22:00Z

MaintainEndTime

string

The end time of the maintenance window. The time is in the HH:mmZ format and is in UTC.

01:00Z

ConnectCidrBlocks

string

The internal CIDR blocks of the user VPC that can be accessed by the VPC-connected dedicated instance.

[\"172.16.0.0/24\",\"172.16.1.0/24\"]

PrivateDnsList

object

PrivateDns

array

A list of internal domain names.

string

The internal domain name.

www.private.com

Tags

object

TagInfo

array<object>

A list of tags.

object

Key

string

The tag key.

tag3

Value

string

The tag value.

50699_0

Exemplos

Resposta de sucesso

JSON formato

{
  "PageNumber": 1,
  "RequestId": "CEB6EC62-B6C7-5082-A45A-45A204724AC2",
  "PageSize": 10,
  "TotalCount": 1,
  "Instances": {
    "InstanceAttribute": [
      {
        "Status": "RUNNING",
        "VpcSlbIntranetEnable": true,
        "ClassicEgressAddress": "10.0.0.1",
        "ZoneLocalName": "Multi Zone 2",
        "UserVpcId": "vpc-t***hx****yu9****t0g4",
        "VpcIntranetEnable": true,
        "VpcOwnerId": 0,
        "InstanceId": "api-shared-vpc-020",
        "InstanceRpsLimit": 500,
        "InstanceType": "VPC_SHARED",
        "RegionId": "cn-beijing",
        "InstanceSpec": "api.s1.small",
        "InstanceChargeType": "PrePaid",
        "HttpsPolicies": "HTTPS2_TLS1_2",
        "VpcEgressAddress": "100.104.254.0/26",
        "NewVpcEgressAddress": "100.104.253.0/26",
        "EgressIpv6Enable": true,
        "ExpiredTime": "1659801600000",
        "InstanceName": "test",
        "ZoneId": "cn-hangzhou-MAZ5(g,h)",
        "SupportIpv6": true,
        "InternetEgressAddress": "47.241.89.244",
        "CreatedTime": "2021-10-22 15:36:53.0",
        "InstanceSpecAttributes": {
          "SpecAttribute": [
            {
              "Value": "2500",
              "LocalName": "最大每秒请求数"
            }
          ]
        },
        "UserVswitchId": "vsw-t4***eh****d7q****i2f",
        "AclName": "test",
        "AclType": "white",
        "AclStatus": "on",
        "AclId": "acl-uf6f9zfxfxtp5j9ng3yv4",
        "IntranetSegments": "[\\\"172.36.0.0/16\\\",\\\"172.31.16.0/20\\\"]",
        "IPV6AclName": "testIPV6",
        "IPV6AclId": "acl-124resFfs235",
        "IPV6AclType": "black",
        "IPV6AclStatus": "off",
        "DedicatedInstanceType": "vpc_connect",
        "InstanceCidrBlock": "192.168.0.0/16",
        "ConnectVpcId": "vpc-m5eo7khlb4h4f8y9egsdg",
        "NetworkInterfaceAttributes": {
          "NetworkInterfaceAttribute": [
            {
              "VswitchId": "vsw-2zeqals6rbj51bhjn8b89",
              "SecurityGroupId": "sg-2zeehz13zcyj1kfk3o85",
              "CidrBlock": "192.168.17.0/24",
              "ZoneId": "cn-shenzhen-d"
            }
          ]
        },
        "InstanceClusterId": "apigateway-cluster-sh-1523cafbgffd",
        "MaintainStartTime": "22:00Z",
        "MaintainEndTime": "01:00Z",
        "ConnectCidrBlocks": "[\\\"172.16.0.0/24\\\",\\\"172.16.1.0/24\\\"]",
        "PrivateDnsList": {
          "PrivateDns": [
            "www.private.com"
          ]
        },
        "Tags": {
          "TagInfo": [
            {
              "Key": "tag3",
              "Value": "50699_0"
            }
          ]
        }
      }
    ]
  }
}

Códigos de erro

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.