Queries the basic information about an instance and its endpoints for sending and receiving messages.
Operation description
The OpenAPI provided by Alibaba Cloud is a management API that is used to manage and query Alibaba Cloud service resources. Integrate OpenAPI for management purposes only. Do not use OpenAPI for core data links that send and receive messages. This can create security threats to your data links.
Clients connect to ApsaraMQ for RocketMQ through endpoints to send and receive messages. You can call this operation to query the endpoints of an instance.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
mq:QueryInstanceBaseInfo | get | *Instance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
InstanceId | string | Yes | The ID of the instance to query. | MQ_INST_138015630679****_BAAy1Hac |
Response elements
Element | Type | Description | Example |
object | |||
| InstanceBaseInfo | object | The instance information object. | |
| Endpoints | object | The endpoints for different protocols. | |
TcpEndpoint | string | The internal endpoint for the TCP protocol. | http://MQ_INST_138015630679****_BAAy1Hac.cn-chengdu.mq-internal.aliyuncs.com:8080 |
TcpInternetEndpoint | string | The public endpoint for the TCP protocol.
| http://MQ_INST_138015630679****_BAAy1Hac.mq.cn-chengdu.aliyuncs.com:80 |
HttpInternetEndpoint | string | The public endpoint for the HTTP protocol. | http://138015630679****.mqrest.cn-chengdu.aliyuncs.com |
HttpInternalEndpoint | string | The internal endpoint for the HTTP protocol. | http://138015630679****.mqrest.cn-chengdu-internal.aliyuncs.com |
HttpInternetSecureEndpoint | string | The public endpoint for the HTTPS protocol. | https://138015630679****.mqrest.cn-chengdu.aliyuncs.com |
IndependentNaming | boolean | Indicates whether the instance has a namespace. Valid values:
| true |
MaxTps | integer | The maximum Transactions Per Second (TPS) for sending and receiving messages. Valid values: 5000, 10000, 20000, 50000, 100000, 200000, 300000, 500000, 800000, and 1000000. For more information, see the instance purchase page. Note This parameter is applicable only to ApsaraMQ for RocketMQ Platinum Edition instances. | 10000 |
Remark | string | The remarks on the instance. | ons-cn-m7r1r5f**** |
InstanceName | string | The name of the instance. The name must be 3 to 64 characters in length and can contain letters, digits, hyphens (-), and underscores (_). | test |
ReleaseTime | integer | The time when the Platinum edition instance expires. | 1603555200000 |
TopicCapacity | integer | The maximum number of topics that can be created on the instance. Valid values: 25, 50, 100, 300, and 500. Note This parameter is applicable only to ApsaraMQ for RocketMQ Platinum Edition instances. | 50 |
InstanceStatus | integer | The status of the instance. Valid values:
| 5 |
InstanceId | string | The ID of the instance. | MQ_INST_138015630679****_BAAy1Hac |
InstanceType | integer | The type of the instance. Valid values:
For more information about the types and specifications of ApsaraMQ for RocketMQ instances, see Instance types. | 2 |
CreateTime | string | The time when the instance was created. The value of this parameter is a UNIX timestamp in milliseconds. | 1570701259403 |
spInstanceId | string | The commodity ID of the instance. | ons-cn-m7r1r5f**** |
spInstanceType | integer | The sales type of the instance. Valid values:
| 1 |
SupportClassic | integer | 2 | |
RequestId | string | The common parameter. Each request has a unique ID that you can use to troubleshoot issues. | 6CC46974-65E8-4C20-AB07-D20D102E**** |
Examples
Success response
JSON format
{
"InstanceBaseInfo": {
"Endpoints": {
"TcpEndpoint": "http://MQ_INST_138015630679****_BAAy1Hac.cn-chengdu.mq-internal.aliyuncs.com:8080",
"TcpInternetEndpoint": "http://MQ_INST_138015630679****_BAAy1Hac.mq.cn-chengdu.aliyuncs.com:80",
"HttpInternetEndpoint": "http://138015630679****.mqrest.cn-chengdu.aliyuncs.com",
"HttpInternalEndpoint": "http://138015630679****.mqrest.cn-chengdu-internal.aliyuncs.com",
"HttpInternetSecureEndpoint": "https://138015630679****.mqrest.cn-chengdu.aliyuncs.com"
},
"IndependentNaming": true,
"MaxTps": 10000,
"Remark": "ons-cn-m7r1r5f****",
"InstanceName": "test",
"ReleaseTime": 1603555200000,
"TopicCapacity": 50,
"InstanceStatus": 5,
"InstanceId": "MQ_INST_138015630679****_BAAy1Hac",
"InstanceType": 2,
"CreateTime": "1570701259403",
"spInstanceId": "ons-cn-m7r1r5f****",
"spInstanceType": 1,
"SupportClassic": 2
},
"RequestId": "6CC46974-65E8-4C20-AB07-D20D102E****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.