Assign a device to a group

post/compute-ops/v1beta2/groups/{group-id}/devices

Assign a device to a group

SecurityBearer
Request
path Parameters
group-id
required
string <uuid>
query Parameters
dry-run
boolean
Default: false

When set to false, servers will be assigned or moved to the group specified by group-id barring any errors.

When set to true, servers will not be assigned or moved to the specified group. This dry-run request will return useful information about the servers involved in the request, such as the latest eTags.

header Parameters
Content-Type
required
string

Content-Type header must designate 'application/json' in order for the request to be performed.

Value: "application/json"
Tenant-Acid
string <uuid>

Tenant-Acid header can be used by an MSP workspace to make API calls on behalf of their tenant by specifying the tenant's application customer ID.

In order to make such an API call, the Bearer token must belong to an MSP workspace and this header value must be the application customer ID of a tenant within the MSP workspace. Use the /compute-ops-mgmt/v1beta1/accounts API to determine the application customer IDs for your tenant accounts.

Request Body schema: application/json
required
required
Array of objects (deviceRequest-v1beta2) non-empty
Responses
200

Successful Response

400

Bad request

401

Unauthorized

403

Forbidden

406

Not acceptable

409

Conflict

412

Precondition failed

415

Unsupported media type

500

Internal server error

Request samples
application/json
{
  • "devices": [
    ]
}
Response samples
application/json
{
  • "devices": [
    ]
}