vcfa_policy

VCF Automation — policies (/policy/api/policies).

VCFA policies are project- or org-scoped governance objects. Each has a typeId that selects the policy semantics; common types are com.vmware.policy.approval, com.vmware.policy.deployment.limit, com.vmware.policy.deployment.lease, com.vmware.policy.deployment.action, com.vmware.policy.resource.quota. The body shape varies by type; this client passes through opaquely — callers are expected to know which shape their typeId requires.

saltext.vcf.clients.vcfa_policy.create(opts, spec, profile=None)[source]

Create a policy.

spec must include name, typeId, definition (the type-specific body), projectId or organizationId for scope.

saltext.vcf.clients.vcfa_policy.list_types(opts, profile=None)[source]

Return the set of policy typeId values the server supports.