An extension that adds one or more actions to the vSphere Web Client must define an action set. You add each action set extension to a specific extension point in the vSphere Web Client user interface layer, named vise.actions.sets.

Your extension definition must define an action set and the individual actions within that action set. An action set is a data object of type com.vmware.actionsfw.ActionSetSpec. The ActionSetSpec object contains an <actions> property, which is an array of action data objects. You specify each individual action in the set inside the <actions> property, using a separate data object for each.

You associate each action set extension with a particular type of vSphere object. A best practice is to use the vSphere Web Client extension filtering mechanism to ensure that the actions are only visible when the user selects the relevant type of vSphere object. See Filtering Extensions.

Note

If you omit the <metadata> element for extension filtering in your action set extension definition, your action is shown for all vSphere objects. Use the <metadata> element to ensure that your actions appear only for the correct type of vSphere custom objects.