GetInstanceList - Query instance information in a specified region
Queries information about instances in a specified region.
Debug
You can call this operation in OpenAPI Explorer to simplify the process of signing requests. If the call is successful, OpenAPI Explorer automatically generates a software development kit (SDK) code example.
Authorization information
The following table describes the authorization information for this API call. You can add this information to the Action element of a Resource Access Management (RAM) policy statement to grant a RAM user or RAM role permissions to call this API operation.
Operation: The specific permission.
Access level: The access level of each operation. Valid values: Write, Read, and List.
Resource type: The type of resource for which authorization is supported. The following rules apply:
Required resource types are highlighted.
If the operation does not support resource-level authorization, the value is
All Resources.
Condition key: The condition key defined by the cloud service.
Associated operation: Other operations that you must have permissions to call for this operation to succeed.
Operation | Access level | Resource type | Condition key | Associated operation |
alikafka:ListInstance | Obtain | All Resources * |
| None |
Request parameters
Name | Type | Required | Description | Example |
RegionId | string | Yes | The region ID of the instance. | cn-hangzhou |
OrderId | string | No | The order ID. You can obtain the order ID on the Orders page in the Alibaba Cloud Expenses and Costs console. Important You cannot query Serverless instances by order ID. | 6072673**** |
InstanceId | array | No | A list of instance IDs. | |
string | No | The instance ID. | alikafka_post-cn-mp91gnw0**** | |
Tag | array<object> | No | A list of tags. | |
object | No | |||
Key | string | No | The tag key of the resource.
| test |
Value | string | No | The tag value of the resource.
| test |
ResourceGroupId | string | No | The resource group ID. You can query the ID in the resource group console. | rg-ac***********7q |
Series | string | No | The instance edition. You can filter instances by edition. Valid values:
| v3 |
Return parameters
Name | Type | Description | Example |
object | |||
Code | integer | The return code. A value of 200 indicates that the request was successful. | 200 |
Message | string | The returned message. | operation success. |
RequestId | string | The request ID. | 4B6D821D-7F67-4CAA-9E13-A5A997C3**** |
Success | boolean | Indicates whether the call was successful. | true |
InstanceList | array<object> | The instance details. | |
object | |||
VpcId | string | The VPC ID. | vpc-bp1ojac7bv448nifj**** |
SpecType | string | The instance type. Valid values:
| professional |
DeployType | integer | The deployment type. Valid values:
| 5 |
CreateTime | long | The time when the instance was created. Unit: ms. | 1577961819000 |
DiskSize | integer | The disk capacity. Unit: GB. | 3600 |
DiskType | integer | The disk type. Valid values:
| 1 |
SecurityGroup | string | The security group of the instance.
| sg-bp13wfx7kz9pkow**** |
SslEndPoint | string | The IP endpoint for SSL access. ApsaraMQ for Kafka instances support domain name endpoints and IP endpoints.
| 192.0.XX.XX:9093,198.51.XX.XX:9093,203.0.XX.XX:9093 |
InstanceId | string | The instance ID. | alikafka_pre-cn-mp919o4v**** |
AllConfig | string | The current configuration of the deployed ApsaraMQ for Kafka instance. | {\"enable.vpc_sasl_ssl\":\"false\",\"kafka.log.retention.hours\":\"66\",\"enable.acl\":\"false\",\"kafka.message.max.bytes\":\"6291456\"} |
ServiceStatus | integer | Note This field is outdated. We recommend that you refer to ViewInstanceStatusCode. The instance status. Valid values:
| 5 |
EipMax | integer | The peak Internet traffic. | 20 |
RegionId | string | The region ID of the instance. | cn-hangzhou |
MsgRetain | integer | The message retention period. Unit: hours. | 72 |
VSwitchId | string | The vSwitch ID. | vsw-bp1fvuw0ljd7vzmo3**** |
ExpiredTime | long | The expiration time. Unit: ms. | 1893581018000 |
TopicNumLimit | integer | The maximum number of topics. | 180 |
ZoneId | string | The zone ID. | zonei |
IoMaxRead | integer | The peak read traffic. Unit: MB/s. | 1000 |
IoMaxWrite | integer | The peak write traffic. Unit: MB/s. | 1000 |
IoMax | integer | The peak traffic. | 20 |
PaidType | integer | The billing method. Valid values:
| 1 |
Name | string | The instance name. | alikafka_post-cn-mp91gnw0**** |
EndPoint | string | The IP endpoint for default access. ApsaraMQ for Kafka instances support domain name endpoints and IP endpoints.
| 192.168.XX.XX:9092,192.168.XX.XX:9092,192.168.XX.XX:9092 |
Tags | array<object> | The tags. | |
object | |||
Key | string | The tag key. | test |
Value | string | The tag value. | test |
UpgradeServiceDetailInfo | object | The upgrade information of the instance. | |
Current2OpenSourceVersion | string | The open source version of the instance. | 2.2.0 |
DomainEndpoint | string | The domain name endpoint for default access. ApsaraMQ for Kafka instances support domain name endpoints and IP endpoints.
| alikafka-pre-cn-zv**********-1-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zv**********-2-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zv**********-3-vpc.alikafka.aliyuncs.com:9092 |
SslDomainEndpoint | string | The domain name endpoint for SSL access. ApsaraMQ for Kafka instances support domain name endpoints and IP endpoints.
| alikafka-pre-cn-zv**********-1.alikafka.aliyuncs.com:9093,alikafka-pre-cn-zv**********-2.alikafka.aliyuncs.com:9093,alikafka-pre-cn-zv**********-3.alikafka.aliyuncs.com:9093 |
SaslDomainEndpoint | string | The domain name endpoint for SASL access. ApsaraMQ for Kafka instances support domain name endpoints and IP endpoints.
| alikafka-pre-cn-zv**********-1-vpc.alikafka.aliyuncs.com:9094,alikafka-pre-cn-zv**********-2-vpc.alikafka.aliyuncs.com:9094,alikafka-pre-cn-zv**********-3-vpc.alikafka.aliyuncs.com:9094 |
ResourceGroupId | string | The resource group ID. | rg-ac***********7q |
UsedTopicCount | integer | The number of topics in use. | 3 |
UsedGroupCount | integer | The number of groups in use. | 10 |
UsedPartitionCount | integer | The number of partitions in use. | 25 |
KmsKeyId | string | The ID of the key for disk encryption in the same region. | 0d24xxxx-da7b-4786-b981-9a164dxxxxxx |
StandardZoneId | string | The standard zone ID. | cn-hangzhou-k |
IoMaxSpec | string | The traffic specification. | alikafka.hw.2xlarge |
ReservedPublishCapacity | integer | The reserved capacity for message sending. Unit: MB/s. Note This parameter is returned only for Serverless instances. | 60 |
ReservedSubscribeCapacity | integer | The reserved traffic consumption rate, in MB/s. Note This parameter is returned only for Serverless instances. | 60 |
ViewInstanceStatusCode | integer | The instance status (new version), which is synchronized with the console. Valid values:
| 2 |
ConfluentConfig | object | This parameter is returned only for Confluent series instances. | |
KafkaCU | integer | The number of CPU cores for the Kafka broker. | 4 |
KafkaStorage | integer | The disk capacity of the Kafka broker. Unit: GB. | 800 |
KafkaReplica | integer | The number of replicas for the Kafka broker. | 3 |
ZooKeeperCU | integer | The number of CPU cores for the ZooKeeper component. | 2 |
ZooKeeperStorage | integer | The disk capacity of the ZooKeeper component. Unit: GB. | 100 |
ZooKeeperReplica | integer | The number of replicas for the ZooKeeper component. | 3 |
ControlCenterCU | integer | The number of CPU cores for the Control Center component. | 4 |
ControlCenterStorage | integer | The disk capacity of the Control Center component. Unit: GB. | 300 |
ControlCenterReplica | integer | The number of replicas for the Control Center component. | 1 |
SchemaRegistryCU | integer | The number of CPU cores for the Schema Registry component. | 4 |
SchemaRegistryReplica | integer | The number of replicas for the Schema Registry component. | 2 |
ConnectCU | integer | The number of CPU cores for the Connect component. | 4 |
ConnectReplica | integer | The number of replicas for the Connect component. | 2 |
KsqlCU | integer | The number of CPU cores for the KsqlDB component. | 2 |
KsqlStorage | integer | The disk capacity of the KsqlDB component. Unit: GB. | 100 |
KsqlReplica | integer | The number of replicas for the KsqlDB component. | 2 |
KafkaRestProxyCU | integer | The number of CPU cores for the Kafka Rest Proxy component. | 4 |
KafkaRestProxyReplica | integer | The number of replicas for the Kafka Rest Proxy component. | 2 |
Series | string | The instance edition. Valid values: v2, v3, and confluent. | v3 |
AllConfig parameter description
Name | Type | Value range | Example value | Description |
enable.vpc_sasl_ssl | Boolean | - true - false | false | Indicates whether to enable encryption in transit for VPCs. If you enable this feature, you must also enable access control lists (ACLs). |
kafka.log.retention.hours | Integer | 24 to 480 | 66 | The message retention period in hours. |
enable.acl | Boolean | - true - false | false | Indicates whether to enable ACLs. This feature is not supported for instances of versions earlier than 2.2.0. Only Professional Edition and Serverless instances support ACLs. |
kafka.message.max.bytes | Integer | 1048576 to 10485760 | 6291456 | The maximum message size in bytes. |
Examples
Sample success response
JSON format
{
"Code": 200,
"Message": "operation success.",
"RequestId": "4B6D821D-7F67-4CAA-9E13-A5A997C3****",
"Success": true,
"InstanceList": {
"InstanceVO": [
{
"VpcId": "vpc-bp1ojac7bv448nifj****",
"SpecType": "professional",
"DeployType": 5,
"CreateTime": 1577961819000,
"DiskSize": 3600,
"DiskType": 1,
"SecurityGroup": "sg-bp13wfx7kz9pkow****",
"SslEndPoint": "192.0.XX.XX:9093,198.51.XX.XX:9093,203.0.XX.XX:9093",
"InstanceId": "alikafka_pre-cn-mp919o4v****",
"AllConfig": "{\\\"enable.vpc_sasl_ssl\\\":\\\"false\\\",\\\"kafka.log.retention.hours\\\":\\\"66\\\",\\\"enable.acl\\\":\\\"false\\\",\\\"kafka.message.max.bytes\\\":\\\"6291456\\\"}",
"ServiceStatus": 5,
"EipMax": 20,
"RegionId": "cn-hangzhou",
"MsgRetain": 72,
"VSwitchId": "vsw-bp1fvuw0ljd7vzmo3****",
"ExpiredTime": 1893581018000,
"TopicNumLimit": 180,
"ZoneId": "zonei",
"IoMaxRead": 1000,
"IoMaxWrite": 1000,
"IoMax": 20,
"PaidType": 1,
"Name": "alikafka_post-cn-mp91gnw0****",
"EndPoint": "192.168.XX.XX:9092,192.168.XX.XX:9092,192.168.XX.XX:9092",
"Tags": {
"TagVO": [
{
"Key": "test",
"Value": "test"
}
]
},
"UpgradeServiceDetailInfo": {
"Current2OpenSourceVersion": "2.2.0"
},
"DomainEndpoint": "alikafka-pre-cn-zv**********-1-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zv**********-2-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zv**********-3-vpc.alikafka.aliyuncs.com:9092",
"SslDomainEndpoint": "alikafka-pre-cn-zv**********-1.alikafka.aliyuncs.com:9093,alikafka-pre-cn-zv**********-2.alikafka.aliyuncs.com:9093,alikafka-pre-cn-zv**********-3.alikafka.aliyuncs.com:9093",
"SaslDomainEndpoint": "alikafka-pre-cn-zv**********-1-vpc.alikafka.aliyuncs.com:9094,alikafka-pre-cn-zv**********-2-vpc.alikafka.aliyuncs.com:9094,alikafka-pre-cn-zv**********-3-vpc.alikafka.aliyuncs.com:9094",
"ResourceGroupId": "rg-ac***********7q\n",
"UsedTopicCount": 3,
"UsedGroupCount": 10,
"UsedPartitionCount": 25,
"KmsKeyId": "0d24xxxx-da7b-4786-b981-9a164dxxxxxx",
"StandardZoneId": "cn-hangzhou-k",
"IoMaxSpec": "alikafka.hw.2xlarge",
"ReservedPublishCapacity": 60,
"ReservedSubscribeCapacity": 60,
"ViewInstanceStatusCode": 2,
"ConfluentConfig": {
"KafkaCU": 4,
"KafkaStorage": 800,
"KafkaReplica": 3,
"ZooKeeperCU": 2,
"ZooKeeperStorage": 100,
"ZooKeeperReplica": 3,
"ControlCenterCU": 4,
"ControlCenterStorage": 300,
"ControlCenterReplica": 1,
"SchemaRegistryCU": 4,
"SchemaRegistryReplica": 2,
"ConnectCU": 4,
"ConnectReplica": 2,
"KsqlCU": 2,
"KsqlStorage": 100,
"KsqlReplica": 2,
"KafkaRestProxyCU": 4,
"KafkaRestProxyReplica": 2
},
"Series": "v3"
}
]
}
}Error codes
For more information about error codes, see Common error codes.
Change history
Change time | Change summary | Operation |
2024-08-16 | OpenAPI description updated | |
2024-04-23 | OpenAPI request parameters changed. OpenAPI response structure changed. | |
2024-04-11 | OpenAPI response structure changed | |
2024-03-25 | OpenAPI response structure changed | |
2024-03-13 | OpenAPI response structure changed | |
2024-02-27 | OpenAPI response structure changed | |
2022-08-03 | OpenAPI response structure changed | |
2022-08-02 | OpenAPI response structure changed | |
2021-12-20 | OpenAPI response structure changed |