networktocode / networktocode.nautobot / 4.5.0 / module / rear_port_template Create, update or delete rear port templates within Nautobot | "added in version" 1.0.0 of networktocode.nautobot" Authors: Tobias Groß (@toerb)networktocode.nautobot.rear_port_template (4.5.0) — module
Install with ansible-galaxy collection install networktocode.nautobot:==4.5.0
collections: - name: networktocode.nautobot version: 4.5.0
Creates, updates or removes rear port templates from Nautobot
- name: "Test Nautobot modules" connection: local hosts: localhost gather_facts: False tasks: - name: Create rear port template within Nautobot with only required information networktocode.nautobot.rear_port_template: url: http://nautobot.local token: thisIsMyToken name: Test Rear Port Template device_type: Test Device Type type: bnc state: present - name: Update rear port template with other fields networktocode.nautobot.rear_port_template: url: http://nautobot.local token: thisIsMyToken name: Test Rear Port Template device_type: Test Device Type type: bnc positions: 5 state: present - name: Delete rear port template within nautobot networktocode.nautobot.rear_port_template: url: http://nautobot.local token: thisIsMyToken name: Test Rear Port Template device_type: Test Device Type type: bnc state: absent
url: description: - 'The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)' required: true type: str name: description: - The name of the rear port template required: true type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot type: choices: - 8p8c - 8p6c - 8p4c - 8p2c - gg45 - tera-4p - tera-2p - tera-1p - 110-punch - bnc - mrj21 - st - sc - sc-apc - fc - lc - lc-apc - mtrj - mpo - lsh - lsh-apc - splice - cs - sn description: - The type of the rear port required: true type: str 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 positions: description: - The number of front ports which may be mapped to each rear port required: false type: int 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 device_type: description: - The device type the rear port template is attached to required: true type: raw 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 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
msg: description: Message indicating failure or info about what has been achieved returned: always type: str rear_port_template: description: Serialized object as created or already existent within Nautobot returned: success (when I(state=present)) type: dict