All Products
Search
Document Center

:What API operations are available in SMQ?

Last Updated:Sep 02, 2024

This topic describes the API operations that are available in Simple Message Queue (formerly MNS).

The following table lists the API operations that you can use to manage queues in SMQ.

OperationDescriptionSupported method
CreateQueueCreates a queue.Use the MNS console or call the API operation.
SetQueueAttributesModifies a queue.
GetQueueAttributesQueries queue information.
DeleteQueueDeletes a queue.
ListQueueQueries a queue list.
OperationDescriptionSupported method
SendMessageSends a message.Use the MNS console or call the API operation.
BatchSendMessageSends multiple messages at a time.Call the API operation.
ReceiveMessageConsumes a message.Use the MNS console or call the API operation.
BatchReceiveMessageConsumes multiple messages at a time.Call the API operation.
DeleteMessageDeletes a message.Use the MNS console or call the API operation.
BatchDeleteMessageDeletes multiple messages at a time.Call the API operation.
PeekMessageViews a message.Call the API operation.
BatchPeekMessageViews multiple messages at a time.Call the API operation.
ChangeMessageVisibilityModifies the visibility time of a message.Call the API operation.

The following table lists the API operations that you can use to manage topics in SMQ.

Operation Description Supported method
CreateTopic Creates a topic. Use the MNS console or call the API operation.
SetTopicAttributes Modifies a topic.
GetTopicAttributes Queries topic information.
DeleteTopic Deletes a topic.
ListTopic Queries a topic list.
Operation Description Supported method
Subscribe Creates a subscription. Use the MNS console or call the API operation.
SetSubscriptionAttributes Modifies a subscription.
GetSubscriptionAttributes Queries the information of a subscription.
Unsubscribe Deletes a subscription.
ListSubscriptionByTopic Queries the subscription list of a topic.
Operation Description Supported method
PublishMessage Publishes a message. Use the MNS console or call the API operation.