This topic describes the API operations that are available in MNS.

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

Operation Description Supported method
CreateQueue Creates a queue. Use the MNS console or call the API operation.
SetQueueAttributes Modifies a queue.
GetQueueAttributes Queries queue information.
DeleteQueue Deletes a queue.
ListQueue Queries a queue list.
Operation Description Supported method
SendMessage Sends a message. Use the MNS console or call the API operation.
BatchSendMessage Sends multiple messages at a time. Call the API operation.
ReceiveMessage Consumes a message. Use the MNS console or call the API operation.
BatchReceiveMessage Consumes multiple messages at a time. Call the API operation.
DeleteMessage Deletes a message. Use the MNS console or call the API operation.
BatchDeleteMessage Deletes multiple messages at a time. Call the API operation.
PeekMessage Views a message. Call the API operation.
BatchPeekMessage Views multiple messages at a time. Call the API operation.
ChangeMessageVisibility Modifies 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 MNS.

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.