community.general.dimensiondata_network – Create, update, and delete MCP 1.0 & 2.0 networks
Note
This plugin is part of the community.general collection (version 3.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.dimensiondata_network
.
Parameters
Parameter |
Comments |
---|---|
Additional description of the network domain. |
|
The target datacenter. |
|
The password used to authenticate to the CloudControl API. If not specified, will fall back to Required if mcp_user is specified. |
|
The username used to authenticate to the CloudControl API. If not specified, will fall back to |
|
The name of the network domain to create. |
|
The target region. Regions are defined in Apache libcloud project [libcloud/common/dimensiondata.py] They are also listed in https://libcloud.readthedocs.io/en/latest/compute/drivers/dimensiondata.html Note that the default value “na” stands for “North America”. The module prepends ‘dd-‘ to the region choice. Default: “na” |
|
The service plan, either “ESSENTIALS” or “ADVANCED”. MCP 2.0 Only. Choices:
|
|
Should the resource be present or absent. Choices:
|
|
If This should only be used on private instances of the CloudControl API that use self-signed certificates. Choices:
|
|
Should we wait for the task to complete before moving onto the next. Choices:
|
|
The amount of time (in seconds) to wait between checks for task completion. Only applicable if wait=true. Default: 2 |
|
The maximum amount of time (in seconds) to wait for the task to complete. Only applicable if wait=true. Default: 600 |
Examples
- name: Create an MCP 1.0 network
community.general.dimensiondata_network:
region: na
location: NA5
name: mynet
- name: Create an MCP 2.0 network
community.general.dimensiondata_network:
region: na
mcp_user: my_user
mcp_password: my_password
location: NA9
name: mynet
service_plan: ADVANCED
- name: Delete a network
community.general.dimensiondata_network:
region: na
location: NA1
name: mynet
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Dictionary describing the network. Returned: On success when state=present. |
|
Network description. Returned: success Sample: “My network description” |
|
Network ID. Returned: success Sample: “8c787000-a000-4050-a215-280893411a7d” |
|
Datacenter location. Returned: success Sample: “NA3” |
|
Multicast enabled? (MCP 1.0 only) Returned: success Sample: false |
|
Network name. Returned: success Sample: “My network” |
|
Private network subnet. (MCP 1.0 only) Returned: success Sample: “10.2.3.0” |
|
Network status. (MCP 2.0 only) Returned: success Sample: “NORMAL” |
Authors
Aimon Bustardo (@aimonb)