vcf_vcenter_compute_policy

Execution module for vCenter compute policies (Tanzu / Workload Management).

saltext.vcf.modules.vcf_vcenter_compute_policy.list_(profile=None)[source]

List compute policies.

CLI Example:

salt '*' vcf_vcenter_compute_policy.list_
saltext.vcf.modules.vcf_vcenter_compute_policy.get(policy_id, profile=None)[source]

Return one compute policy.

CLI Example:

salt '*' vcf_vcenter_compute_policy.get <policy_id>
saltext.vcf.modules.vcf_vcenter_compute_policy.create(capability, profile=None, **spec)[source]

Create a compute policy.

capability is the policy capability identifier — e.g. com.vmware.vcenter.compute.policies.capabilities.vm.vm_anti_affinity.

CLI Example:

salt '*' vcf_vcenter_compute_policy.create <capability> name=anti-affinity-prod
saltext.vcf.modules.vcf_vcenter_compute_policy.delete(policy_id, profile=None)[source]

Delete a compute policy.

CLI Example:

salt '*' vcf_vcenter_compute_policy.delete <policy_id>