Assign device(s) to a group

post/compute-ops-mgmt/v1/groups/{group-id}/devices

Assign device(s) to a group using an asynchronous operation. On a successful request this endpoint will return a 202 Accepted response with a Location header that contains the resource URI of the operation. That resource URI can then be used to monitor the asynchronous operation's status.

SecurityBearer
Request
path Parameters
group-id
required
string <uuid>
header Parameters
Content-Type
required
string

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

Value: "application/json"
Request Body schema: application/json
required
required
Array of objects (deviceRequest-v1) non-empty

Specifies the devices to be assigned to the group.

Responses
202

Successful Response

400

Bad request

401

Unauthorized

403

Forbidden

404

Not found

406

Not acceptable

415

Unsupported media type

500

Internal server error

Request samples
application/json
{
  • "devices": [
    ]
}
Response samples
application/json
{
  • "httpStatusCode": 400,
  • "errorCode": "HPE-GL-COMPUTE_OPS-0500001",
  • "message": "string",
  • "debugId": "string",
  • "errorDetails": [
    ]
}