Set master device
Relative path: /v1/devices/{deviceUuid}:setMasterDevice
Marks a device as a master device. A master device can be used as the source for creating or cloning other virtual machines.
Optional, master configuration can be provided when marking the device as a master.
Endpoint URL for Europe, Germany, United States, Canada and Japan regions:
|
https://eu.device-management.eset.systems/v1/devices/{deviceUuid}:setMasterDevice |
|
https://de.device-management.eset.systems/v1/devices/{deviceUuid}:setMasterDevice |
|
https://us.device-management.eset.systems/v1/devices/{deviceUuid}:setMasterDevice |
|
https://ca.device-management.eset.systems/v1/devices/{deviceUuid}:setMasterDevice |
|
https://jpn.device-management.eset.systems/v1/devices/{deviceUuid}:setMasterDevice |
Request body
Type |
Required |
Example |
Schema |
|---|---|---|---|
application/json |
Yes |
{
"cloningConfiguration": {
"cloneNamingPatterns": [
"string"
],
"securityGroupUuid": "string"
}
} |
{
"$ref": "DevicesSetMasterDeviceBody",
"cloningConfiguration": {
"$ref": "v1CloningConfiguration",
"description": "Configuration applied to devices cloned from a master device. It defines rules and parameters used during the cloning.",
"cloneNamingPatterns": [
{
"type": "string"
}
],
"securityGroupUuid": {
"type": "string",
"description": "Reference to security group (a device group with is security group set to true), where newly created clones will be added. type: DeviceGroup"
}
}
} |
Parameters in path
Name |
Type |
Required |
Description |
|---|---|---|---|
deviceUuid |
string |
Yes |
Reference to [device] to be mark as a master. type: Device |
Responses
Code |
Description and Example |
Description, Schema and Headers |
|---|---|---|
200 |
Successful response. |
Successful response.
{
"$ref": "v1SetMasterDeviceResponse",
"title": "empty",
"type": "object"
}
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
202 |
Response took too long; request cached. Response can be retrieved later using the response-id header. |
Response took too long; request cached. Response can be retrieved later using the response-id header.
[]
{
"response-id": {
"description": "Unique ID of a pending request. Used to retrieve cached result.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
},
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
400 |
One of the errors: 1. Bad or missing authorization. 2. Validation error. Invalid argument provided. |
One of the errors: 1. Bad or missing authorization. 2. Validation error. Invalid argument provided.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
401 |
Token has expired or is invalid. |
Token has expired or is invalid.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
403 |
Access denied. Check permissions. |
Access denied. Check permissions.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
404 |
Requested resource not found. |
Requested resource not found.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
429 |
Rate limit reached. Try again later. |
Rate limit reached. Try again later.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
500 |
Internal server failure. Try again later. |
Internal server failure. Try again later.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
502 |
Internal server failure. Try again later. |
Internal server failure. Try again later.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
503 |
Environment under maintenance. Try again later. |
Environment under maintenance. Try again later.
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|
504 |
Action took too long; timeout reached |
Action took too long; timeout reached
[]
{
"request-id": {
"description": "Unique ID of the request. Include in support requests.",
"style": "simple",
"explode": false,
"schema": {
"type": "string",
"format": "uuid"
}
}
}
|