racampos.dnac.sda_fabric_site (0.0.1) — module

Manage SdaFabricSite objects of Sda

| "added in version" 1.0 of racampos.dnac"

Authors: first last (@GitHubID)

preview | supported by community

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install racampos.dnac:==0.0.1


Add to requirements.yml

  collections:
    - name: racampos.dnac
      version: 0.0.1

Description

Delete Site from SDA Fabric.

Get Site info from SDA Fabric.

Add Site in SDA Fabric.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete_site
  cisco.dnac.sda_fabric_site:
    state: delete  # required
    site_name_hierarchy: SomeValue  # string, required
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: get_site
  cisco.dnac.sda_fabric_site:
    state: query  # required
    site_name_hierarchy: SomeValue  # string, required
  register: query_result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: add_site
  cisco.dnac.sda_fabric_site:
    state: create  # required
    payload:  # required
    - fabricName: SomeValue  # string
      siteNameHierarchy: SomeValue  # string

Inputs

    
payload:
    description:
    - An object to send in the Request body.
    - Required for state create.
    elements: dict
    suboptions:
      fabricName:
        description:
        - It is the sda fabric site's fabricName.
        type: str
      siteNameHierarchy:
        description:
        - It is the sda fabric site's siteNameHierarchy.
        type: str
    type: list

site_name_hierarchy:
    description:
    - Site Name Hierarchy.
    required: true
    type: str

Outputs

add_site:
  contains: null
  description:
    description: Description, property of the response body.
    returned: success
    sample: <description>
    type: str
  executionStatusUrl:
    description: Execution Status Url, property of the response body.
    returned: success
    sample: <executionstatusurl>
    type: str
  returned: success
  status:
    description: Status, property of the response body.
    returned: success
    sample: <status>
    type: str
  type: dict
delete_site:
  contains: null
  description:
    description: Description, property of the response body.
    returned: success
    sample: <description>
    type: str
  executionStatusUrl:
    description: Execution Status Url, property of the response body.
    returned: success
    sample: <executionstatusurl>
    type: str
  returned: success
  status:
    description: Status, property of the response body.
    returned: success
    sample: <status>
    type: str
  type: dict
get_site:
  contains: null
  description:
    description: Description, property of the response body.
    returned: always
    sample: <description>
    type: str
  executionStatusUrl:
    description: Execution Status Url, property of the response body.
    returned: always
    sample: <executionstatusurl>
    type: str
  returned: always
  status:
    description: Status, property of the response body.
    returned: always
    sample: <status>
    type: str
  type: dict

See also