API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (RocketMQ/2022-08-01) uses the ROA signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.
Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.
Custom signature scenarios
If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.
Account and security preparation
Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.
Instances
|
API |
Title |
Description |
| CreateInstance | Create an instance | Creates an ApsaraMQ for RocketMQ 5.x series instance. |
| UpdateInstance | Update an instance | Updates the basic information and specification configurations of an ApsaraMQ for RocketMQ instance. |
| DeleteInstance | Delete an instance | Releases an instance. |
| ListInstances | Query instance list | Queries the list of all ApsaraMQ for RocketMQ instances in a specified region. |
| GetInstance | Get details of a specified instance | Retrieves the details of a specified instance. |
Topics
|
API |
Title |
Description |
| CreateTopic | Create a topic | Creates a topic for ApsaraMQ for RocketMQ. A topic is the top-level container for message transmission and storage in ApsaraMQ for RocketMQ and is used to identify messages of the same business logic. In the messaging model, producers send messages to topics, and consumers consume messages by subscribing to specified topics. |
| UpdateTopic | UpdateTopic | Updates the remarks for a topic. |
| DeleteTopic | Delete a topic | Deletes a specified topic. |
| ListTopics | List topics | Queries the list of topics in a specified instance. |
| GetTopic | Retrieve details of a specified topic | Retrieves the details of a specified topic. |
Consumer groups
|
API |
Title |
Description |
| CreateConsumerGroup | Create a consumer group | Creates a consumer group (ConsumerGroup) for ApsaraMQ for RocketMQ. A consumer group is a load balancing group in ApsaraMQ for RocketMQ that contains multiple consumers with consistent consumption behavior. Consumers must subscribe to related topics by specifying a consumer group to implement message subscription. |
| UpdateConsumerGroup | Update a consumer group | Updates the basic information and consumption retry policy of a consumer group. |
| DeleteConsumerGroup | Delete a consumer group | Deletes a specified consumer group. |
| ListConsumerGroups | List consumer groups | Queries the list of consumer groups under a specified instance. |
| GetConsumerGroup | Get details of a specified consumer group | Retrieves the details of a specified consumer group. |
Subscriptions
|
API |
Title |
Description |
| ListTopicSubscriptions | ListTopicSubscriptions | Queries the subscriptions of a specific topic. |
| ListConsumerGroupSubscriptions | ListConsumerGroupSubscriptions | Lists the subscription relationships for a consumer group. |
| GetConsumerGroupSubscription | GetConsumerGroupSubscription | Queries the subscriptions of a consumer group. |
| DeleteConsumerGroupSubscription | Delete consumer group subscription | Deletes the subscription of a consumer group. |
Consumption
|
API |
Title |
Description |
| ListConsumerConnections | ListConsumerConnections | Retrieves the connection information for clients in a specified consumer group. |
| GetConsumerGroupLag | GetConsumerGroupLag | Queries the message accumulation of a consumer group. |
| GetConsumerStack | GetConsumerStack | Queries the stack information about a consumer. |
| ResetConsumeOffset | ResetConsumeOffset | Resets the consumer offset of a consumer group. If you reset a consumer offset, the offset from which a consumer starts to consume messages is changed. If faults occur or wrong messages are consumed during message consumption, you can reset the consumer offset to roll back the consumption to a specific offset for reconsumption. You can also reset the consumer offset to the latest offset and temporarily leave the accumulated messages unhandled. |
Messages
|
API |
Title |
Description |
| ListMessages | Query message list | Queries a list of messages. |
| GetMessageDetail | Retrieve message details | Retrieves the details of a specified message. |
| VerifySendMessage | VerifySendMessage | Tests whether messages can be sent to a specified topic in an instance. |
| VerifyConsumeMessage | VerifyConsumeMessage | Verifies the consumption status of a message in a specific topic on a specific instance. |
Message traces
|
API |
Title |
Description |
| ListTraces | Query message trace list | Queries the list of message traces under a specified topic. |
| GetTrace | Retrieve message trace | Retrieves the message trace for a specified message in a specified topic. |
ACL
|
API |
Title |
Description |
| CreateInstanceAccount | Create an access account | Creates an access account for an instance. |
| UpdateInstanceAccount | Update access account | Updates the information of a specified account under a specified instance. |
| DeleteInstanceAccount | Delete an access account | Deletes the access account information for a specified instance. |
| ListInstanceAccount | ListInstanceAccount | Retrieves the access accounts for a specified instance. |
| GetInstanceAccount | GetInstanceAccount | Retrieves the account details for a specified instance. |
| CreateInstanceAcl | Create access permissions | Creates access permissions for a specified instance. |
| UpdateInstanceAcl | UpdateInstanceAcl | Updates the permissions on the resources of a specific instance for a specific user. |
| DeleteInstanceAcl | Delete access permissions | Deletes the permissions of a specified account for a specified resource in a specified instance. |
| ListInstanceAcl | ListInstanceAcl | Queries the access control lists (ACLs) of an instance. |
| GetInstanceAcl | GetInstanceAcl | Queries information about the access control list (ACL) of an instance. |
| CreateInstanceIpWhitelist | Create an IP address whitelist | Creates an IP address whitelist for access control. |
| DeleteInstanceIpWhitelist | Delete an IP whitelist | Deletes a specified global IP whitelist under a specified instance. |
| ListInstanceIpWhitelist | ListInstanceIpWhitelist | Queries the IP address whitelists of an instance. |
| GetInstanceIpWhitelist | GetInstanceIpWhitelist | Queries the information about the IP address whitelist of an instance. |
Cloud migration
|
API |
Title |
Description |
| ListMigrations | List migration tasks | Queries migration tasks. |
| ListMigrationOperations | List migration operations | Queries the list of migration operations. |
| ExecuteMigrationOperation | Execute migration operation | Executes a specified operation for a specified migration task. |
| FinishMigrationStage | Complete the current migration stage | Completes the current migration stage for a specified migration task. |
Global message replication
|
API |
Title |
Description |
| CreateDisasterRecoveryPlan | Create a backup plan | Creates a backup plan. |
| DeleteDisasterRecoveryPlan | Delete a backup plan | Deletes a backup plan. |
| UpdateDisasterRecoveryPlan | UpdateDisasterRecoveryPlan | Modifies a global message backup plan. |
| ListDisasterRecoveryPlans | Query backup plans | Queries a list of backup plans. |
| GetDisasterRecoveryPlan | Query backup plan details | Queries the details of a backup plan. |
| AddDisasterRecoveryItem | Add a backup mapping task | Adds a backup mapping task. |
| UpdateDisasterRecoveryItem | UpdateDisasterRecoveryItem | Updates a topic mapping in a global message backup plan. |
| DeleteDisasterRecoveryItem | Delete backup mapping task | Deletes a backup mapping task. |
| StartDisasterRecoveryItem | StartDisasterRecoveryItem | Starts a topic mapping of a Global Replicator task. |
| StopDisasterRecoveryItem | StopDisasterRecoveryItem | Stops a topic mapping of a Global Replicator task. |
| ListDisasterRecoveryItems | Query backup mapping list | Queries the list of backup mapping tasks. |
| GetDisasterRecoveryItem | Query backup mapping details | Queries the details of a backup plan mapping. |
| ListDisasterRecoveryCheckpoints | Query consumer offset synchronization list | Queries the list of consumer offset synchronization checkpoints. |
| SyncDisasterRecoveryCheckpoint | SyncDisasterRecoveryCheckpoint | Synchronize Disaster Recovery Plan Consumption Progress |
Tags
|
API |
Title |
Description |
| ListTagResources | ListTagResources | Queries the tags that are added to resources. |
| TagResources | TagResources | Creates resource tags. |
| UntagResources | UntagResources | Removes tags from resources. |
Resource groups
|
API |
Title |
Description |
| ChangeResourceGroup | Modify resource group | Modifies the resource group of an instance. |
Others
|
API |
Title |
Description |
| GetConsumeTimespan | Query the resettable time range for a topic | Queries the resettable time range for a topic. |
| ListRegions | Query region list | Queries the list of regions. |
| ListAvailableZones | Query supported zones | Queries supported zones. |
| ListMetricMeta | ListMetricMeta | Query Monitoring Items List |