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.

saltext.vcf.clients.vim_custom_attribute.remove(opts, name_or_key, profile=None)[source]

Remove a custom attribute by name or key.

saltext.vcf.clients.vim_custom_attribute.set_value(opts, entity_mo_id, name, value, entity_type=None, profile=None)[source]

Set the value of name on entity_mo_id (a VM, host, etc.).