You can call this operation to query all Message Queue for Apache RocketMQ instances in a region under the current account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes OnsInstanceInServiceList

The operation that you want to perform. Set the value to OnsInstanceInServiceList.

Response parameters

Parameter Type Example Description
Data Array

The returned list of all published Message Queue for Apache RocketMQ instances.

InstanceVO
IndependentNaming Boolean true

Indicates whether any namespace is configured for the Message Queue for Apache RocketMQ instance. Valid values:

  • true: An independent namespace is configured for the Message Queue for Apache RocketMQ instance. Resource names must be unique within the Message Queue for Apache RocketMQ instance but can be the same across different Message Queue for Apache RocketMQ instances.
  • false: No independent namespace is configured for the Message Queue for Apache RocketMQ instance. Resource names must be globally unique across all Message Queue for Apache RocketMQ instances.
InstanceId String MQ_INST_111111111111_DOxxxxxx

The ID of the Message Queue for Apache RocketMQ instance.

Instance name String test1

The name of the Message Queue for Apache RocketMQ instance.

InstanceStatus Integer 5

The status of the Message Queue for Apache RocketMQ instance. Valid values:

  • 0: An Enterprise Platinum Edition instance is being deployed.
  • 2: A pay-as-you-go instance is overdue.
  • 5: A pay-as-you-go or Enterprise Platinum Edition instance is running.
  • 7: An Enterprise Platinum Edition instance is being upgraded and is available.
InstanceType Integer 2

The type of the Message Queue for Apache RocketMQ instance. Valid values:

  • 1: pay-as-you-go
  • 2: Enterprise Platinum Edition
ReleaseTime Long 1551024000000

The time when the Enterprise Platinum Edition instance expires.

RequestId String 0598E46F-DB06-40E2-AD7B-C45923EEC788

The ID of the request. This is a common parameter.

Examples

Sample requests

http(s)://[Endpoint]/? Action=OnsInstanceInServiceList
&<Common request parameters>

Sample success responses

XML format

<OnsInstanceInServiceListResponse>
  <Data>
        <InstanceVO>
              <InstanceStatus>5</InstanceStatus>
              <IndependentNaming>true</IndependentNaming>
              <InstanceId>MQ_INST_111111111111_DOxxxxxx</InstanceId>
              <ReleaseTime>1551024000000</ReleaseTime>
              <InstanceName>test1</InstanceName>
              <InstanceType>2</InstanceType>
        </InstanceVO>
  </Data>
  <RequestId>0598E46F-DB06-40E2-AD7B-C45923EEC788</RequestId>
</OnsInstanceInServiceListResponse>

JSON format

{
	"Data": {
		"InstanceVO": [
			{
				"InstanceStatus": 5,
				"IndependentNaming": true,
				"InstanceId": "MQ_INST_111111111111_DOxxxxxx",
				"ReleaseTime": 1551024000000,
				"InstanceName": "test1",
				"InstanceType": 2
			}
		]
	},
	"RequestId": "0598E46F-DB06-40E2-AD7B-C45923EEC788"
}

Error codes

For a list of error codes, visit the API Error Center.