Adding Content to Groups

After creating a new authorization group, you can begin adding content to it.

You can add content to groups by performing a PUT request to the https://{orchestrator_fqdn}/vco/api/authorization-groups/{group_Id}/{object_Type}/{object_Id} endpoint.

Parameter Name Parameter Value
{group_Id} The ID of the group that you have created. For this scenario, the sample group ID is 3.
{object_Type} The type of object you want to add to the group. For workflows, the value of this part of the request is Workflow.
{object_Id} The ID of the object you want to add to the group.

The current scenario uses sample values taken from standard objects in the vRealize Orchestrator object library. For your use cases, you must change these to the values of the objects you want to add to the group.

Procedure

  1. To add a workflow to the group, perform a PUT request at https://{orchestrator_fqdn}/vco/api/authorization-groups/3/Workflow/bfbf3bad-532f-46f7-8956-d5ba58a6d3c5.
  2. To add a action to the group, perform a PUT request at https://{orchestrator_fqdn}/vco/api/authorization-groups/3/ScriptModule/d482d814-ed33-46dd-b557-a46de433c427.
    Note: When adding actions to a group the ScriptModule object type must be used.
  3. To add a policy to the group, perform a PUT request at https://{orchestrator_fqdn}/vco/api/authorization-groups/3/PolicyTemplate/a04533f7-6bc4-4e57-a6e6-cf9eeb52472e.
    Note: When adding policies to a group the PolicyTemplate object type must be used.
  4. To add a configuration element to the group, perform a PUT request at https://{orchestrator_fqdn}/vco/api/authorization-groups/3/ConfigurationElement/04468e3c-5d3b-4c19-bada-586284543de5.
    Note: When adding configuration elements to a group the ConfigurationElement object type must be used.
  5. To add a resource element to the group, perform a PUT request at https://{orchestrator_fqdn}/vco/api/authorization-groups/3/ResourceElement/ae3e900d-ca77-48cc-b75f-909902752583.
    Note: When adding resource elements to a group the ResourceElement object type must be used.

Results

You have added one or more objects to your group. You can remove objects from the group by performing a DELETE request at the https://{orchestrator_fqdn}/vco/api/authorization-groups/{group_Id}/{object_Type}/{object_Id}.