New in version 2014.7.0.
The Aliyun cloud module is used to control access to the aliyun ECS. http://www.aliyun.com/
Use of this module requires the id
and key
parameter to be set.
Set up the cloud configuration at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/aliyun.conf
:
my-aliyun-config:
# aliyun Access Key ID
id: wFGEwgregeqw3435gDger
# aliyun Access Key Secret
key: GDE43t43REGTrkilg43934t34qT43t4dgegerGEgg
location: cn-qingdao
provider: aliyun
depends: | requests |
---|
salt.cloud.clouds.aliyun.
avail_images
(kwargs=None, call=None)Return a list of the images that are on the provider
salt.cloud.clouds.aliyun.
avail_locations
(call=None)Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.aliyun.
avail_sizes
(call=None)Return a list of the image sizes that are on the provider
salt.cloud.clouds.aliyun.
create_node
(kwargs)Convenience function to make the rest api call for node creation.
salt.cloud.clouds.aliyun.
destroy
(name, call=None)Destroy a node.
CLI Example:
salt-cloud -a destroy myinstance
salt-cloud -d myinstance
salt.cloud.clouds.aliyun.
get_location
(vm_=None)salt.cloud.clouds.aliyun.
list_availability_zones
(call=None)List all availability zones in the current region
salt.cloud.clouds.aliyun.
list_monitor_data
(kwargs=None, call=None)Get monitor data of the instance. If instance name is missing, will show all the instance monitor data on the region.
CLI Examples:
salt-cloud -f list_monitor_data aliyun
salt-cloud -f list_monitor_data aliyun name=AY14051311071990225bd
salt.cloud.clouds.aliyun.
list_nodes_full
(call=None)Return a list of the VMs that are on the provider
salt.cloud.clouds.aliyun.
list_nodes_min
(call=None)Return a list of the VMs that are on the provider. Only a list of VM names, and their state, is returned. This is the minimum amount of information needed to check for existing VMs.
salt.cloud.clouds.aliyun.
list_nodes_select
(call=None)Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.aliyun.
reboot
(name, call=None)Reboot a node
CLI Examples:
salt-cloud -a reboot myinstance
salt.cloud.clouds.aliyun.
show_disk
(name, call=None)Show the disk details of the instance
CLI Examples:
salt-cloud -a show_disk aliyun myinstance