Basic Mode
The topic creator has the right to configure topic policies. Using topic policies, you can specify which users and cloud services can perform which topic operations, for example, querying topic details and publishing messages. Topic creators always have permissions over a topic even if they grant topic permissions to other users.
Configuring Topic Policies in Basic Mode
- Log in to the management console.
- Click
on the upper left to select the desired region and project. - Under Management & Governance, select Simple Message Notification.
The SMN console is displayed.
- In the navigation pane, choose Topic Management > Topics.
The Topics page is displayed.
- Locate a topic, click More under Operation, and select Configure Topic Policy.
- In the Configure Topic Policy dialog box, configure the topic policy in basic mode.
The basic mode simply specifies which users or cloud services have permissions to publish messages to a topic. For details, see Table 1.
Figure 1 Basic mode
Table 1 Description for configuring topic policies in basic mode Item
Parameter
Description
Users who can publish messages to this topic
Topic creator
Only the topic creator has the permission to publish messages to the topic.
All users
All users have the permission to publish messages to the topic.
Specified user accounts
Only specified users have the permission to publish messages to the topic. Users are specified in the following format: urn:csp:iam::domainId:root. domainId indicates the account IDs of the users.
You only need to enter the account ID and click OK. The system completes all other required information for you. SMN does not limit the number of IDs you enter, but the total size of a topic policy cannot exceed 30 KB.
To obtain your account ID, log in to the SMN console. In the upper right corner, hover the mouse over your login account, and select My Credentials from the drop-down list.
Services that can publish messages to this topic
Example: OBS
The services that can publish messages to a topic vary in different regions.
The selected cloud services have operation permissions of the topic.
NOTE:By default, Cloud Eye and Anti-DDoS have the permission to publish messages to topics created by all users. For details about how to use SMN in other cloud services, see user guides of the related services.
Last Article: Configuring Topic Policies
Next Article: Adding a Subscription
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.