The base URL for this API is: https://api.leaseweb.com/publicCloud/v1/
This API provides ways to launch and manage VPS.
The API uses standard HTTP status codes to indicate the success or failure of the API call. The response will be JSON. Most APIs use the following format:
{
"errorCode": "APP00800",
"errorMessage": "The connection with the DB cannot be established.",
"correlationId": "550e8400-e29b-41d4-a716-446655440000",
"userMessage": "Cannot handle your request at the moment. Please try again later.",
"reference": "https://developer.leaseweb.com/errors/APP00800"
}
Authentication for the APIs is required. To authenticate your call, you will need to sent your API key as X-LSW-Auth
header.
You can generate API keys in the Customer Portal.
The resource must be stopped before the execution
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/start \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
The resource must be running before the execution
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/stop \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
The resource must be running before the execution
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/reboot \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
Get all credentials stored for the resource
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/credentials \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}, - "credentials": [
- {
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
]
}
Store credential used for a specific resource.
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
type required | string (credentialType) Enum: "OPERATING_SYSTEM" "CONTROL_PANEL" |
username required | string Can contain only alphanumeric values and characters |
password required | string The password you'd like to store |
{- "password": "12341234",
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
{- "password": "12341234",
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
Delete all credentials stored for a given resource.
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/credentials \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "401",
- "errorMessage": "You are not authorized to view this resource."
}
Get credentials stored for the resource by their types
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
type required | string (credentialType) Enum: "OPERATING_SYSTEM" "CONTROL_PANEL" Type of credential |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/credentials/%7Btype%7D \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}, - "credentials": [
- {
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
]
}
Get credentials by type and username
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
type required | string (credentialType) Enum: "OPERATING_SYSTEM" "CONTROL_PANEL" Type of credential |
username required | string Example: root Username |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/credentials/%7Btype%7D/root \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "password": "12341234",
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
Update credentials for a given type and username
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
type required | string (credentialType) Enum: "OPERATING_SYSTEM" "CONTROL_PANEL" Type of credential |
username required | string Example: root Username |
password required | string The new password |
{- "password": "12341234"
}
{- "password": "12341234",
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
Delete credential for a given type and username
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
type required | string (credentialType) Enum: "OPERATING_SYSTEM" "CONTROL_PANEL" Type of credential |
username required | string Example: root Username |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/credentials/%7Btype%7D/root \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "401",
- "errorMessage": "You are not authorized to view this resource."
}
The operation may take a few moments to complete.
You can obtain the new credential using the credentials endpoints
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/resetPassword \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
Resource must not have ISO attached, otherwise, it will return a validation error.
Available ISOs can be obtained using /v1/isos
.
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
isoId required | string The ISO ID, obtained using the ISO endpoints |
{- "isoId": "GRML"
}
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
Resource must have ISO attached, otherwise, it will return a validation error
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/detachIso \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
from | string <date> The start of the interval to get the metric |
to | string <date> The end of the interval to get the metric. Must be greater than the date provided in |
granularity | string Value: "DAY" How the metrics are grouped by |
aggregation | string Value: "SUM" How the metrics are aggregated |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/metrics/datatraffic \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "_metadata": {
- "from": "2023-10-01T00:00:00+00:00",
- "to": "2023-10-31T00:00:00+00:00",
- "granularity": "DAY",
- "aggregation": "SUM",
- "summary": {
- "DOWN_PUBLIC": {
- "average": "855.28 KB",
- "expected": "25.66 MB",
- "total": "1.71 MB",
- "peak": {
- "value": "1.25 MB",
- "timestamp": "2023-10-28T00:00:00+00:00"
}
}, - "UP_PUBLIC": {
- "average": "3.69 MB",
- "expected": "110.64 MB",
- "total": "7.38 MB",
- "peak": {
- "value": "6.94 MB",
- "timestamp": "2023-10-28T00:00:00+00:00"
}
}
}
}, - "metrics": {
- "DOWN_PUBLIC": {
- "values": [
- {
- "value": 461323,
- "timestamp": "2023-10-27T00:00:00+00:00"
}, - {
- "value": 1249243,
- "timestamp": "2023-10-28T00:00:00+00:00"
}
], - "unit": "B"
}, - "UP_PUBLIC": {
- "values": [
- {
- "value": 437565,
- "timestamp": "2023-10-27T00:00:00+00:00"
}, - {
- "value": 6938590,
- "timestamp": "2023-10-28T00:00:00+00:00"
}
], - "unit": "B"
}
}
}
List and filter VPS
limit | integer Example: limit=20 Limit the number of results returned. |
offset | integer Example: offset=10 Return results starting from the given offset. |
id | string Example: id=123581321 Equipment Id |
reference | string Example: reference=Foo bar |
state | string Enum: "RUNNING" "STARTING" "STOPPED" "STOPPING" The current state |
pack | string Enum: "Leaseweb VPS 1" "Leaseweb VPS 2" "Leaseweb VPS 3" "Leaseweb VPS 4" "Leaseweb VPS 5" "Leaseweb VPS 6" Vps package type |
region | string (regionName) Enum: "eu-west-3" "us-east-1" "eu-central-1" "ap-southeast-1" "us-west-1" "eu-west-2" "ca-central-1" region name |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/vps?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE&id=SOME_STRING_VALUE&reference=SOME_STRING_VALUE&state=SOME_STRING_VALUE&pack=SOME_STRING_VALUE®ion=SOME_STRING_VALUE' \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "_metadata": {
- "totalCount": 1,
- "limit": 10,
- "offset": 0
}, - "vps": [
- {
- "id": "123581321",
- "pack": "Leaseweb VPS 2",
- "resources": {
- "cpu": {
- "value": 4,
- "unit": "vCPU"
}, - "memory": {
- "value": 6,
- "unit": "GiB"
}, - "publicNetworkSpeed": {
- "value": 10000,
- "unit": "Mbps"
}
}, - "region": "eu-central-1",
- "datacenter": "FRA-01",
- "reference": "testing",
- "image": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "family": "linux",
- "flavour": "ubuntu",
- "custom": false
}, - "marketAppId": null,
- "state": "RUNNING",
- "hasPublicIpV4": true,
- "rootDiskSize": 50,
- "ips": [
- {
- "ip": "88.17.128.0",
- "prefixLength": "16",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": "",
- "mainIp": true,
- "networkType": "PUBLIC"
}
], - "contract": {
- "id": "41228459000100",
- "billingFrequency": 1,
- "term": 12,
- "type": "MONTHLY",
- "state": "ACTIVE",
- "endsAt": "2024-10-24T21:13:25+00:00",
- "createdAt": "2024-10-24T21:13:25+00:00",
- "sla": "Basic",
- "controlPanel": "cPanel Admin 5",
- "inModification": false
}, - "startedAt": "2024-10-24T21:13:25+00:00"
}
]
}
Get VPS details.
vpsId required | string Example: 123581321 Vps ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/vps/123581321 \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "id": "123581321",
- "pack": "Leaseweb VPS 2",
- "resources": {
- "cpu": {
- "value": 4,
- "unit": "vCPU"
}, - "memory": {
- "value": 6,
- "unit": "GiB"
}, - "publicNetworkSpeed": {
- "value": 10000,
- "unit": "Mbps"
}
}, - "region": "eu-central-1",
- "datacenter": "FRA-01",
- "reference": "testing",
- "image": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "family": "linux",
- "flavour": "ubuntu",
- "custom": false
}, - "marketAppId": null,
- "state": "RUNNING",
- "hasPublicIpV4": true,
- "rootDiskSize": 50,
- "ips": [
- {
- "ip": "88.17.128.0",
- "prefixLength": "16",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": "",
- "mainIp": true,
- "networkType": "PUBLIC",
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "contract": {
- "id": "41228459000100",
- "billingFrequency": 1,
- "term": 12,
- "type": "MONTHLY",
- "state": "ACTIVE",
- "endsAt": "2024-10-24T21:13:25+00:00",
- "createdAt": "2024-10-24T21:13:25+00:00",
- "sla": "Basic",
- "controlPanel": "cPanel Admin 5",
- "inModification": false
}, - "startedAt": "2024-10-24T21:13:25+00:00",
- "iso": null
}
List the resource's IPs
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
version | integer (ipVersion) Enum: 4 6 Ip version |
nullRouted | boolean |
ips | string A list of IPs separated by |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/ips \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}, - "ips": [
- {
- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": null,
- "mainIp": false,
- "nullRouted": false,
- "networkType": "INTERNAL",
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
]
}
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
ip required | string <ip> Example: 10.0.0.1 |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/ips/%7Bip%7D \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": "a-valid-domain.xpto",
- "mainIp": false,
- "networkType": "INTERNAL",
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Allows you to set the reverse lookup for the IP
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
ip required | string <ip> Example: 10.0.0.1 |
reverseLookup required | string |
{- "reverseLookup": "a-valid-domain.xpto"
}
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": "a-valid-domain.xpto",
- "mainIp": false,
- "networkType": "INTERNAL",
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Null route an IP. It may take a few minutes before the change is propagated across the network.
Only works for IPv4.
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
ip required | string <ip> Example: 10.0.0.1 |
comment | string The reason why the IP is being null-routed |
automatedUnnulingAt | integer [ 1 .. 17520 ] If provided, reverts the operation automatically in the specified value, in hours |
{- "automatedUnnulingAt": 2,
- "comment": "Getting DDoS"
}
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": "a-valid-domain.xpto",
- "mainIp": false,
- "networkType": "INTERNAL",
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Remove an IP null route. It may take a few minutes before the change is propagated across the network
resource required | string (resource) Enum: "instances" "loadBalancers" "vps" Type of resource (Instances, Load Balancers, or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID), loadBalancerId (UUID), or vpsId (numeric string). |
ip required | string <ip> Example: 10.0.0.1 |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/ips/%7Bip%7D/unnull \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": "a-valid-domain.xpto",
- "mainIp": false,
- "networkType": "INTERNAL",
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
List Images available for reinstall
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
limit | integer Example: limit=20 Limit the number of results returned. |
offset | integer Example: offset=10 Return results starting from the given offset. |
custom | boolean Filters the list to include only custom images. |
standard | boolean Example: standard=true Filters the list to include only standard images. |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/%7Bresource%7D/%7BresourceId%7D/reinstall/images?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE&custom=SOME_BOOLEAN_VALUE&standard=SOME_BOOLEAN_VALUE' \ --header 'X-LSW-Auth: REPLACE_KEY_VALUE'
{- "images": [
- {
- "id": "UBUNTU_24_04_64BIT",
- "name": "Ubuntu 24.04 LTS (x86_64)",
- "version": "24.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
], - "storageSize": null,
- "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": null,
- "updatedAt": null,
- "custom": false,
- "minDiskSize": null
}, - {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "marketApps": [
- "PLESK_WEB_ADMIN"
], - "storageTypes": [
- "LOCAL",
- "CENTRAL"
], - "storageSize": null,
- "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": null,
- "updatedAt": null,
- "custom": false,
- "minDiskSize": null
}, - {
- "id": "UBUNTU_20_04_64BIT",
- "name": "Ubuntu 20.04 LTS (x86_64)",
- "version": "20.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
], - "storageSize": null,
- "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": null,
- "updatedAt": null,
- "custom": false,
- "minDiskSize": null
}, - {
- "id": "abcc1630-362f-48ba-832f-c496aff24121",
- "name": "Custom image - 01",
- "flavour": "ubuntu",
- "family": "linux",
- "version": null,
- "architecture": null,
- "marketApps": [ ],
- "storageTypes": [ ],
- "storageSize": {
- "size": 2.03,
- "unit": "GB"
}, - "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": "2024-07-05T10:44:08+00:00",
- "updatedAt": "2024-07-18T08:52:08+00:00",
- "custom": true,
- "minDiskSize": null
}, - {
- "id": "8600b94b-45b4-4887-86e1-2792b06dbb32",
- "name": "Custom image - 02",
- "flavour": "ubuntu",
- "family": "linux",
- "version": null,
- "architecture": null,
- "marketApps": [ ],
- "storageTypes": [ ],
- "storageSize": {
- "size": 2.03,
- "unit": "GB"
}, - "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": "2024-07-05T10:47:01+00:00",
- "updatedAt": "2024-07-17T13:14:01+00:00",
- "custom": true,
- "minDiskSize": null
}, - {
- "id": "ace712e9-a166-47f1-9065-4af0f7e7fce1",
- "name": "Custom image - 03",
- "flavour": "ubuntu",
- "family": "linux",
- "version": null,
- "architecture": null,
- "marketApps": [ ],
- "storageTypes": [ ],
- "storageSize": {
- "size": 2.03,
- "unit": "GB"
}, - "state": "READY",
- "stateReason": null,
- "region": "eu-west-3",
- "createdAt": "2024-07-05T10:54:27+00:00",
- "updatedAt": "2024-07-17T13:14:01+00:00",
- "custom": true,
- "minDiskSize": null
}
], - "_metadata": {
- "totalCount": 6,
- "limit": 6,
- "offset": 0
}
}
Recreates the resource, with optionally different Image and Marketplace App.
Cannot be performed when the instance has snapshots.
Available Images can be obtained using /v1/{resource}/{instanceId}/reinstall/images
.
Available Marketplace Apps can be obtained using /v1/images/{imageId}/marketApps
.
resource required | string (baseResource) Enum: "instances" "vps" Type of resource (Instances or Vps). |
resourceId required | string Resource ID, which can be an instanceId (UUID) or vpsId (numeric string). |
imageId required | string The Image ID |
marketAppId | string The Market App to be installed |
{- "imageId": "UBUNTU_22_04_64BIT"
}
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}