networktocode / networktocode.nautobot / 4.5.0 / module / power_outlet_template Create, update or delete power outlet templates within Nautobot | "added in version" 1.0.0 of networktocode.nautobot" Authors: Tobias Groß (@toerb)networktocode.nautobot.power_outlet_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 power outlet templates from Nautobot
- name: "Test Nautobot modules" connection: local hosts: localhost gather_facts: False tasks: - name: Create power port within Nautobot with only required information networktocode.nautobot.power_outlet_template: url: http://nautobot.local token: thisIsMyToken name: Test Power Outlet device_type: Test Device Type state: present - name: Update power port with other fields networktocode.nautobot.power_outlet_template: url: http://nautobot.local token: thisIsMyToken name: Test Power Outlet device_type: Test Device Type type: iec-60320-c6 power_port: Test Power Port feed_leg: A state: present - name: Delete power port within nautobot networktocode.nautobot.power_outlet_template: url: http://nautobot.local token: thisIsMyToken name: Test Power Outlet device_type: Test Device Type 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 power outlet required: true type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot type: choices: - iec-60320-c5 - iec-60320-c7 - iec-60320-c13 - iec-60320-c15 - iec-60320-c19 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h - iec-60309-2p-e-4h - iec-60309-2p-e-6h - iec-60309-2p-e-9h - iec-60309-3p-e-4h - iec-60309-3p-e-6h - iec-60309-3p-e-9h - iec-60309-3p-n-e-4h - iec-60309-3p-n-e-6h - iec-60309-3p-n-e-9h - nema-5-15r - nema-5-20r - nema-5-30r - nema-5-50r - nema-6-15r - nema-6-20r - nema-6-30r - nema-6-50r - nema-l5-15r - nema-l5-20r - nema-l5-30r - nema-l5-50r - nema-l6-20r - nema-l6-30r - nema-l6-50r - nema-l14-20r - nema-l14-30r - nema-l21-20r - nema-l21-30r - CS6360C - CS6364C - CS8164C - CS8264C - CS8364C - CS8464C - ita-e - ita-f - ita-g - ita-h - ita-i - ita-j - ita-k - ita-l - ita-m - ita-n - ita-o - hdot-cx description: - The type of the power outlet required: false 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 feed_leg: choices: - A - B - C description: - The phase, in case of three-phase feed 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 device_type: description: - The device type the power outlet 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 power_port_template: description: - The attached power port required: false type: raw version_added: 3.0.0 version_added_collection: networktocode.nautobot
msg: description: Message indicating failure or info about what has been achieved returned: always type: str power_outlet_template: description: Serialized object as created or already existent within Nautobot returned: success (when I(state=present)) type: dict