vim_custom_attribute¶
vCenter custom attributes (Custom Fields) via SOAP CustomFieldsManager.
REST exposes tags; custom attributes are a separate, older mechanism still heavily used in compliance/automation workflows. SOAP-only.
- saltext.vcf.clients.vim_custom_attribute.list_(opts, profile=None)[source]¶
Return all defined custom attribute definitions.
- saltext.vcf.clients.vim_custom_attribute.get(opts, name, profile=None)[source]¶
Return the custom attribute matching name, or None.
- saltext.vcf.clients.vim_custom_attribute.add(opts, name, managed_object_type=None, profile=None)[source]¶
Define a new custom attribute.
managed_object_type limits which entity kinds can have this attribute set on them — pass e.g.
"VirtualMachine","HostSystem"or leave None to allow all.