ansible.builtin.hwc_smn_topic (v2.9.27) — module

Creates a resource of SMNTopic in Huaweicloud Cloud

| "added in version" 2.8 of ansible.builtin"

Authors: Huawei Inc. (@huaweicloud)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  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 (-), and underscores
      C(_), 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 (-), and underscores
    C(_), 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