API overview
API standards and multilingual preset SDKs
The OpenAPI of this product (Mns-open/2022-01-19) uses the RPC 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.
Topic management
|
API |
Title |
Description |
| CreateTopic | CreateTopic | Creates a topic by calling the CreateTopic operation. |
| SetTopicAttributes | Modify topic attributes | Modifies the attributes of a topic. |
| GetTopicAttributes | Retrieve topic attributes | Retrieves the attributes of a topic. |
| DeleteTopic | Delete a topic | Deletes a topic. |
| ListTopic | Query topics under an Alibaba Cloud account | Queries the topics under an Alibaba Cloud account. The query results can be paginated. |
Queue management
|
API |
Title |
Description |
| CreateQueue | Create a queue | Creates a queue. |
| SetQueueAttributes | Modify queue attributes | Modifies the attributes of a queue. |
| GetQueueAttributes | Get queue attributes | Retrieves the attributes of a specified queue. |
| DeleteQueue | Delete a queue | Deletes a queue. |
| ListQueue | List all queues under a specified Alibaba Cloud account | Lists all queues under a specified Alibaba Cloud account with pagination support. |
Subscription management
|
API |
Title |
Description |
| Subscribe | Create a subscription for a topic | Creates a subscription for a topic. |
| SetSubscriptionAttributes | Modify subscription attributes | Modifies the attributes of a subscription. |
| GetSubscriptionAttributes | Retrieve subscription attributes | Retrieves the attributes of a subscription. |
| Unsubscribe | Cancel an existing subscription | Cancels an existing subscription. |
| ListSubscriptionByTopic | List subscriptions under a topic | Queries a paginated list of subscriptions under a specific topic. |
Endpoint management
|
API |
Title |
Description |
| DisableEndpoint | Disable access points | Disables access points of a specified type. After the access points are disabled, all requests originating from the corresponding access points are intercepted and an error is returned. |
| EnableEndpoint | Enable an access point | Enables an access point of a specified type. After the access point is enabled, requests from the corresponding access point that are in the ACL whitelist are not blocked. |
| GetEndpointAttribute | Retrieve endpoint attributes | Retrieves the attributes of an endpoint. |
| RevokeEndpointAcl | Delete ACL rules for an endpoint | Deletes one or more ACL rules for an endpoint of a specified type. |
| AuthorizeEndpointAcl | Add ACL rules for an access point | Creates one or more ACL rules for an access point of a specified type. |
Event notification management
|
API |
Title |
Description |
| GetEventRule | Retrieve event notification rules | Retrieves event notification rules. |
| ListEventRules | Retrieve event rules | Queries the list of event notifications. |
| CreateEventRule | Create an event rule | Creates an event rule. |
| DeleteEventRule | Delete an event rule | Deletes an event rule. |
Others
|
API |
Title |
Description |
| GetAccountAttributes | Retrieve user log configuration | Retrieves the user log configuration. |
| SetAccountAttributes | Configure user log settings | Configures user log settings. |