Custom Attribute
Create a Custom Attribute
Procedure
- In the navigation pane, choose .
- On the Custom Attribute page, click New Custom Attribute.
-
In the New Custom Attribute dialog, set the following parameters:
- Type: Select a resource type. Options include global, virtual machine, host, data storage, distributed switch, distributed port group, and bare metal instance.
- Attribute Key: Enter a attribute key name.
- Description: Optional. Enter a description for the custom attribute.
- Attribute Value: Enter a attribute value name.
- Click OK.
Add and Edit Custom Attributes
After you create a custom attribute, the attribute key will be automatically associated with all resources of the selected type. You can then add attribute values to the each resource.
About this task
This section introduces how to configure custom attributes for virtual machines.Procedure
- In the navigation pane, choose .
- From the resource tree, select a target virtual machine.
- On the target virtual machine's details page, click .
-
In the Set Custom Attribute dialog, configure attribute value as needed.
- If you want to add an attribute value to an existing attribute key, select or enter the attribute value in the Attribute Value column.
- If you want to create a new custom attribute, click Add and enter an attribute key and attribute value.
- If you batch configure custom attributes for multiple virtual machines, batch configuration will overwrite the corresponding attribute values for all selected resources. If left blank, each resource's existing attribute values will be preserved.
- Click OK.
Manage a Custom Attribute
Procedure
- In the navigation pane, choose .
-
On the Custom Attribute page, select a target custom attribute.
- Click to edit the attribute key and description of a custom attribute.
- Click to add a new attribute value to the custom attribute.
- Click to delete a custom attribute.
- Click the name of a custom attribute to enter its details page. You can have a fine-grained management of attribute values, including adding, deleting, and viewing associated resources.
Search Resources Using Custom Attributes
About this task
This introduces how to quickly filter target virtual machines using custom attributes.Procedure
- In the navigation pane, choose .
- From the resource tree, select a host.
- On the details page of the selected host, click Virtual Machine tab.
- On the Virtual Machine tab, click Custom Attribute.
-
From the drop-down menu of custom attribute, select attribute keys and attribute values.
When the attribute value is empty, the platform show resources with unset attribute values under this attribute key.
- Click OK.
