Updated on 2024-03-15 GMT+08:00

Basic Mode

Only users under the same account as the topic creator have the permissions to publish messages through the topic. 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

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click . Select Simple Message Notification under Management & Governance.

    The SMN console is displayed.

  4. In the navigation pane, choose Topic Management > Topics.

    The Topics page is displayed.

  5. Locate a topic, click More under Operation, and select Configure Topic Policy.

  6. 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 the topic. For details, see Table 1.

    Table 1 Description for configuring topic policies in basic mode

    Item

    Parameter

    Description

    Users who can publish messages to this topic

    Topic creator

    All IAM users under the same account as the topic creator have the permissions to send messages from 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.