add

dpsctl resource-group add Usage Guide

Add resources (entities & policy) a resource group.

Usage

dpsctl resource-group add

Flags

Includes global dpsctl options.

  --resource-group string  resource group name
  --entities string        resource entity names (comma-separated list)
  --policy string          resource entity policy name (optional)
  --help, -h               show help

Examples

Add entities to a resource group

$ dpsctl resource-group add --resource-group example1 --entities node001,node002
{
  "status": {
    "ok": true,
    "diag_msg": "Success"
  }
}

Add entities to a resource group with a default policy

This policy will be applied to only the specified entities. If there are additional entities/nodes in the resource group, the default resource group policy specified on resource group creation will be used for these nodes.

Policies can be updated using dpsctl resource-group update.

$ dpsctl resource-group add --resource-group example1 --external-id 1 --entities node003 --policy Node-High
{
  "status": {
    "ok": true,
    "diag_msg": "Success"
  }
}