Extensible Attribute Definition
Use the nios_extensible_attribute
module to create, update, or remove instances of the extensible attribute definition object from a NIOS Grid.
The following table describes the parameters you can define in the nios_extensible_attribute
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies name of the extensible attribute definition. |
| Required | Specifies the type for the extensible attribute definition. The object can be one of the following types:
|
| Optional | Specifies the flags for the extensible attribute definition object instance.
If you are specifying multiple flags for an object, you must list them according to the order they are listed above. |
| Optional | Specifies the list of extensible attribute values. |
| Optional | Configures the default value that must be prepopulated for an extensible attribute. |
| Optional | Specifies the minimum value that can be associated with the extensible attribute.
|
| Optional | Specifies the maximum value that can be associated with the extensible attribute.
|
| Optional | Specifies the state of the extensible attribute instance on the NIOS server.
|
| Optional | Describes the extensible attribute object. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Examples
name: Configure an extensible attribute
infoblox.nios_modules.nios_extensible_attribute:
name: my_string
type: STRING
comment: Created by ansible
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Update an extensible attribute to accept multiple values
infoblox.nios_modules.nios_extensible_attribute:
name: my_string
type: STRING
flags: V
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Remove an extensible attribute
infoblox.nios_modules.nios_extensible_attribute:
name: my_string
type: INTEGER
state: absent
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Create INT extensible attribute
infoblox.nios_modules.nios_extensible_attribute:
name: my_int
type: INTEGER
comment: Created by ansible
min: 10
max: 20
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Update an extensible attribute
infoblox.nios_modules.nios_extensible_attribute:
name: my_int
type: INTEGER
comment: Updated by ansible
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Create an list extensible attribute
infoblox.nios_modules.nios_extensible_attribute:
name: my_list
type: ENUM
state: present
list_values:
- one
- two
- three
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local