vcenter_storage_policy

Client for vCenter Storage Policy-Based Management (/api/vcenter/storage/policies).

Note: the vSphere REST SPBM API has no per-policy GET path. Policies are a synthesized view of profiles from multiple underlying sources (built-in VMC profiles, vSAN, vVol, user-authored) and are exposed only as an enumerable, filterable list. get() is implemented in terms of the filter query parameter (?policies=<id>) which returns a single-element list when the id matches.

saltext.vcf.clients.vcenter_storage_policy.get(opts, policy, profile=None)[source]

Return the single policy with id policy.

Implemented via the filter query parameter since the SPBM REST API has no per-id GET path. Raises requests.HTTPError 404 when the policy is unknown.