salt.cloud.clouds.softlayer
SoftLayer Cloud Module
The SoftLayer cloud module is used to control access to the SoftLayer VPS system.
Use of this module only requires the apikey
parameter. Set up the cloud configuration at:
/etc/salt/cloud.providers
or /etc/salt/cloud.providers.d/softlayer.conf
:
my-softlayer-config: # SoftLayer account api key user: MYLOGIN apikey: JVkbSJDGHSDKUKSDJfhsdklfjgsjdkflhjlsdfffhgdgjkenrtuinv driver: softlayer
The SoftLayer Python Library needs to be installed in order to use the SoftLayer salt.cloud modules. See: https://pypi.python.org/pypi/SoftLayer
- depends
-
softlayer
-
Return a dict of all available VM images on the cloud provider.
salt.cloud.clouds.softlayer.avail_images(call=None)
-
List all available locations
salt.cloud.clouds.softlayer.avail_locations(call=None)
-
Return a dict of all available VM sizes on the cloud provider with relevant data. This data is provided in three dicts.
salt.cloud.clouds.softlayer.avail_sizes(call=None)
-
Create a single VM from a data dict
salt.cloud.clouds.softlayer.create(vm_)
-
Destroy a node.
CLI Example:
salt-cloud --destroy mymachine
salt.cloud.clouds.softlayer.destroy(name, call=None)
-
Return the first configured instance.
salt.cloud.clouds.softlayer.get_configured_provider()
-
Return a conn object for the passed VM data
salt.cloud.clouds.softlayer.get_conn(service='SoftLayer_Virtual_Guest')
-
Warn if dependencies aren't met.
salt.cloud.clouds.softlayer.get_dependencies()
-
- Return the location to use, in this order:
-
CLI parameter
VM parameter
Cloud profile setting
salt.cloud.clouds.softlayer.get_location(vm_=None)
-
Return a dict of all custom VM images on the cloud provider.
salt.cloud.clouds.softlayer.list_custom_images(call=None)
-
Return a list of the VMs that are on the provider
salt.cloud.clouds.softlayer.list_nodes(call=None)
-
Return a list of the VMs that are on the provider
salt.cloud.clouds.softlayer.list_nodes_full(mask='mask[id]', call=None)
-
Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.softlayer.list_nodes_select(call=None)
-
List all VLANs associated with the account
salt.cloud.clouds.softlayer.list_vlans(call=None)
-
Return the script deployment object
salt.cloud.clouds.softlayer.script(vm_)
-
Show the details from SoftLayer concerning a guest
salt.cloud.clouds.softlayer.show_instance(name, call=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/clouds/all/salt.cloud.clouds.softlayer.html