Ngine - Io - Cloudstack.cs - Volume Module - Manages Volumes On Apache CloudStack Based Clouds. - Ansible Community Documentation
Ngine - Io - Cloudstack.cs - Volume Module - Manages Volumes On Apache CloudStack Based Clouds. - Ansible Community Documentation
html)
/ Collections in the Ngine_io Namespace (../index.html) / Ngine_Io.Cloudstack (index.html)
/ ngine_io.cloudstack.cs_volume module – Manages volumes on Apache CloudStack based
clouds.
This is the latest (stable) Ansible community documentation. For Red Hat Ansible
Automation Platform subscriptions, see Life Cycle
(https://access.redhat.com/support/policy/updates/ansible-automation-platform) for
version details.
ngine_io.cloudstack.cs_volume module –
Manages volumes on Apache CloudStack based
clouds.
Note
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 .
Synopsis
Requirements
Parameters
Notes
Examples
Return Values
Requirements
The below requirements are needed on the host that executes this module.
Parameters
account
string
api_http_method
string
"get" ← (default)
"post"
api_key
string / required
api_secret
string / required
api_timeout
integer
api_verify_ssl_cert
string
custom_id
string
device_id
integer
disk_offering
string
display_volume
boolean
false
true
domain
string
false ← (default)
true
format
string
"QCOW2"
"RAW"
"VHD"
"VHDX"
"OVA"
max_iops
integer
Max iops
min_iops
integer
Min iops
mode
string
"http_download" ← (default)
"ftp_upload"
name
string / required
false
true ← (default)
project
string
shrink_ok
boolean
false ← (default)
true
size
integer
Size of disk in GB
snapshot
string
state
string
"present" ← (default)
"absent"
"attached"
"detached"
"extracted"
"uploaded"
tags
aliases: tag
list / elements=dictionary
List of tags. Tags are a list of dictionaries having keys key and value.
To delete all tags, set a empty list e.g. tags: [].
Search this site
url
string
vm
string
zone
string / required
Notes
Note
A detailed guide about cloudstack modules can be found in the CloudStack Cloud
Guide (../scenario_guides/guide_cloudstack.html).
This module supports check mode.
- name: create volume within project and zone with specified storage options
ngine_io.cloudstack.cs_volume:
name: web-vm-1-volume
project: Integration
zone: ch-zrh-ix-01
disk_offering: PerfPlus Storage
size: 20
Return Values
Common return values are documented here
(../../../reference_appendices/common_return_values.html#common-return-values), the
following are the fields unique to this module:
created
string
device_id
integer
Id of the device on user vm the volume is attached to (not returned when detached)
Returned: success
Sample: 1
display_name
string
domain
string
group
string
id
string
ID of the volume.
Returned: success
name
string
size
integer
state
string
type
string
url
string
The url of the uploaded volume or the download url depending extraction mode.
Returned: success when state=extracted
Sample: "http://1.12.3.4/userdata/387e2c7c-7c42-4ecc-b4ed-84e8367a1965.vhd"
vm
string
zone
string
Authors