Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.general.hwc_smn_topic.
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
display_name string | Topic display name, which is presented as the name of the email sender in an email message. The topic display name contains a maximum of 192 bytes. |
domain string / required | The name of the Domain to scope to (Identity v3). Currently only domain names are supported, and not domain IDs. |
id string | The ID of resource to be managed. |
identity_endpoint string / required | The Identity authentication URL. |
name string / required | Name of the topic to be created. The topic name is a string of 1 to 256 characters. It must contain upper- or lower-case letters, digits, hyphens ( |
password string / required | The password to login with. |
project string / required | The name of the Tenant (Identity v2) or Project (Identity v3). Currently only project names are supported, and not project IDs. |
region string | The region to which the project belongs. |
state string | Whether the given object should exist in Huawei Cloud. Choices:
|
user string / required | The user name to login with. Currently only user names are supported, and not user IDs. |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
ANSIBLE_HWC_IDENTITY_ENDPOINT environment variable.ANSIBLE_HWC_USER environment variable.ANSIBLE_HWC_PASSWORD environment variable.ANSIBLE_HWC_DOMAIN environment variable.ANSIBLE_HWC_PROJECT environment variable.ANSIBLE_HWC_REGION environment variable.- name: Create a smn topic
community.general.hwc_smn_topic:
identity_endpoint: "{{ identity_endpoint }}"
user_name: "{{ user_name }}"
password: "{{ password }}"
domain_name: "{{ domain_name }}"
project_name: "{{ project_name }}"
region: "{{ region }}"
name: "ansible_smn_topic_test"
state: present
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
create_time string | Time when the topic was created. Returned: success |
display_name string | Topic display name, which is presented as the name of the email sender in an email message. The topic display name contains a maximum of 192 bytes. Returned: success |
name string | Name of the topic to be created. The topic name is a string of 1 to 256 characters. It must contain upper- or lower-case letters, digits, hyphens ( Returned: success |
push_policy integer | Message pushing policy. Returned: success |
topic_urn string | Resource identifier of a topic, which is unique. Returned: success |
update_time string | Time when the topic was updated. Returned: success |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/hwc_smn_topic_module.html