All Products
Search
Document Center

API Gateway:DescribeInstances

Last Updated:Feb 09, 2023

Queries the details of shared instances or dedicated instances in a region.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
apigateway:DescribeInstancesRead
  • ApiGateway
    acs:apigateway:*:{#accountId}:*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringNo

The ID of the instance. If you do not specify this parameter, all instances are queried.

api-shared-vpc-001
LanguagestringNo

The language that is used to return the description of the system policy. Valid values:

  • en: English
  • zh: Chinese
  • ja: Japanese
zh
EnableTagAuthorizationbooleanNo

Specifies whether tag authorization is enabled.

false
TagarrayNo

The tags that are bound to the instance.

objectNo

The tags that are bound to the instance.

KeystringNo

The key of the tag.

key1
ValuestringNo

The values of the tag.

value

Response parameters

ParameterTypeDescriptionExample
object
PageNumberinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

CEB6EC62-B6C7-5082-A45A-45A204724AC2
PageSizeinteger

The number of items returned per page.

10
TotalCountinteger

The total number of entries.

1
Instancesarray

The details of the instances.

object

The information about the instance list.

Statusstring

The instance status.

RUNNING
VpcSlbIntranetEnableboolean

Indicates whether VPC SLB is enabled.

true
ClassicEgressAddressstring

The outbound IP address.

10.0.0.1
ZoneLocalNamestring

The zone.

Multi-zone 2
UserVpcIdstring

The ID of the user's VPC.

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

Indicates whether VPC is enabled.

true
VpcOwnerIdlong

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

1408453217640291
InstanceIdstring

The ID of the instance.

api-shared-vpc-020
InstanceRpsLimitinteger

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

500
InstanceTypestring

The instance type.

  • VPC_SHARED: shared instance (VPC)
  • VPC_DEDICATED: dedicated instance (VPC)
VPC_SHARED
RegionIdstring

The region where the instance is located.

cn-beijing
InstanceSpecstring

The specifications of the instance.

api.s1.small
InstanceChargeTypestring

The billing method of the instance. Valid values:

  • PrePaid: subscription
  • PayAsYouGo: pay-as-you-go
PrePaid
HttpsPoliciesstring

The HTTPS security policy.

HTTPS2_TLS1_2
VpcEgressAddressstring

The outbound CIDR block of the VPC.

100.104.254.0/26
EgressIpv6Enableboolean

Indicates whether outbound IPv6 is supported.

true
ExpiredTimestring

The time when the instance expires.

1659801600000
InstanceNamestring

The name of the instance.

test
ZoneIdstring

The zone ID.

cn-hangzhou-MAZ5(g,h)
SupportIpv6boolean

Indicates whether IPv6 is supported.

true
InternetEgressAddressstring

The outbound public IP address.

47.241.89.244
CreatedTimestring

The time when the instance was created.

2021-10-22 15:36:53.0
InstanceSpecAttributesarray

The specifications of the instance.

object

The specifications of the instance.

Valuestring

The variable value.

2500
LocalNamestring

The variable name.

The maximum RPS.
UserVswitchIdstring

The ID of the user interaction machine.

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

The name of the access control policy.

test
AclTypestring

The type of the access control policy. Valid values:

  • black: blacklist
  • white: whitelist
white
AclStatusstring

Indicates whether access control is enabled. Valid values:

  • on: yes
  • off: no
on
AclIdstring

The ID of the access control policy.

acl-uf6f9zfxfxtp5j9ng3yv4

Example

Normal return example

JSONFormat

{
  "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\n",
        "VipTypeList": "",
        "UserVpcId": "vpc-t***hx****yu9****t0g4",
        "VpcIntranetEnable": true,
        "VpcOwnerId": 1408453217640291,
        "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",
        "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": "The maximum RPS.\n"
            }
          ]
        },
        "UserVswitchId": "vsw-t4***eh****d7q****i2f",
        "AclName": "test",
        "AclType": "white",
        "AclStatus": "on",
        "AclId": "acl-uf6f9zfxfxtp5j9ng3yv4",
        "IntranetSegments": "",
        "IPV6AclName": "",
        "IPV6AclId": "",
        "IPV6AclType": "",
        "IPV6AclStatus": ""
      }
    ]
  }
}

Error codes

For a list of error codes, visit the API error center.

Change history

Change timeSummary of changesOperate
2022-06-10Add Operation