networktocode / networktocode.nautobot / 5.1.1 / module / custom_field_choice Creates or removes custom field choices from Nautobot | "added in version" 5.1.0 of networktocode.nautobot" Authors: Joe Wesch (@joewesch)networktocode.nautobot.custom_field_choice (5.1.1) — module
Install with ansible-galaxy collection install networktocode.nautobot:==5.1.1
collections: - name: networktocode.nautobot version: 5.1.1
Creates or removes custom field choices from Nautobot
--- - name: Create a custom field choice networktocode.nautobot.custom_field_choice: url: http://nautobot.local token: thisIsMyToken value: "Choice 1" weight: 100 custom_field: "Custom Field 1" state: present
url: description: - 'The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)' required: true type: str 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 value: description: - Value of this choice required: true type: str version_added: 5.1.0 version_added_collection: networktocode.nautobot weight: description: - Weight of this choice required: false type: int version_added: 5.1.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 custom_field: description: - Custom field this choice belongs to required: true type: raw version_added: 5.1.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
custom_field_choice: description: Serialized object as created or already existent within Nautobot returned: success (when I(state=present)) type: dict msg: description: Message indicating failure or info about what has been achieved returned: always type: str