text
stringlengths
81
112k
Delete a generic Elasticache resource. def _delete_resource(name, name_param, desc, res_type, wait=0, status_param=None, status_gone='deleted', region=None, key=None, keyid=None, profile=None, **args): ''' Delete a generic Elasticache resource. ''' try: ...
Return details about all (or just one) Elasticache cache clusters. Example: .. code-block:: bash salt myminion boto3_elasticache.describe_cache_clusters salt myminion boto3_elasticache.describe_cache_clusters myelasticache def describe_cache_clusters(name=None, conn=None, region=None, key=No...
Check to see if a cache cluster exists. Example: .. code-block:: bash salt myminion boto3_elasticache.cache_cluster_exists myelasticache def cache_cluster_exists(name, conn=None, region=None, key=None, keyid=None, profile=None): ''' Check to see if a cache cluster exists. Example: ...
Create a cache cluster. Example: .. code-block:: bash salt myminion boto3_elasticache.create_cache_cluster name=myCacheCluster \ Engine=redis \ CacheNodeType=cache.t2.micro \ ...
Check to see if a replication group exists. Example: .. code-block:: bash salt myminion boto3_elasticache.replication_group_exists myelasticache def replication_group_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if a replication group exists. Example: ...
Delete an ElastiCache replication group, optionally taking a snapshot first. Example: .. code-block:: bash salt myminion boto3_elasticache.delete_replication_group my-replication-group def delete_replication_group(name, wait=600, region=None, key=None, keyid=None, profile=None, **args): ''' ...
Check to see if an ElastiCache subnet group exists. Example: .. code-block:: bash salt myminion boto3_elasticache.cache_subnet_group_exists my-subnet-group def cache_subnet_group_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an ElastiCache subnet group ex...
Return a list of all cache subnet group names Example: .. code-block:: bash salt myminion boto3_elasticache.list_cache_subnet_groups region=us-east-1 def list_cache_subnet_groups(region=None, key=None, keyid=None, profile=None): ''' Return a list of all cache subnet group names Example:...
Create an ElastiCache subnet group Example: .. code-block:: bash salt myminion boto3_elasticache.create_cache_subnet_group name=my-subnet-group \ CacheSubnetGroupDescription="description" \ subnets='[myVPCSubn...
Check to see if an ElastiCache security group exists. Example: .. code-block:: bash salt myminion boto3_elasticache.cache_security_group_exists mysecuritygroup def cache_security_group_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an ElastiCache security ...
Create a cache security group. Example: .. code-block:: bash salt myminion boto3_elasticache.create_cache_security_group mycachesecgrp Description='My Cache Security Group' def create_cache_security_group(name, region=None, key=None, keyid=None, profile=None, **args): ''' Create a cache secu...
Delete a cache security group. Example: .. code-block:: bash salt myminion boto3_elasticache.delete_cache_security_group myelasticachesg def delete_cache_security_group(name, region=None, key=None, keyid=None, profile=None, **args): ''' Delete a cache security group. Example: .. co...
Authorize network ingress from an ec2 security group to a cache security group. Example: .. code-block:: bash salt myminion boto3_elasticache.authorize_cache_security_group_ingress \ mycachesecgrp \ EC2SecurityGroupName=s...
Return details about all (or just one) Elasticache cache clusters. Example: .. code-block:: bash salt myminion boto3_elasticache.describe_cache_parameter_groups salt myminion boto3_elasticache.describe_cache_parameter_groups myParameterGroup def describe_cache_parameter_groups(name=None, con...
Returns the detailed parameter list for a particular cache parameter group. name The name of a specific cache parameter group to return details for. CacheParameterGroupName The name of a specific cache parameter group to return details for. Generally not required, as `name` will be us...
Update a cache parameter group in place. Note that due to a design limitation in AWS, this function is not atomic -- a maximum of 20 params may be modified in one underlying boto call. This means that if more than 20 params need to be changed, the update is performed in blocks of 20, which in turns means ...
Check if portname is valid and whether or not the directory exists in the ports tree. def _check_portname(name): ''' Check if portname is valid and whether or not the directory exists in the ports tree. ''' if not isinstance(name, string_types) or '/' not in name: raise SaltInvocationEr...
Retrieve the path to the dir containing OPTIONS file for a given port def _options_dir(name): ''' Retrieve the path to the dir containing OPTIONS file for a given port ''' _check_portname(name) _root = '/var/db/ports' # New path: /var/db/ports/category_portname new_dir = os.path.join(_root...
Returns True/False based on whether or not the options file for the specified port exists. def _options_file_exists(name): ''' Returns True/False based on whether or not the options file for the specified port exists. ''' return os.path.isfile(os.path.join(_options_dir(name), 'options'))
Writes a new OPTIONS file def _write_options(name, configuration): ''' Writes a new OPTIONS file ''' _check_portname(name) pkg = next(iter(configuration)) conf_ptr = configuration[pkg] dirname = _options_dir(name) if not os.path.isdir(dirname): try: os.makedirs(dir...
Fix Salt's yaml-ification of on/off, and otherwise normalize the on/off values to be used in writing the options file def _normalize(val): ''' Fix Salt's yaml-ification of on/off, and otherwise normalize the on/off values to be used in writing the options file ''' if isinstance(val, bool): ...
Install a port from the ports tree. Installs using ``BATCH=yes`` for non-interactive building. To set config options for a given port, use :mod:`ports.config <salt.modules.freebsdports.config>`. clean : True If ``True``, cleans after installation. Equivalent to running ``make install clean ...
De-install a port. CLI Example: .. code-block:: bash salt '*' ports.deinstall security/nmap def deinstall(name): ''' De-install a port. CLI Example: .. code-block:: bash salt '*' ports.deinstall security/nmap ''' portpath = _check_portname(name) old = __salt__[...
Clear the cached options for the specified port; run a ``make rmconfig`` name The name of the port to clear CLI Example: .. code-block:: bash salt '*' ports.rmconfig security/nmap def rmconfig(name): ''' Clear the cached options for the specified port; run a ``make rmconfig`` ...
Show the configuration options for a given port. default : False Show the default options for a port (not necessarily the same as the current configuration) dict_return : False Instead of returning the output of ``make showconfig``, return the data in an dictionary CLI Exa...
Modify configuration options for a given port. Multiple options can be specified. To see the available options for a port, use :mod:`ports.showconfig <salt.modules.freebsdports.showconfig>`. name The port name, in ``category/name`` format reset : False If ``True``, runs a ``make rmconf...
Update the ports tree extract : False If ``True``, runs a ``portsnap extract`` after fetching, should be used for first-time installation of the ports tree. CLI Example: .. code-block:: bash salt '*' ports.update def update(extract=False): ''' Update the ports tree ...
Lists all ports available. CLI Example: .. code-block:: bash salt '*' ports.list_all .. warning:: Takes a while to run, and returns a **LOT** of output def list_all(): ''' Lists all ports available. CLI Example: .. code-block:: bash salt '*' ports.list_all ...
Search for matches in the ports tree. Globs are supported, and the category is optional CLI Examples: .. code-block:: bash salt '*' ports.search 'security/*' salt '*' ports.search 'security/n*' salt '*' ports.search nmap .. warning:: Takes a while to run def search(...
Converts TextFSM cli_table object to list of dictionaries. def _clitable_to_dict(objects, fsm_handler): ''' Converts TextFSM cli_table object to list of dictionaries. ''' objs = [] log.debug('Cli Table:') log.debug(objects) log.debug('FSM handler:') log.debug(fsm_handler) for row in...
r''' Extracts the data entities from the unstructured raw text sent as input and returns the data mapping, processing using the TextFSM template. template_path The path to the TextFSM template. This can be specified using the absolute path to the file, or using one of the follow...
Dynamically identify the template required to extract the information from the unstructured raw text. The output has the same structure as the ``extract`` execution function, the difference being that ``index`` is capable to identify what template to use, based on the platform details and the ``com...
Pull the body from the request and return it def read_body(environ): ''' Pull the body from the request and return it ''' length = environ.get('CONTENT_LENGTH', '0') length = 0 if length == '' else int(length) return environ['wsgi.input'].read(length)
Return the request body as JSON def get_json(environ): ''' Return the request body as JSON ''' content_type = environ.get('CONTENT_TYPE', '') if content_type != 'application/json': raise HTTPError(406, 'JSON required') try: return salt.utils.json.loads(read_body(environ)) e...
Takes the response data as well as any additional headers and returns a tuple of tuples of headers suitable for passing to start_response() def get_headers(data, extra_headers=None): ''' Takes the response data as well as any additional headers and returns a tuple of tuples of headers suitable for pass...
Expects a list of lowstate dictionaries that are executed and returned in order def run_chunk(environ, lowstate): ''' Expects a list of lowstate dictionaries that are executed and returned in order ''' client = environ['SALT_APIClient'] for chunk in lowstate: yield client.run(chunk...
Do any path/method dispatching here and return a JSON-serializable data structure appropriate for the response def dispatch(environ): ''' Do any path/method dispatching here and return a JSON-serializable data structure appropriate for the response ''' method = environ['REQUEST_METHOD'].upper()...
Make Salt's opts dict and the APIClient available in the WSGI environ def saltenviron(environ): ''' Make Salt's opts dict and the APIClient available in the WSGI environ ''' if '__opts__' not in locals(): import salt.config __opts__ = salt.config.client_config( os.enviro...
Process the request and return a JSON response. Catch errors and return the appropriate HTTP code. def application(environ, start_response): ''' Process the request and return a JSON response. Catch errors and return the appropriate HTTP code. ''' # Instantiate APIClient once for the whole app ...
Start simple_server() def start(): ''' Start simple_server() ''' from wsgiref.simple_server import make_server # When started outside of salt-api __opts__ will not be injected if '__opts__' not in globals(): globals()['__opts__'] = get_opts() if __virtual__() is False: ...
Generator function for iterating through large strings, particularly useful as a replacement for str.splitlines(). See http://stackoverflow.com/a/3865367 def split(orig, sep=None): ''' Generator function for iterating through large strings, particularly useful as a replacement for str.splitlines()...
Generator that reads chunk_size bytes at a time from a file/filehandle and yields it. def read_file(fh_, chunk_size=1048576): ''' Generator that reads chunk_size bytes at a time from a file/filehandle and yields it. ''' try: if chunk_size != int(chunk_size): raise ValueError...
Convenience function which runs fnmatch.fnmatch() on each element of passed iterable. The first matching candidate is returned, or None if there is no matching candidate. def fnmatch_multiple(candidates, pattern): ''' Convenience function which runs fnmatch.fnmatch() on each element of passed itera...
Translate CLI/SLS input into the format the API expects. The ``translator`` argument must be a module containing translation functions, within salt.utils.docker.translate. A ``skip_translate`` kwarg can be passed to control which arguments are translated. It can be either a comma-separated list or an it...
Builds an IP address management (IPAM) config dictionary def create_ipam_config(*pools, **kwargs): ''' Builds an IP address management (IPAM) config dictionary ''' kwargs = salt.utils.args.clean_kwargs(**kwargs) try: # docker-py 2.0 and newer pool_args = salt.utils.args.get_functio...
Listen to salt events and forward them to logstash def start(host, port=5959, tag='salt/engine/logstash', proto='udp'): ''' Listen to salt events and forward them to logstash ''' if proto == 'tcp': logstashHandler = logstash.TCPLogstashHandler elif proto == 'udp': logstashHandler =...
Ensure an service exists and is up-to-date name Name of the group type Service type enabled Boolean to control if service is enabled description An arbitrary description of the service def present(name, auth=None, **kwargs): ''' Ensure an service exists and i...
Ensure service does not exist name Name of the service def absent(name, auth=None): ''' Ensure service does not exist name Name of the service ''' ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''} __salt__['keystoneng.set...
Return a conn object for the passed VM data def get_conn(): ''' Return a conn object for the passed VM data ''' certificate_path = config.get_cloud_config_value( 'certificate_path', get_configured_provider(), __opts__, search_global=False ) subscription_id = salt.utils.stringuti...
List available locations for Azure def avail_locations(conn=None, call=None): ''' List available locations for Azure ''' if call == 'action': raise SaltCloudSystemExit( 'The avail_locations function must be called with ' '-f or --function, or with the --list-locations op...
List available images for Azure def avail_images(conn=None, call=None): ''' List available images for Azure ''' if call == 'action': raise SaltCloudSystemExit( 'The avail_images function must be called with ' '-f or --function, or with the --list-images option' )...
Return a list of sizes from Azure def avail_sizes(call=None): ''' Return a list of sizes from Azure ''' if call == 'action': raise SaltCloudSystemExit( 'The avail_sizes function must be called with ' '-f or --function, or with the --list-sizes option' ) conn...
List VMs on this Azure account, with full information def list_nodes_full(conn=None, call=None): ''' List VMs on this Azure account, with full information ''' if call == 'action': raise SaltCloudSystemExit( 'The list_nodes_full function must be called with -f or --function.' ...
List VMs on this Azure account, with full information def list_hosted_services(conn=None, call=None): ''' List VMs on this Azure account, with full information ''' if call == 'action': raise SaltCloudSystemExit( 'The list_hosted_services function must be called with ' '-...
Show the details from the provider concerning an instance def show_instance(name, call=None): ''' Show the details from the provider concerning an instance ''' if call != 'action': raise SaltCloudSystemExit( 'The show_instance action must be called with -a or --action.' ) ...
Create a single VM from a data dict def create(vm_): ''' Create a single VM from a data dict ''' try: # Check for required profile parameters before sending any API calls. if vm_['profile'] and config.is_profile_configured(__opts__, ...
Create and attach volumes to created node def create_attach_volumes(name, kwargs, call=None, wait_to_finish=True): ''' Create and attach volumes to created node ''' if call != 'action': raise SaltCloudSystemExit( 'The create_attach_volumes action must be called with ' '-...
Helper function for azure tests def _wait_for_async(conn, request_id): ''' Helper function for azure tests ''' count = 0 log.debug('Waiting for asynchronous operation to complete') result = conn.get_operation_status(request_id) while result.status == 'InProgress': count = count + 1 ...
Destroy a VM CLI Examples: .. code-block:: bash salt-cloud -d myminion salt-cloud -a destroy myminion service_name=myservice def destroy(name, conn=None, call=None, kwargs=None): ''' Destroy a VM CLI Examples: .. code-block:: bash salt-cloud -d myminion sal...
List VMs on this Azure account, with full information def list_storage_services(conn=None, call=None): ''' List VMs on this Azure account, with full information ''' if call != 'function': raise SaltCloudSystemExit( ('The list_storage_services function must be called ' '...
.. versionadded:: 2015.8.0 Get Operation Status, based on a request ID CLI Example: .. code-block:: bash salt-cloud -f get_operation_status my-azure id=0123456789abcdef0123456789abcdef def get_operation_status(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Get O...
.. versionadded:: 2015.8.0 List storage accounts associated with the account CLI Example: .. code-block:: bash salt-cloud -f list_storage my-azure def list_storage(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List storage accounts associated with the account ...
.. versionadded:: 2015.8.0 List storage service properties CLI Example: .. code-block:: bash salt-cloud -f show_storage my-azure name=my_storage def show_storage(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List storage service properties CLI Example: ...
.. versionadded:: 2015.8.0 Show storage account keys CLI Example: .. code-block:: bash salt-cloud -f show_storage_keys my-azure name=my_storage def show_storage_keys(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Show storage account keys CLI Example: ...
.. versionadded:: 2015.8.0 Create a new storage account CLI Example: .. code-block:: bash salt-cloud -f create_storage my-azure name=my_storage label=my_storage location='West US' def create_storage(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Create a new sto...
.. versionadded:: 2015.8.0 Update a storage account's properties CLI Example: .. code-block:: bash salt-cloud -f update_storage my-azure name=my_storage label=my_storage def update_storage(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Update a storage account's...
.. versionadded:: 2015.8.0 Regenerate storage account keys. Requires a key_type ("primary" or "secondary") to be specified. CLI Example: .. code-block:: bash salt-cloud -f regenerate_storage_keys my-azure name=my_storage key_type=primary def regenerate_storage_keys(kwargs=None, conn=None, c...
.. versionadded:: 2015.8.0 Delete a specific storage account CLI Examples: .. code-block:: bash salt-cloud -f delete_storage my-azure name=my_storage def delete_storage(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Delete a specific storage account CLI Exa...
.. versionadded:: 2015.8.0 List hosted services associated with the account CLI Example: .. code-block:: bash salt-cloud -f list_services my-azure def list_services(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List hosted services associated with the account ...
.. versionadded:: 2015.8.0 List hosted service properties CLI Example: .. code-block:: bash salt-cloud -f show_service my-azure name=my_service def show_service(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List hosted service properties CLI Example: ...
.. versionadded:: 2015.8.0 Create a new hosted service CLI Example: .. code-block:: bash salt-cloud -f create_service my-azure name=my_service label=my_service location='West US' def create_service(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Create a new host...
.. versionadded:: 2015.8.0 Delete a specific service associated with the account CLI Examples: .. code-block:: bash salt-cloud -f delete_service my-azure name=my_service def delete_service(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Delete a specific service ...
.. versionadded:: 2015.8.0 List disks associated with the account CLI Example: .. code-block:: bash salt-cloud -f list_disks my-azure def list_disks(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List disks associated with the account CLI Example: .. c...
.. versionadded:: 2015.8.0 Return information about a disk CLI Example: .. code-block:: bash salt-cloud -f show_disk my-azure name=my_disk def show_disk(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Return information about a disk CLI Example: .. code...
.. versionadded:: 2015.8.0 Cleans up all disks associated with the account, which are not attached. *** CAUTION *** This is a destructive function with no undo button, and no "Are you sure?" confirmation! CLI Examples: .. code-block:: bash salt-cloud -f cleanup_unattached_disks my-azure ...
.. versionadded:: 2015.8.0 Delete a specific disk associated with the account CLI Examples: .. code-block:: bash salt-cloud -f delete_disk my-azure name=my_disk salt-cloud -f delete_disk my-azure name=my_disk delete_vhd=True def delete_disk(kwargs=None, conn=None, call=None): ''' ...
.. versionadded:: 2015.8.0 Update a disk's properties CLI Example: .. code-block:: bash salt-cloud -f update_disk my-azure name=my_disk label=my_disk salt-cloud -f update_disk my-azure name=my_disk new_name=another_disk def update_disk(kwargs=None, conn=None, call=None): ''' .. ...
.. versionadded:: 2015.8.0 List certificates associated with the service CLI Example: .. code-block:: bash salt-cloud -f list_service_certificates my-azure name=my_service def list_service_certificates(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List certific...
.. versionadded:: 2015.8.0 Return information about a service certificate CLI Example: .. code-block:: bash salt-cloud -f show_service_certificate my-azure name=my_service_certificate \\ thumbalgorithm=sha1 thumbprint=0123456789ABCDEF def show_service_certificate(kwargs=None, conn=N...
.. versionadded:: 2015.8.0 Add a new service certificate CLI Example: .. code-block:: bash salt-cloud -f add_service_certificate my-azure name=my_service_certificate \\ data='...CERT_DATA...' certificate_format=sha1 password=verybadpass def add_service_certificate(kwargs=None, conn=...
.. versionadded:: 2015.8.0 Delete a specific certificate associated with the service CLI Examples: .. code-block:: bash salt-cloud -f delete_service_certificate my-azure name=my_service_certificate \\ thumbalgorithm=sha1 thumbprint=0123456789ABCDEF def delete_service_certificate(kwa...
.. versionadded:: 2015.8.0 List management certificates associated with the subscription CLI Example: .. code-block:: bash salt-cloud -f list_management_certificates my-azure name=my_management def list_management_certificates(kwargs=None, conn=None, call=None): ''' .. versionadded:: 20...
.. versionadded:: 2015.8.0 Return information about a management_certificate CLI Example: .. code-block:: bash salt-cloud -f get_management_certificate my-azure name=my_management_certificate \\ thumbalgorithm=sha1 thumbprint=0123456789ABCDEF def show_management_certificate(kwargs=N...
.. versionadded:: 2015.8.0 Add a new management certificate CLI Example: .. code-block:: bash salt-cloud -f add_management_certificate my-azure public_key='...PUBKEY...' \\ thumbprint=0123456789ABCDEF data='...CERT_DATA...' def add_management_certificate(kwargs=None, conn=None, call...
.. versionadded:: 2015.8.0 List input endpoints associated with the deployment CLI Example: .. code-block:: bash salt-cloud -f list_virtual_networks my-azure service=myservice deployment=mydeployment def list_virtual_networks(kwargs=None, conn=None, call=None): ''' .. versionadded:: 201...
.. versionadded:: 2015.8.0 List input endpoints associated with the deployment CLI Example: .. code-block:: bash salt-cloud -f list_input_endpoints my-azure service=myservice deployment=mydeployment def list_input_endpoints(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015....
.. versionadded:: 2015.8.0 Show an input endpoint associated with the deployment CLI Example: .. code-block:: bash salt-cloud -f show_input_endpoint my-azure service=myservice \\ deployment=mydeployment name=SSH def show_input_endpoint(kwargs=None, conn=None, call=None): ''' ...
.. versionadded:: 2015.8.0 Update an input endpoint associated with the deployment. Please note that there may be a delay before the changes show up. CLI Example: .. code-block:: bash salt-cloud -f update_input_endpoint my-azure service=myservice \\ deployment=mydeployment role=m...
.. versionadded:: 2015.8.0 Add an input endpoint to the deployment. Please note that there may be a delay before the changes show up. CLI Example: .. code-block:: bash salt-cloud -f add_input_endpoint my-azure service=myservice \\ deployment=mydeployment role=myrole name=HTTP loc...
.. versionadded:: 2015.8.0 Delete an input endpoint from the deployment. Please note that there may be a delay before the changes show up. CLI Example: .. code-block:: bash salt-cloud -f delete_input_endpoint my-azure service=myservice \\ deployment=mydeployment role=myrole name=...
.. versionadded:: 2015.8.0 Return information about a deployment CLI Example: .. code-block:: bash salt-cloud -f show_deployment my-azure name=my_deployment def show_deployment(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Return information about a deployment ...
.. versionadded:: 2015.8.0 List input endpoints associated with the deployment CLI Example: .. code-block:: bash salt-cloud -f list_affinity_groups my-azure def list_affinity_groups(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 List input endpoints associated w...
.. versionadded:: 2015.8.0 Show an affinity group associated with the account CLI Example: .. code-block:: bash salt-cloud -f show_affinity_group my-azure service=myservice \\ deployment=mydeployment name=SSH def show_affinity_group(kwargs=None, conn=None, call=None): ''' .....
.. versionadded:: 2015.8.0 Create a new affinity group CLI Example: .. code-block:: bash salt-cloud -f create_affinity_group my-azure name=my_affinity_group def create_affinity_group(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Create a new affinity group ...
.. versionadded:: 2015.8.0 Update an affinity group's properties CLI Example: .. code-block:: bash salt-cloud -f update_affinity_group my-azure name=my_group label=my_group def update_affinity_group(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 Update an affini...
.. versionadded:: 2015.8.0 Delete a specific affinity group associated with the account CLI Examples: .. code-block:: bash salt-cloud -f delete_affinity_group my-azure name=my_affinity_group def delete_affinity_group(kwargs=None, conn=None, call=None): ''' .. versionadded:: 2015.8.0 ...
.. versionadded:: 2015.8.0 Return a storage_conn object for the storage account def get_storage_conn(storage_account=None, storage_key=None, conn_kwargs=None): ''' .. versionadded:: 2015.8.0 Return a storage_conn object for the storage account ''' if conn_kwargs is None: conn_kwargs =...
.. versionadded:: 2015.8.0 Creates the URL to access a blob CLI Example: .. code-block:: bash salt-cloud -f make_blob_url my-azure container=mycontainer blob=myblob container: Name of the container. blob: Name of the blob. account: Name of the storage account...
.. versionadded:: 2015.8.0 List containers associated with the storage account CLI Example: .. code-block:: bash salt-cloud -f list_storage_containers my-azure def list_storage_containers(kwargs=None, storage_conn=None, call=None): ''' .. versionadded:: 2015.8.0 List containers ass...
.. versionadded:: 2015.8.0 Create a storage container CLI Example: .. code-block:: bash salt-cloud -f create_storage_container my-azure name=mycontainer name: Name of container to create. meta_name_values: Optional. A dict with name_value pairs to associate with the ...