networktocode / networktocode.nautobot / 4.5.0 / module / aggregate Creates or removes aggregates from Nautobot | "added in version" 1.0.0 of networktocode.nautobot" Authors: Mikhail Yohman (@FragmentedPacket)networktocode.nautobot.aggregate (4.5.0) — module
Install with ansible-galaxy collection install networktocode.nautobot:==4.5.0
collections: - name: networktocode.nautobot version: 4.5.0
Creates or removes aggregates from Nautobot
- name: "Test Nautobot aggregate module" connection: local hosts: localhost gather_facts: False tasks: - name: Create aggregate within Nautobot with only required information networktocode.nautobot.aggregate: url: http://nautobot.local token: thisIsMyToken prefix: 192.168.0.0/16 rir: Test RIR state: present - name: Create aggregate with several specified options networktocode.nautobot.aggregate: url: http://nautobot.local token: thisIsMyToken prefix: 192.168.0.0/16 rir: Test RIR date_added: 1989-01-18 description: Test description tags: - Schnozzberry state: present - name: Delete aggregate within nautobot networktocode.nautobot.aggregate: url: http://nautobot.local token: thisIsMyToken prefix: 192.168.0.0/16 state: absent
rir: description: - The RIR the aggregate will be assigned to required: false type: raw version_added: 3.0.0 version_added_collection: networktocode.nautobot url: description: - 'The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)' required: true type: str tags: description: - Any tags that this item may need to be associated with elements: raw required: false type: list version_added: 3.0.0 version_added_collection: networktocode.nautobot state: choices: - absent - present default: present description: - Use C(present) or C(absent) for adding or removing. type: str token: description: - The token created within Nautobot to authorize API access required: true type: str prefix: description: - The aggregate prefix required: true type: raw version_added: 3.0.0 version_added_collection: networktocode.nautobot date_added: description: - 'Date added, format: YYYY-MM-DD' required: false type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot api_version: description: - API Version Nautobot REST API required: false type: str version_added: 4.1.0 version_added_collection: networktocode.nautobot description: description: - The description of the aggregate required: false type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot query_params: description: - This can be used to override the specified values in ALLOWED_QUERY_PARAMS that is defined - in plugins/module_utils/utils.py and provides control to users on what may make - an object unique in their environment. elements: str required: false type: list version_added: 3.0.0 version_added_collection: networktocode.nautobot custom_fields: description: - Must exist in Nautobot and in key/value format required: false type: dict version_added: 3.0.0 version_added_collection: networktocode.nautobot validate_certs: default: true description: - If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. required: false type: raw
aggregate: description: Serialized object as created or already existent within Nautobot returned: on creation type: dict msg: description: Message indicating failure or info about what has been achieved returned: always type: str