Code
stringlengths
103
85.9k
Summary
listlengths
0
94
Please provide a description of the function:def delete_record(name, zone, record_type, identifier=None, all_records=False, region=None, key=None, keyid=None, profile=None, wait_for_sync=True, split_dns=False, private_zone=False, retry_on_rate_limit=None, rate_limit...
[]
Please provide a description of the function:def create_hosted_zone(domain_name, caller_ref=None, comment='', private_zone=False, vpc_id=None, vpc_name=None, vpc_region=None, region=None, key=None, keyid=None, profile=None): ''' Create a new Route53 Hosted Zone. Ret...
[]
Please provide a description of the function:def _fetch_secret(pass_path): ''' Fetch secret from pass based on pass_path. If there is any error, return back the original pass_path value ''' cmd = "pass show {0}".format(pass_path.strip()) log.debug('Fetching secret: %s', cmd) proc = Popen(cm...
[]
Please provide a description of the function:def _decrypt_object(obj): ''' Recursively try to find a pass path (string) that can be handed off to pass ''' if isinstance(obj, six.string_types): return _fetch_secret(obj) elif isinstance(obj, dict): for pass_key, pass_path in six.iterit...
[]
Please provide a description of the function:def render(pass_info, saltenv='base', sls='', argline='', **kwargs): ''' Fetch secret from pass based on pass_path ''' try: _get_pass_exec() except SaltRenderError: raise # Make sure environment variable HOME is set, since Pass looks ...
[]
Please provide a description of the function:def list_upgrades(jid, style='group', outputter='nested', ext_source=None): ''' Show list of available pkg upgrades using a specified format style CLI Example: .. code-block:: bash salt-run pkg....
[]
Please provide a description of the function:def __firewall_cmd(cmd): ''' Return the firewall-cmd location ''' firewall_cmd = '{0} {1}'.format(salt.utils.path.which('firewall-cmd'), cmd) out = __salt__['cmd.run_all'](firewall_cmd) if out['retcode'] != 0: if not out['stderr']: ...
[]
Please provide a description of the function:def __mgmt(name, _type, action): ''' Perform zone management ''' # It's permanent because the 4 concerned functions need the permanent option, it's wrong without cmd = '--{0}-{1}={2} --permanent'.format(action, _type, name) return __firewall_cmd(cmd)
[]
Please provide a description of the function:def list_zones(permanent=True): ''' List everything added for or enabled in all zones CLI Example: .. code-block:: bash salt '*' firewalld.list_zones ''' zones = {} cmd = '--list-all-zones' if permanent: cmd += ' --permane...
[]
Please provide a description of the function:def new_zone(zone, restart=True): ''' Add a new zone CLI Example: .. code-block:: bash salt '*' firewalld.new_zone my_zone By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as False .. ...
[]
Please provide a description of the function:def delete_zone(zone, restart=True): ''' Delete an existing zone CLI Example: .. code-block:: bash salt '*' firewalld.delete_zone my_zone By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as...
[]
Please provide a description of the function:def new_service(name, restart=True): ''' Add a new service CLI Example: .. code-block:: bash salt '*' firewalld.new_service my_service By default firewalld will be reloaded. However, to avoid reloading you need to specify the restart as Fa...
[]
Please provide a description of the function:def delete_service(name, restart=True): ''' Delete an existing service CLI Example: .. code-block:: bash salt '*' firewalld.delete_service my_service By default firewalld will be reloaded. However, to avoid reloading you need to specify th...
[]
Please provide a description of the function:def list_all(zone=None, permanent=True): ''' List everything added for or enabled in a zone CLI Example: .. code-block:: bash salt '*' firewalld.list_all List a specific zone .. code-block:: bash salt '*' firewalld.list_all my_zo...
[]
Please provide a description of the function:def list_services(zone=None, permanent=True): ''' List services added for zone as a space separated list. If zone is omitted, default zone will be used. CLI Example: .. code-block:: bash salt '*' firewalld.list_services List a specific zon...
[]
Please provide a description of the function:def add_service(service, zone=None, permanent=True): ''' Add a service for zone. If zone is omitted, default zone will be used. CLI Example: .. code-block:: bash salt '*' firewalld.add_service ssh To assign a service to a specific zone: ....
[]
Please provide a description of the function:def remove_service(service, zone=None, permanent=True): ''' Remove a service from zone. This option can be specified multiple times. If zone is omitted, default zone will be used. CLI Example: .. code-block:: bash salt '*' firewalld.remove_serv...
[]
Please provide a description of the function:def add_service_port(service, port): ''' Add a new port to the specified service. .. versionadded:: 2016.11.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_service_port zone 80 ''' if service not in get_services(permanent=Tr...
[]
Please provide a description of the function:def get_masquerade(zone=None, permanent=True): ''' Show if masquerading is enabled on a zone. If zone is omitted, default zone will be used. CLI Example: .. code-block:: bash salt '*' firewalld.get_masquerade zone ''' zone_info = list_a...
[]
Please provide a description of the function:def add_masquerade(zone=None, permanent=True): ''' Enable masquerade on a zone. If zone is omitted, default zone will be used. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_masquerade To enable ma...
[]
Please provide a description of the function:def remove_masquerade(zone=None, permanent=True): ''' Remove masquerade on a zone. If zone is omitted, default zone will be used. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.remove_masquerade To rem...
[]
Please provide a description of the function:def add_port(zone, port, permanent=True): ''' Allow specific ports in a zone. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_port internal 443/tcp ''' cmd = '--zone={0} --add-port={1}'.format(zone, ...
[]
Please provide a description of the function:def remove_port(zone, port, permanent=True): ''' Remove a specific port from a zone. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.remove_port internal 443/tcp ''' cmd = '--zone={0} --remove-port={1}'....
[]
Please provide a description of the function:def list_ports(zone, permanent=True): ''' List all ports in a zone. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.list_ports ''' cmd = '--zone={0} --list-ports'.format(zone) if permanent: ...
[]
Please provide a description of the function:def add_port_fwd(zone, src, dest, proto='tcp', dstaddr='', permanent=True): ''' Add port forwarding. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_port_fwd public 80 443 tcp ''' cmd = '--zone={0} -...
[]
Please provide a description of the function:def list_port_fwd(zone, permanent=True): ''' List port forwarding .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.list_port_fwd public ''' ret = [] cmd = '--zone={0} --list-forward-ports'.format(zon...
[]
Please provide a description of the function:def block_icmp(zone, icmp, permanent=True): ''' Block a specific ICMP type on a zone .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewalld.block_icmp zone echo-reply ''' if icmp not in get_icmp_types(permanent...
[]
Please provide a description of the function:def list_icmp_block(zone, permanent=True): ''' List ICMP blocks on a zone .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt '*' firewlld.list_icmp_block zone ''' cmd = '--zone={0} --list-icmp-blocks'.format(zone) i...
[]
Please provide a description of the function:def get_interfaces(zone, permanent=True): ''' List interfaces bound to a zone .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' firewalld.get_interfaces zone ''' cmd = '--zone={0} --list-interfaces'.format(zone) ...
[]
Please provide a description of the function:def add_interface(zone, interface, permanent=True): ''' Bind an interface to a zone .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_interface zone eth0 ''' if interface in get_interfaces(zone, perman...
[]
Please provide a description of the function:def get_sources(zone, permanent=True): ''' List sources bound to a zone .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' firewalld.get_sources zone ''' cmd = '--zone={0} --list-sources'.format(zone) if permane...
[]
Please provide a description of the function:def add_source(zone, source, permanent=True): ''' Bind a source to a zone .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_source zone 192.168.1.0/24 ''' if source in get_sources(zone, permanent): ...
[]
Please provide a description of the function:def get_rich_rules(zone, permanent=True): ''' List rich rules bound to a zone .. versionadded:: 2016.11.0 CLI Example: .. code-block:: bash salt '*' firewalld.get_rich_rules zone ''' cmd = '--zone={0} --list-rich-rules'.format(zone) ...
[]
Please provide a description of the function:def add_rich_rule(zone, rule, permanent=True): ''' Add a rich rule to a zone .. versionadded:: 2016.11.0 CLI Example: .. code-block:: bash salt '*' firewalld.add_rich_rule zone 'rule' ''' cmd = "--zone={0} --add-rich-rule='{1}'".format...
[]
Please provide a description of the function:def remove_rich_rule(zone, rule, permanent=True): ''' Add a rich rule to a zone .. versionadded:: 2016.11.0 CLI Example: .. code-block:: bash salt '*' firewalld.remove_rich_rule zone 'rule' ''' cmd = "--zone={0} --remove-rich-rule='{1}...
[]
Please provide a description of the function:def mdadm(): ''' Return list of mdadm devices ''' devices = set() try: with salt.utils.files.fopen('/proc/mdstat', 'r') as mdstat: for line in mdstat: line = salt.utils.stringutils.to_unicode(line) if li...
[]
Please provide a description of the function:def _get_proxy_connection_details(): ''' Returns the connection details of the following proxies: esxi ''' proxytype = get_proxy_type() if proxytype == 'esxi': details = __salt__['esxi.get_details']() elif proxytype == 'esxcluster': de...
[]
Please provide a description of the function:def supports_proxies(*proxy_types): ''' Decorator to specify which proxy types are supported by a function proxy_types: Arbitrary list of strings with the supported types of proxies ''' def _supports_proxies(fn): @wraps(fn) def __...
[]
Please provide a description of the function:def gets_service_instance_via_proxy(fn): ''' Decorator that connects to a target system (vCenter or ESXi host) using the proxy details and passes the connection (vim.ServiceInstance) to the decorated function. Supported proxies: esxi, esxcluster, esxdata...
[]
Please provide a description of the function:def esxcli_cmd(cmd_str, host=None, username=None, password=None, protocol=None, port=None, esxi_hosts=None, credstore=None): ''' Run an ESXCLI command directly on the host or list of hosts. host The location of the host. username The usernam...
[]
Please provide a description of the function:def get_coredump_network_config(host, username, password, protocol=None, port=None, esxi_hosts=None, credstore=None): ''' Retrieve information on ESXi or vCenter network dump collection and format it into a dictionary. host The location of the host. ...
[]
Please provide a description of the function:def coredump_network_enable(host, username, password, enabled, protocol=None, port=None, esxi_hosts=None, credstore=None): ''' Enable or disable ESXi core dump collection. Returns ``True`` if coredump is enabled and returns ``False`` if core dump is not enabled. ...
[]
Please provide a description of the function:def enable_firewall_ruleset(host, username, password, ruleset_enable, ruleset_name, protocol=None, port=Non...
[]
Please provide a description of the function:def set_syslog_config(host, username, password, syslog_config, config_value, protocol=None, port=None, firewall=True, ...
[]
Please provide a description of the function:def get_syslog_config(host, username, password, protocol=None, port=None, esxi_hosts=None, credstore=None): ''' Retrieve the syslog configuration. host The location of the host. username The username used to login to the host, such as ``root...
[]
Please provide a description of the function:def reset_syslog_config(host, username, password, protocol=None, port=None, syslog_config=None, esxi_hosts=None, ...
[]
Please provide a description of the function:def upload_ssh_key(host, username, password, ssh_key=None, ssh_key_file=None, protocol=None, port=None, certificate_verify=False): ''' Upload an ssh key for root to an ESXi host via http PUT. This function only works for ESXi, not vCenter. ...
[]
Please provide a description of the function:def get_ssh_key(host, username, password, protocol=None, port=None, certificate_verify=False): ''' Retrieve the authorized_keys entry for root. This function only works for ESXi, not ...
[]
Please provide a description of the function:def get_host_datetime(host, username, password, protocol=None, port=None, host_names=None): ''' Get the date/time information for a given host or list of host_names. host The location of the host. username The username used to login to the h...
[]
Please provide a description of the function:def get_ntp_config(host, username, password, protocol=None, port=None, host_names=None): ''' Get the NTP configuration information for a given host or list of host_names. host The location of the host. username The username used to login to ...
[]
Please provide a description of the function:def get_service_policy(host, username, password, service_name, protocol=None, port=None, host_names=None): ''' Get the service name's policy for a given host or list of hosts. host The location of the host. username The username used to logi...
[]
Please provide a description of the function:def get_vmotion_enabled(host, username, password, protocol=None, port=None, host_names=None): ''' Get the VMotion enabled status for a given host or a list of host_names. Returns ``True`` if VMotion is enabled, ``False`` if it is not enabled. host Th...
[]
Please provide a description of the function:def get_vsan_enabled(host, username, password, protocol=None, port=None, host_names=None): ''' Get the VSAN enabled status for a given host or a list of host_names. Returns ``True`` if VSAN is enabled, ``False`` if it is not enabled, and ``None`` if a VSAN Host C...
[]
Please provide a description of the function:def get_vsan_eligible_disks(host, username, password, protocol=None, port=None, host_names=None): ''' Returns a list of VSAN-eligible disks for a given host or list of host_names. host The location of the host. username The username used to ...
[]
Please provide a description of the function:def system_info(host, username, password, protocol=None, port=None): ''' Return system information about a VMware environment. host The location of the host. username The username used to login to the host, such as ``root``. password ...
[]
Please provide a description of the function:def list_datacenters(host, username, password, protocol=None, port=None): ''' Returns a list of datacenters for the the specified host. host The location of the host. username The username used to login to the host, such as ``root``. pa...
[]
Please provide a description of the function:def list_ssds(host, username, password, protocol=None, port=None, host_names=None): ''' Returns a list of SSDs for the given host or list of host_names. host The location of the host. username The username used to login to the host, such as ...
[]
Please provide a description of the function:def set_ntp_config(host, username, password, ntp_servers, protocol=None, port=None, host_names=None): ''' Set NTP configuration for a given host of list of host_names. host The location of the host. username The username used to login to the...
[]
Please provide a description of the function:def service_start(host, username, password, service_name, protocol=None, port=None, host_names=None): ''' Start the named service for the given host or list of...
[]
Please provide a description of the function:def set_service_policy(host, username, password, service_name, service_policy, protocol=None, port=None, host_name...
[]
Please provide a description of the function:def update_host_datetime(host, username, password, protocol=None, port=None, host_names=None): ''' Update the date/time on the given host or list of host_names. This function should be used with caution since network delays and execution delays can result in time...
[]
Please provide a description of the function:def update_host_password(host, username, password, new_password, protocol=None, port=None): ''' Update the password for a given host. .. note:: Currently only works with connections to ESXi hosts. Does not work with vCenter servers. host The locatio...
[]
Please provide a description of the function:def vmotion_disable(host, username, password, protocol=None, port=None, host_names=None): ''' Disable vMotion for a given host or list of host_names. host The location of the host. username The username used to login to the host, such as ``r...
[]
Please provide a description of the function:def vsan_add_disks(host, username, password, protocol=None, port=None, host_names=None): ''' Add any VSAN-eligible disks to the VSAN System for the given host or list of host_names. host The location of the host. username The username used t...
[]
Please provide a description of the function:def vsan_disable(host, username, password, protocol=None, port=None, host_names=None): ''' Disable VSAN for a given host or list of host_names. host The location of the host. username The username used to login to the host, such as ``root``....
[]
Please provide a description of the function:def _get_dvs_config_dict(dvs_name, dvs_config): ''' Returns the dict representation of the DVS config dvs_name The name of the DVS dvs_config The DVS config ''' log.trace('Building the dict of the DVS \'%s\' config', dvs_name) co...
[]
Please provide a description of the function:def _get_dvs_link_discovery_protocol(dvs_name, dvs_link_disc_protocol): ''' Returns the dict representation of the DVS link discovery protocol dvs_name The name of the DVS dvs_link_disc_protocl The DVS link discovery protocol ''' log...
[]
Please provide a description of the function:def _get_dvs_product_info(dvs_name, dvs_product_info): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_product_info The DVS product info ''' log.trace('Building the dict of the DVS \'%s\' ...
[]
Please provide a description of the function:def _get_dvs_capability(dvs_name, dvs_capability): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_capability The DVS capability ''' log.trace('Building the dict of the DVS \'%s\' capabili...
[]
Please provide a description of the function:def _get_dvs_infrastructure_traffic_resources(dvs_name, dvs_infra_traffic_ress): ''' Returns a list of dict representations of the DVS infrastructure traffic resource dvs_name The name of the DVS dvs...
[]
Please provide a description of the function:def list_dvss(datacenter=None, dvs_names=None, service_instance=None): ''' Returns a list of distributed virtual switches (DVSs). The list can be filtered by the datacenter or DVS names. datacenter The datacenter to look for DVSs in. Default ...
[]
Please provide a description of the function:def _apply_dvs_config(config_spec, config_dict): ''' Applies the values of the config dict dictionary to a config spec (vim.VMwareDVSConfigSpec) ''' if config_dict.get('name'): config_spec.name = config_dict['name'] if config_dict.get('contact...
[]
Please provide a description of the function:def _apply_dvs_product_info(product_info_spec, product_info_dict): ''' Applies the values of the product_info_dict dictionary to a product info spec (vim.DistributedVirtualSwitchProductSpec) ''' if product_info_dict.get('name'): product_info_spec....
[]
Please provide a description of the function:def _apply_dvs_capability(capability_spec, capability_dict): ''' Applies the values of the capability_dict dictionary to a DVS capability object (vim.vim.DVSCapability) ''' if 'operation_supported' in capability_dict: capability_spec.dvsOperationS...
[]
Please provide a description of the function:def _apply_dvs_infrastructure_traffic_resources(infra_traffic_resources, resource_dicts): ''' Applies the values of the resource dictionaries to infra traffic resources, creating the infra traffic resource if requir...
[]
Please provide a description of the function:def _apply_dvs_network_resource_pools(network_resource_pools, resource_dicts): ''' Applies the values of the resource dictionaries to network resource pools, creating the resource pools if required (vim.DVSNetworkResourcePoolConfigSpec) ''' for res_di...
[]
Please provide a description of the function:def create_dvs(dvs_dict, dvs_name, service_instance=None): ''' Creates a distributed virtual switch (DVS). Note: The ``dvs_name`` param will override any name set in ``dvs_dict``. dvs_dict Dict representation of the new DVS (example in salt.states.d...
[]
Please provide a description of the function:def update_dvs(dvs_dict, dvs, service_instance=None): ''' Updates a distributed virtual switch (DVS). Note: Updating the product info, capability, uplinks of a DVS is not supported so the corresponding entries in ``dvs_dict`` will be ignored....
[]
Please provide a description of the function:def _get_dvportgroup_out_shaping(pg_name, pg_default_port_config): ''' Returns the out shaping policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''...
[]
Please provide a description of the function:def _get_dvportgroup_security_policy(pg_name, pg_default_port_config): ''' Returns the security policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup '...
[]
Please provide a description of the function:def _get_dvportgroup_teaming(pg_name, pg_default_port_config): ''' Returns the teaming of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace...
[]
Please provide a description of the function:def _get_dvportgroup_dict(pg_ref): ''' Returns a dictionary with a distributed virutal portgroup data pg_ref Portgroup reference ''' props = salt.utils.vmware.get_properties_of_managed_object( pg_ref, ['name', 'config.description', 'conf...
[]
Please provide a description of the function:def list_dvportgroups(dvs=None, portgroup_names=None, service_instance=None): ''' Returns a list of distributed virtual switch portgroups. The list can be filtered by the portgroup names or by the DVS. dvs Name of the DVS containing the portgroups. ...
[]
Please provide a description of the function:def list_uplink_dvportgroup(dvs, service_instance=None): ''' Returns the uplink portgroup of a distributed virtual switch. dvs Name of the DVS containing the portgroup. service_instance Service instance (vim.ServiceInstance) of the vCenter. ...
[]
Please provide a description of the function:def _apply_dvportgroup_out_shaping(pg_name, out_shaping, out_shaping_conf): ''' Applies the values in out_shaping_conf to an out_shaping object pg_name The name of the portgroup out_shaping The vim.DVSTrafficShapingPolicy to apply the config...
[]
Please provide a description of the function:def _apply_dvportgroup_security_policy(pg_name, sec_policy, sec_policy_conf): ''' Applies the values in sec_policy_conf to a security policy object pg_name The name of the portgroup sec_policy The vim.DVSTrafficShapingPolicy to apply the con...
[]
Please provide a description of the function:def _apply_dvportgroup_teaming(pg_name, teaming, teaming_conf): ''' Applies the values in teaming_conf to a teaming policy object pg_name The name of the portgroup teaming The vim.VmwareUplinkPortTeamingPolicy to apply the config to tea...
[]
Please provide a description of the function:def _apply_dvportgroup_config(pg_name, pg_spec, pg_conf): ''' Applies the values in conf to a distributed portgroup spec pg_name The name of the portgroup pg_spec The vim.DVPortgroupConfigSpec to apply the config to pg_conf The ...
[]
Please provide a description of the function:def create_dvportgroup(portgroup_dict, portgroup_name, dvs, service_instance=None): ''' Creates a distributed virtual portgroup. Note: The ``portgroup_name`` param will override any name already set in ``portgroup_dict``. portgrou...
[]
Please provide a description of the function:def update_dvportgroup(portgroup_dict, portgroup, dvs, service_instance=True): ''' Updates a distributed virtual portgroup. portgroup_dict Dictionary with the values the portgroup should be update with (example in salt.states.dvs). portgroup...
[]
Please provide a description of the function:def remove_dvportgroup(portgroup, dvs, service_instance=None): ''' Removes a distributed virtual portgroup. portgroup Name of the portgroup to be removed. dvs Name of the DVS containing the portgroups. service_instance Service i...
[]
Please provide a description of the function:def _get_policy_dict(policy): '''Returns a dictionary representation of a policy''' profile_dict = {'name': policy.name, 'description': policy.description, 'resource_type': policy.resourceType.resourceType} subprofile_dicts...
[]
Please provide a description of the function:def list_storage_policies(policy_names=None, service_instance=None): ''' Returns a list of storage policies. policy_names Names of policies to list. If None, all policies are listed. Default is None. service_instance Service instance...
[]
Please provide a description of the function:def list_default_vsan_policy(service_instance=None): ''' Returns the default vsan storage policy. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_st...
[]
Please provide a description of the function:def list_capability_definitions(service_instance=None): ''' Returns a list of the metadata of all capabilities in the vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash ...
[]
Please provide a description of the function:def _apply_policy_config(policy_spec, policy_dict): '''Applies a policy dictionary to a policy spec''' log.trace('policy_dict = %s', policy_dict) if policy_dict.get('name'): policy_spec.name = policy_dict['name'] if policy_dict.get('description'): ...
[]
Please provide a description of the function:def create_storage_policy(policy_name, policy_dict, service_instance=None): ''' Creates a storage policy. Supported capability types: scalar, set, range. policy_name Name of the policy to create. The value of the argument will override any e...
[]
Please provide a description of the function:def update_storage_policy(policy, policy_dict, service_instance=None): ''' Updates a storage policy. Supported capability types: scalar, set, range. policy Name of the policy to update. policy_dict Dictionary containing the changes to a...
[]
Please provide a description of the function:def list_default_storage_policy_of_datastore(datastore, service_instance=None): ''' Returns a list of datastores assign the the storage policies. datastore Name of the datastore to assign. The datastore needs to be visible to the VMware entity th...
[]
Please provide a description of the function:def assign_default_storage_policy_to_datastore(policy, datastore, service_instance=None): ''' Assigns a storage policy as the default policy to a datastore. policy Name of the policy to assign. datastor...
[]