Generate an activation token to onboard servers

post/compute-ops-mgmt/v1beta1/activation-tokens

This API generates a new activation token, valid for a specified duration. Once created, the activation token cannot be retrieved. If needed, a new activation token can be generated.

SecurityBearer
Request
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
expirationInHours
number [ 0.5 .. 168 ]
Default: 72

Expiration duration of the generated activation token. Default is set as 72 hours.

subscriptionKey
string

Device subscription key

Responses
200

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
{
  • "expirationInHours": 72,
  • "subscriptionKey": "ABC123"
}
Response samples
application/json
{
  • "id": "f1a58cb3-90ba-4937-ab35-edc5e2089384",
  • "type": "compute-ops-mgmt/activation-token",
  • "createdAt": "2024-05-20 06:51:59.654591",
  • "activationKey": "string"
}