Create a Group

post

/serviceapi/entityModel/uds/groups

Creates a tag-based group.

The call will fail if the group already exists.

For the tag criteria allowed, see Query Entities by Tag Criteria API.

Request

Supported Media Types
Body ()

Describes a tag based group.

Root Schema : UdsGroup
Type: object

Describes a tag based group.

Show Source
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

Create a group with all entities belonging to marketing:

Payload:

{
  "groupName": "MyMarketingEntities",
  "groupDisplayName": "My Marketing Entities",
  "tagCriteria": "org=marketing"
}
curl -u ${OMC_USERNAME}:${PASSWORD} -X POST -H "Content-Type:application/json" -d "@example.json" "https://serverurl/serviceapi/entityModel/uds/groups"

Create a group with all entities belonging to sales in San Francisco and Development in Denver:

Payload:

{
    "groupName":"Sales Sfo",
    "tagCriteria":"(loc=sfo and org=sales) or (loc=den and org=dev)"
}
curl -u ${OMC_USERNAME}:${PASSWORD} -X POST -H "Content-Type:application/json" -d "@example.json" "https://serverurl/serviceapi/entityModel/uds/groups"
Back to Top