community.general.hwc_smn_topic (8.5.0) — module

Creates a resource of SMNTopic in Huaweicloud Cloud

Authors: Huawei Inc. (@huaweicloud)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Represents a SMN notification topic resource.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
id:
    description:
    - The ID of resource to be managed.
    type: str

name:
    description:
    - 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 (V(-)), and underscores
      (V(_)), and must start with a letter or digit.
    required: true
    type: str

user:
    description:
    - The user name to login with.
    - Currently only user names are supported, and not user IDs.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the given object should exist in Huaweicloud Cloud.
    type: str

domain:
    description:
    - The name of the Domain to scope to (Identity v3).
    - Currently only domain names are supported, and not domain IDs.
    required: true
    type: str

region:
    description:
    - The region to which the project belongs.
    type: str

project:
    description:
    - The name of the Tenant (Identity v2) or Project (Identity v3).
    - Currently only project names are supported, and not project IDs.
    required: true
    type: str

password:
    description:
    - The password to login with.
    required: true
    type: str

display_name:
    description:
    - 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.
    required: false
    type: str

identity_endpoint:
    description:
    - The Identity authentication URL.
    required: true
    type: str

Outputs

create_time:
  description:
  - Time when the topic was created.
  returned: success
  type: str
display_name:
  description:
  - 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
  type: str
name:
  description:
  - 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 (V(-)), and underscores
    (V(_)), and must start with a letter or digit.
  returned: success
  type: str
push_policy:
  description:
  - Message pushing policy. 0 indicates that the message sending fails and the message
    is cached in the queue. 1 indicates that the failed message is discarded.
  returned: success
  type: int
topic_urn:
  description:
  - Resource identifier of a topic, which is unique.
  returned: success
  type: str
update_time:
  description:
  - Time when the topic was updated.
  returned: success
  type: str