The base URL for this API is: https://api.leaseweb.com/publicCloud/v1/
This API provides ways to launch and manage Public Cloud instances.
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" : "http://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.
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/regions \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "regions": [
- {
- "name": "eu-west-3",
- "location": "Amsterdam"
}, - {
- "name": "eu-central-1",
- "location": "Frankfurt"
}, - {
- "name": "eu-west-2",
- "location": "London"
}, - {
- "name": "ap-southeast-1",
- "location": "Singapore"
}, - {
- "name": "ca-central-1",
- "location": "Montreal"
}, - {
- "name": "us-east-1",
- "location": "Washington"
}, - {
- "name": "us-west-1",
- "location": "San Francisco"
}
], - "_metadata": {
- "totalCount": 7,
- "limit": 20,
- "offset": 0
}
}
Get instance types
region required | string |
limit | integer >= 0 Default: 50 |
offset | integer >= 0 Default: 0 |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/instanceTypes?region=SOME_STRING_VALUE&limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "instanceTypes": [
- {
- "name": "lsw.c3.xlarge",
- "resources": {
- "cpu": {
- "value": 4,
- "unit": "vCPU"
}, - "memory": {
- "value": 7,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "prices": {
- "currency": "EUR",
- "currencySymbol": "€",
- "compute": {
- "hourlyPrice": "0.0798",
- "monthlyPrice": "52.5"
}, - "storage": {
- "local": {
- "hourlyPrice": "0.0001",
- "monthlyPrice": "0.03"
}, - "central": {
- "hourlyPrice": "0.0001",
- "monthlyPrice": "0.08"
}
}
}, - "storageTypes": [
- "CENTRAL",
- "LOCAL"
]
}
], - "_metadata": {
- "totalCount": 74,
- "limit": 1,
- "offset": 1
}
}
Launch a Public Cloud instance.
Available regions can be obtained using /v1/regions
.
Available Operating Systems can be obtained using /v1/operatingSystems
.
Available instance types for your region can be obtained using /v1/instanceTypes
.
region required | string Region to launch the instance into |
type | string Instance type |
operatingSystemId required | string Operating System ID |
marketAppId | string Market App ID that must be installed into the instance |
reference | string An identifying name you can refer to the instance |
contractType required | string Enum: "HOURLY" "MONTHLY" |
contractTerm required | integer Enum: 0 1 3 6 12 Contract commitment. Used only when contract type is MONTHLY |
billingFrequency required | integer Enum: 1 3 6 12 How often you wish to be charged. Used only when contract type is MONTHLY. '1' means every month, '3' every three months and so on. |
rootDiskSize | integer The root disk's size in GB. Must be at least 5 GB for Linux and FreeBSD instances and 50 GB for Windows instances |
rootDiskStorageType required | string Enum: "LOCAL" "CENTRAL" The root disk's storage type |
sshKey | string Public SSH key to be installed into the instance. Must be used only on Linux/FreeBSD instances |
{- "type": "lsw.m3.large",
- "region": "eu-west-3",
- "operatingSystemId": "UBUNTU_20_04_64BIT",
- "reference": "my-webserver",
- "contractTerm": 0,
- "billingFrequency": 1,
- "contractType": "HOURLY",
- "rootDiskSize": 50,
- "rootDiskStorageType": "CENTRAL"
}
{- "customerId": "111111111",
- "id": "15ca75e3-5b36-44af-98fe-e96cf402d17e",
- "type": "lsw.m3.large",
- "resources": {
- "cpu": {
- "value": 1,
- "unit": "vCPU"
}, - "memory": {
- "value": 3,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "web server",
- "operatingSystem": {
- "id": "UBUNTU_20_04_64BIT",
- "name": "Ubuntu 20.04 LTS (x86_64)",
- "version": "20.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "CREATING",
- "publicIpV4": true,
- "privateNetwork": false,
- "startedAt": null,
- "rootDiskSize": 5,
- "rootDiskStorageType": "CENTRAL",
- "ips": [ ],
- "billingFrequency": 1,
- "contractTerm": 0,
- "contractType": "HOURLY",
- "contractEndsAt": null,
- "contractRenewalsAt": "2023-10-30T16:39:09+00:00",
- "contractCreatedAt": "2023-10-30T16:39:09+00:00",
- "iso": null,
- "marketAppId": null
}
List and filter instances
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
ip | string <ip> Example: ip=10.0.0.1 |
reference | string Example: reference=my-webserver |
id | string <uuid> Example: id=a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 |
filter | string Example: filter=my-webserver Using this parameter, you can filter by id, reference or IP. |
contractType | string Enum: "HOURLY" "MONTHLY" Example: contractType=HOURLY |
state | string Enum: "RUNNING" "STARTING" "STOPPED" "STOPPING" "CREATING" "DESTROYED" "DESTROYING" Example: state=RUNNING |
region | string Example: region=eu-west-3 Available regions can be found using the List Regions endpoint. |
type | string Example: type=lsw.c3.xlarge Available instance types can be found using the List Instance Types endpoint. |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/instances?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE&ip=SOME_STRING_VALUE&reference=SOME_STRING_VALUE&id=SOME_STRING_VALUE&filter=SOME_STRING_VALUE&contractType=SOME_STRING_VALUE&state=SOME_STRING_VALUE®ion=SOME_STRING_VALUE&type=SOME_STRING_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "instances": [
- {
- "customerId": "11111111",
- "id": "5fd135a9-3ff6-4794-8b92-8cd8747a3ea3",
- "type": "lsw.c3.4xlarge",
- "resources": {
- "cpu": {
- "value": 16,
- "unit": "vCPU"
}, - "memory": {
- "value": 30,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-webserver",
- "operatingSystem": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "RUNNING",
- "hasPublicIpV4": true,
- "hasPrivateNetwork": false,
- "rootDiskSize": 10,
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "billingFrequency": 3,
- "contractTerm": 3,
- "contractType": "MONTHLY",
- "contractEndsAt": "2024-02-01T00:00:00+00:00",
- "startedAt": "2023-10-26T08:17:33+00:00",
- "contractRenewalsAt": "2024-02-01T00:00:00+00:00",
- "contractCreatedAt": "2023-10-26T08:17:19+00:00"
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
Get details about the instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0 \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "customerId": "11111111",
- "id": "5fd135a9-3ff6-4794-8b92-8cd8747a3ea3",
- "type": "lsw.c3.4xlarge",
- "resources": {
- "cpu": {
- "value": 16,
- "unit": "vCPU"
}, - "memory": {
- "value": 30,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-webserver",
- "operatingSystem": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "RUNNING",
- "hasPublicIpV4": true,
- "hasPrivateNetwork": false,
- "rootDiskSize": 10,
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "billingFrequency": 3,
- "contractTerm": 3,
- "contractType": "MONTHLY",
- "contractEndsAt": "2024-02-01T00:00:00+00:00",
- "startedAt": "2023-10-26T08:17:33+00:00",
- "contractRenewalsAt": "2024-02-01T00:00:00+00:00",
- "contractCreatedAt": "2023-10-26T08:17:19+00:00",
- "iso": null,
- "privateNetwork": {
- "privateNetworkId": "1234",
- "status": "CONFIGURED",
- "subnet": "10.0.0.0/27"
}
}
Terminate Public Cloud instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0 \ --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."
}
Update the instance's reference, type, storage or contract type.
Eligible instance types for update can be obtained using /v1/instances/{instanceId}/instanceTypesUpdate
.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type | string Instance type |
reference | string An identifying name you can refer to the instance |
contractType | string Value: "MONTHLY" |
contractTerm | integer Enum: 0 1 3 6 12 Contract commitment. Can only be used when updating the contract type from HOURLY and MONTHLY. |
billingFrequency | integer Enum: 1 3 6 12 How often you wish to be charged. Can only be used when updating the contract type from HOURLY to MONTHLY. '1' means every month, '3' every three months and so on. |
rootDiskSize | integer The root disk's size in GB. Must be at least 5 GB for Linux and FreeBSD instances and 50 GB for Windows instances |
{- "reference": "new-reference"
}
{- "customerId": "111111111",
- "salesOrgId": "2000",
- "id": "15ca75e3-5b36-44af-98fe-e96cf402d17e",
- "type": "lsw.m3.large",
- "resources": {
- "cpu": {
- "value": 1,
- "unit": "vCPU"
}, - "memory": {
- "value": 3,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "web server",
- "operatingSystem": {
- "id": "UBUNTU_20_04_64BIT",
- "name": "Ubuntu 20.04 LTS (x86_64)",
- "version": "20.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "RUNNING",
- "publicIpV4": true,
- "privateNetwork": false,
- "startedAt": null,
- "rootDiskSize": 5,
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "billingFrequency": 1,
- "contractTerm": 0,
- "contractType": "HOURLY",
- "contractEndsAt": null,
- "contractRenewalsAt": "2023-10-30T16:39:09+00:00",
- "contractCreatedAt": "2023-10-30T16:39:09+00:00",
- "iso": null
}
Cancel the termination process of monthly instances. Must be executed prior to the instance's contractEndsAt
.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/cancelTermination \ --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 console access to the instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/console \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
Get available instance types for update
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
limit | integer >= 0 Default: 50 |
offset | integer >= 0 Default: 0 |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/instanceTypesUpdate?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "instanceTypes": [
- {
- "name": "lsw.m4.4xlarge",
- "resources": {
- "cpu": {
- "value": 16,
- "unit": "vCPU"
}, - "memory": {
- "value": 64,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 1000,
- "unit": "Mbps"
}
}, - "prices": {
- "eu-west-2": {
- "currency": "GBP",
- "currencySymbol": "£",
- "compute": {
- "hourlyPrice": 0.3359,
- "monthlyPrice": 220.7
}, - "storage": {
- "local": {
- "hourlyPrice": 3.5671,
- "monthlyPrice": 0.02604
}, - "central": {
- "hourlyPrice": 9.5123,
- "monthlyPrice": 0.06944
}
}
}, - "ca-central-1": {
- "currency": "CAD",
- "currencySymbol": "CA$",
- "compute": {
- "hourlyPrice": 0.5777,
- "monthlyPrice": 379.62
}, - "storage": {
- "local": {
- "hourlyPrice": 6.1356,
- "monthlyPrice": 0.04479
}, - "central": {
- "hourlyPrice": 0.000163616,
- "monthlyPrice": 0.11944
}
}
}, - "eu-west-3": {
- "currency": "EUR",
- "currencySymbol": "€",
- "compute": {
- "hourlyPrice": 0.3869,
- "monthlyPrice": 254.26
}, - "storage": {
- "local": {
- "hourlyPrice": 4.11,
- "monthlyPrice": 0.03
}, - "central": {
- "hourlyPrice": 0.00010959,
- "monthlyPrice": 0.08
}
}
}, - "eu-central-1": {
- "currency": "EUR",
- "currencySymbol": "€",
- "compute": {
- "hourlyPrice": 0.3869,
- "monthlyPrice": 254.26
}, - "storage": {
- "local": {
- "hourlyPrice": 4.11,
- "monthlyPrice": 0.03
}, - "central": {
- "hourlyPrice": 0.00010959,
- "monthlyPrice": 0.08
}
}
}, - "us-east-1": {
- "currency": "USD",
- "currencySymbol": "$",
- "compute": {
- "hourlyPrice": 0.4225,
- "monthlyPrice": 277.66
}, - "storage": {
- "local": {
- "hourlyPrice": 4.48767,
- "monthlyPrice": 0.03276
}, - "central": {
- "hourlyPrice": 0.0001196712,
- "monthlyPrice": 0.08736
}
}
}, - "us-west-1": {
- "currency": "USD",
- "currencySymbol": "$",
- "compute": {
- "hourlyPrice": 0.4225,
- "monthlyPrice": 277.66
}, - "storage": {
- "local": {
- "hourlyPrice": 0.0000448767,
- "monthlyPrice": 0.03276
}, - "central": {
- "hourlyPrice": 0.0001196712,
- "monthlyPrice": 0.08736
}
}
}, - "ap-southeast-1": {
- "currency": "SGD",
- "currencySymbol": "S$",
- "compute": {
- "hourlyPrice": 0.5649,
- "monthlyPrice": 371.23
}, - "storage": {
- "local": {
- "hourlyPrice": 0.00006,
- "monthlyPrice": 0.0438
}, - "central": {
- "hourlyPrice": 0.00016,
- "monthlyPrice": 0.1168
}
}
}
}, - "storageTypes": null
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 50,
- "offset": 0
}
}
List Operating Systems available for reinstall
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/reinstall/operatingSystems \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
[- {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "controlPanels": [
- "PLESK"
]
}, - {
- "id": "UBUNTU_20_04_64BIT",
- "name": "Ubuntu 20.04 LTS (x86_64)",
- "version": "20.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "controlPanels": [
- "CPANEL",
- "PLESK"
]
}
]
Recreates the instance, with optionally different Operating System and Markeplace App.
Cannot be performed when the instance has snapshots.
Available Operating Systems can be obtained using /v1/instances/{instanceId}/reinstall/operatingSystems
.
Available Marketplace Apps can be obtained using /v1/operatingSystems/{operatingSystemId}/marketApps
.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
operatingSystemId required | string The Operating System ID |
marketAppId | string The Market App to be installed |
{- "operatingSystemId": "UBUNTU_22_04_64BIT"
}
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
The instance must be stopped before the execution
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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 instance must be running before the execution
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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 instance must be running before the execution
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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 instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/credentials \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "credentials": [
- {
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
Store credential used for the instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type required | string 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 |
{- "type": "OPERATING_SYSTEM",
- "username": "another-user",
- "password": "a$Ndes-3fad2-rfas@-"
}
{- "type": "OPERATING_SYSTEM",
- "username": "another-user",
- "password": "a$Ndes-3fad2-rfas@-"
}
Delete all credentials stored for a given instance
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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 instance by their types
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type required | string Example: OPERATING_SYSTEM |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/credentials/OPERATING_SYSTEM \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "credentials": [
- {
- "type": "OPERATING_SYSTEM",
- "username": "root"
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
Get credentials by type and username
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type required | string Example: OPERATING_SYSTEM Credential type |
username required | string Example: root Username |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/credentials/OPERATING_SYSTEM/root \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "type": "OPERATING_SYSTEM",
- "username": "root",
- "password": "12341234"
}
Update credentials for a given type and username
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type required | string Example: OPERATING_SYSTEM Credential type |
username required | string Example: root Username |
password required | string The new password |
{- "password": "@-n3w-Pa$$w0rD"
}
{- "type": "OPERATING_SYSTEM",
- "username": "another-user",
- "password": "@-n3w-Pa$$w0rD"
}
Delete credentials for a given type and username
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
type required | string Example: OPERATING_SYSTEM Credential type |
username required | string Example: root Username |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/credentials/OPERATING_SYSTEM/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
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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."
}
equipmentId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Equipment's UUID |
from required | string <date> Example: from=2023-11-01 Start date of the period to get costs for. It must be the first day of the month |
to | string <date> Example: to=2023-12-01 End date of the period to get costs for. This date needs to be exactly one month after the 'from' date. If this value is not passed, it will be calculated based on 'from' parameter |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/equipments/695ddd91-051f-4dd6-9120-938a927a47d0/expenses?from=SOME_STRING_VALUE&to=SOME_STRING_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "billing": {
- "instances": [
- {
- "id": "b778824a-a96e-4f6f-9713-7b7196f09c4f",
- "reference": "test-instance",
- "resources": {
- "cpu": {
- "value": 2,
- "unit": "vCPU"
}, - "memory": {
- "value": 8,
- "unit": "GB"
}, - "public_network_speed": {
- "value": 5,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 1000,
- "unit": "Mbps"
}
}, - "contractType": "HOURLY",
- "contractCreatedAt": "2023-11-30T16:31:28+00:00",
- "startedAt": "2023-11-30T16:31:46+00:00",
- "contractTerm": 0,
- "billingFrequency": 1,
- "rootDiskSize": 15,
- "billingType": "POSTPAID",
- "hours": 14,
- "from": "2023-12-01T00:00:00+00:00",
- "to": "2023-12-01T13:18:41+00:00",
- "rootDiskType": "CENTRAL",
- "price": "0.72"
}
], - "traffic": {
- "unit": "GB",
- "values": {
- "tier_0": {
- "usage": 1000,
- "price": 0
}, - "tier_1": {
- "usage": 10000,
- "price": 15.54
}, - "tier_2": {
- "usage": 10000,
- "price": 13.45
}, - "tier_3": {
- "usage": 34.5,
- "price": 2.34
}
}
}
}
}
List all available ISO images
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/isos \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "isos": [
- {
- "id": "GRML",
- "name": "GRML 2022.11"
}, - {
- "id": "ACRONIS_BOOT_MEDIA",
- "name": "Acronis Boot Media"
}
], - "_metadata": {
- "totalCount": 2,
- "limit": 20,
- "offset": 0
}
}
Instance must not have ISO attached, otherwise, it will return a validation error.
Available ISOs can be obtained using /v1/isos
.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
isoId | 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."
}
Instance must have ISO attached, otherwise, it will return a validation error
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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."
}
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/operatingSystems \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "operatingSystems": [
- {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64",
- "marketApps": [
- "LOADBALANCER"
], - "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "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"
]
}, - {
- "id": "DEBIAN_12_64BIT",
- "name": "Debian 12 (x86_64)",
- "version": "12",
- "family": "linux",
- "flavour": "debian",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "DEBIAN_11_64BIT",
- "name": "Debian 11 (x86_64)",
- "version": "11",
- "family": "linux",
- "flavour": "debian",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "DEBIAN_10_64BIT",
- "name": "Debian 10 (x86_64)",
- "version": "10",
- "family": "linux",
- "flavour": "debian",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "FREEBSD_13_64BIT",
- "name": "FreeBSD 13.2 (x86_64)",
- "version": "13.2",
- "family": "bsd",
- "flavour": "freebsd",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "CENTOS_7_64BIT",
- "name": "CentOS 7 (x86_64)",
- "version": "7",
- "family": "linux",
- "flavour": "centos",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "ALMALINUX_9_64BIT",
- "name": "AlmaLinux 9 (x86_64)",
- "version": "9",
- "family": "linux",
- "flavour": "almalinux",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "ALMALINUX_8_64BIT",
- "name": "AlmaLinux 8 (x86_64)",
- "version": "8",
- "family": "linux",
- "flavour": "almalinux",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "ROCKY_LINUX_9_64BIT",
- "name": "Rocky Linux 9 (x86_64)",
- "version": "9",
- "family": "linux",
- "flavour": "rockylinux",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "ROCKY_LINUX_8_64BIT",
- "name": "Rocky Linux 8 (x86_64)",
- "version": "8",
- "family": "linux",
- "flavour": "rockylinux",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "LOCAL",
- "CENTRAL"
]
}, - {
- "id": "WINDOWS_SERVER_2022_STANDARD_64BIT",
- "name": "Windows Server 2022 Standard (x64)",
- "version": "2022",
- "family": "windows",
- "flavour": "windows",
- "architecture": "x86_64",
- "marketApps": [ ],
- "storageTypes": [
- "CENTRAL"
]
}
], - "_metadata": {
- "totalCount": 12,
- "limit": 20,
- "offset": 0
}
}
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/marketApps \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "marketApps": [
- {
- "id": "LOADBALANCER",
- "name": "Load Balancer",
- "category": "LOAD_BALANCER",
- "version": null,
- "family": "loadbalancer",
- "operatingSystem": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
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/instances/695ddd91-051f-4dd6-9120-938a927a47d0/metrics/datatraffic \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "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"
}
}, - "_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"
}
}
}
}
}
List instance snapshots
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/snapshots?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "snapshots": [
- {
- "id": "624c53c3-48e9-41d1-833f-90a9abf5fd95",
- "displayName": "snapshot 1",
- "state": "READY",
- "created": "2023-11-02T07:31:28+0000"
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
The instance must be running before the execution.
The time taken to create the snapshot depends on several factors, including memory size and usage.
Allowed only one snapshot per instance.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/snapshots \ --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."
}
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
snapshotId required | string <uuid> |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/snapshots/%7BsnapshotId%7D \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "id": "ef73e9e2-95cd-49ef-940f-a24e6ad6c4a0",
- "displayName": "snapshot 1",
- "state": "READY",
- "created": "2023-11-02T07:31:28+0000"
}
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
snapshotId required | string <uuid> |
curl --request PUT \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/snapshots/%7BsnapshotId%7D \ --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."
}
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
snapshotId required | string <uuid> |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/snapshots/%7BsnapshotId%7D \ --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."
}
List the instance's IPs
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
version | integer Example: version=4 |
nullRouted | boolean |
ips | string A list of IPs separated by |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/ips \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "ips": [
- {
- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": null,
- "mainIp": false,
- "nullRouted": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
ip required | string <ip> Example: 10.0.0.1 |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/ips/%7Bip%7D \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": null,
- "mainIp": false,
- "nullRouted": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Allows you to set the reverse lookup for the IP
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
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,
- "nullRouted": false,
- "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.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
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 |
{- "comment": "Getting DDoS",
- "automatedUnnulingAt": 2
}
{- "ip": "10.0.0.1",
- "prefixLength": "28",
- "version": 4,
- "reverseLookup": "a-valid-domain.xpto",
- "mainIp": false,
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Removed null route an IP. It may take a few minutes before the change is propagated across the network
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
ip required | string <ip> Example: 10.0.0.1 |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/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,
- "nullRouted": true,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
Add instance to Private Network.
Cannot be performed when the instance has snapshots.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request PUT \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/addToPrivateNetwork \ --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."
}
Remove instance from Private Network.
Cannot be performed when the instance has snapshots.
instanceId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Instance's ID |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/instances/695ddd91-051f-4dd6-9120-938a927a47d0/removeFromPrivateNetwork \ --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."
}
Launch a Load balancer.
Available regions can be obtained using /v1/regions
.
Available load balancer types for your region can be obtained using /v1/loadBalancerTypes
.
region required | string Region to launch the load balancer into |
type required | string Load balancer type |
reference | string An identifying name you can refer to the load balancer |
contractType required | string Enum: "HOURLY" "MONTHLY" The contract applicable for the load balancer |
billingFrequency required | integer Enum: 1 3 6 12 How often you wish to be charged. Used only when contract type is MONTHLY. '1' means every month, '3' every three months and so on. |
rootDiskStorageType required | string Enum: "LOCAL" "CENTRAL" The root disk's storage type |
targetPort required | integer The port that the registered instances listen to |
{- "type": "lsw.m3.large",
- "region": "eu-west-3",
- "reference": "my-loadbalancer-1",
- "billingFrequency": 1,
- "contractType": "HOURLY",
- "rootDiskStorageType": "CENTRAL",
- "targetPort": 443
}
{- "customerId": "1111111",
- "id": "3b30340a-050f-4424-8e50-e846e8fc07e9",
- "type": "lsw.c3.large",
- "resources": {
- "cpu": {
- "value": 2,
- "unit": "vCPU"
}, - "memory": {
- "value": 3,
- "unit": "GiB"
}, - "publicNetworkSpeed": {
- "value": 1,
- "unit": "Gbps"
}, - "privateNetworkSpeed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-loadbalancer-1",
- "state": "CREATING",
- "ips": [ ],
- "billingFrequency": 1,
- "contractTerm": 0,
- "contractType": "HOURLY",
- "contractEndsAt": "2025-03-07T10:32:51+00:00",
- "startedAt": "2024-03-07T10:32:51+00:00",
- "contractRenewalsAt": "2024-03-07T11:02:48+00:00",
- "contractCreatedAt": "2024-03-07T10:32:51+00:00",
- "configuration": {
- "stickySession": null,
- "balance": "roundrobin",
- "healthCheck": null,
- "xForwardedFor": true,
- "idleTimeOut": 60,
- "targetPort": 80
}
}
List and filter load balancers
limit | integer Default: 20 Example: limit=20 Limit the number of results returned. |
offset | integer Default: 0 Example: offset=10 Return results starting from the given offset. |
ip | string <ip> Example: ip=10.0.0.1 |
reference | string Example: reference=my-lb |
id | string <uuid> Example: id=a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 |
filter | string Example: filter=my-lb Using this parameter, you can filter by id, reference or IP. |
contractType | string Enum: "HOURLY" "MONTHLY" Example: contractType=HOURLY |
state | string Enum: "RUNNING" "STARTING" "STOPPED" "STOPPING" "CREATING" "DESTROYED" "DESTROYING" Example: state=RUNNING |
region | string Example: region=eu-west-3 Available regions can be found using the List Regions endpoint. |
type | string Example: type=lsw.c3.xlarge Available load balancer types can be found using the List Load Balacer Types endpoint. |
curl --request GET \ --url 'https://api.leaseweb.com/publicCloud/v1/loadBalancers/?limit=SOME_INTEGER_VALUE&offset=SOME_INTEGER_VALUE&ip=SOME_STRING_VALUE&reference=SOME_STRING_VALUE&id=SOME_STRING_VALUE&filter=SOME_STRING_VALUE&contractType=SOME_STRING_VALUE&state=SOME_STRING_VALUE®ion=SOME_STRING_VALUE&type=SOME_STRING_VALUE' \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "loadBalancers": [
- {
- "customerId": "11111111",
- "id": "5fd135a9-3ff6-4794-8b92-8cd8747a3ea3",
- "type": "lsw.c3.4xlarge",
- "resources": {
- "cpu": {
- "value": 16,
- "unit": "vCPU"
}, - "memory": {
- "value": 30,
- "unit": "GiB"
}, - "public_network_speed": {
- "value": 1,
- "unit": "Gbps"
}, - "private_network_speed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-load-balancer",
- "state": "RUNNING",
- "rootDiskSize": 10,
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "billingFrequency": 3,
- "contractTerm": 3,
- "contractType": "MONTHLY",
- "contractEndsAt": "2024-02-01T00:00:00+00:00",
- "startedAt": "2023-10-26T08:17:33+00:00",
- "contractRenewalsAt": "2024-02-01T00:00:00+00:00",
- "contractCreatedAt": "2023-10-26T08:17:19+00:00",
- "configuration": {
- "stickySession": {
- "enabled": true,
- "maxLifeTime": 1000
}, - "balance": "roundrobin",
- "healthCheck": {
- "method": "GET",
- "uri": "/",
- "host": null,
- "port": 80
}, - "xForwardedFor": false,
- "idleTimeOut": 60,
- "targetPort": 442
}
}
], - "_metadata": {
- "totalCount": 1,
- "limit": 20,
- "offset": 0
}
}
Get details about the load balancer
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/loadBalancers/695ddd91-051f-4dd6-9120-938a927a47d0 \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "customerId": "1111111",
- "id": "3b30340a-050f-4424-8e50-e846e8fc07e9",
- "type": "lsw.c3.large",
- "resources": {
- "cpu": {
- "value": 2,
- "unit": "vCPU"
}, - "memory": {
- "value": 3,
- "unit": "GiB"
}, - "publicNetworkSpeed": {
- "value": 1,
- "unit": "Gbps"
}, - "privateNetworkSpeed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-loadbalancer-1",
- "state": "RUNNING",
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": true
}
], - "billingFrequency": 1,
- "contractTerm": 0,
- "contractType": "HOURLY",
- "contractEndsAt": "2025-03-07T10:32:51+00:00",
- "startedAt": "2024-03-07T10:32:51+00:00",
- "contractRenewalsAt": "2024-03-07T11:02:48+00:00",
- "contractCreatedAt": "2024-03-07T10:32:51+00:00",
- "configuration": {
- "stickySession": {
- "enabled": true,
- "maxLifeTime": 1000
}, - "balance": "roundrobin",
- "healthCheck": {
- "method": "GET",
- "uri": "/",
- "host": null,
- "port": 80
}, - "xForwardedFor": false,
- "idleTimeOut": 60,
- "targetPort": 442
}
}
Terminate a Load balancer
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/loadBalancers/695ddd91-051f-4dd6-9120-938a927a47d0 \ --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."
}
Update load balancer configurations
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
type | string Load balancer type |
reference | string An identifying name you can refer to the load balancer |
contractType | string Enum: "HOURLY" "MONTHLY" |
object | |
balance | string Enum: "ROUNDROBIN" "LEASTCONN" "SOURCE" Algorithm to be used for load balancer |
object | |
xForwardedFor | boolean Is xForwardedFor enabled or not |
idleTimeOut | integer Time to close the connection if load balancer is idle |
targetPort | integer Port on which the backend (target) servers are listening to handle incoming requests |
{- "type": "lsw.m3.xlarge",
- "reference": "foo",
- "targetPort": 9000,
- "xForwardedFor": false,
- "contractType": "HOURLY",
- "balance": "roundrobin",
- "idleTimeOut": 60
}
{- "customerId": "11111111",
- "id": "d930cf34-0fdb-406d-b3d0-75add3eb5efe",
- "type": "lsw.c3.large",
- "resources": {
- "cpu": {
- "value": 2,
- "unit": "vCPU"
}, - "memory": {
- "value": 3,
- "unit": "GiB"
}, - "publicNetworkSpeed": {
- "value": 1,
- "unit": "Gbps"
}, - "privateNetworkSpeed": {
- "value": 100,
- "unit": "Mbps"
}
}, - "region": "eu-west-3",
- "reference": "my-loadbalancer1",
- "state": "RUNNING",
- "ips": [
- {
- "ip": "85.99.99.99",
- "prefixLength": "28",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false,
- "ddos": {
- "detectionProfile": "STANDARD_DEFAULT",
- "protectionType": "STANDARD"
}
}
], - "billingFrequency": 1,
- "contractTerm": 0,
- "contractType": "HOURLY",
- "contractEndsAt": null,
- "startedAt": null,
- "contractRenewalsAt": "2024-02-29T10:33:07+00:00",
- "contractCreatedAt": "2024-02-29T10:33:06+00:00",
- "configuration": {
- "stickySession": null,
- "balance": "roundrobin",
- "healthCheck": null,
- "xForwardedFor": false,
- "idleTimeOut": 60
}
}
Create listener
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
protocol required | string Enum: "HTTPS" "HTTP" "TCP" |
port required | integer Port that the listener listens to |
object |
{- "protocol": "HTTPS",
- "port": 443,
- "certificate": {
- "privateKey": "-----BEGIN EC PRIVATE KEY-----MHcCAQEEILqqNrnCZSXpc53XTmUGZGwEXUwGwoKePVMZF9ZI0HmJoAoGCCqGSM49AwEHoUQDQgAEGoUnmfpaHSOGrTjeXP/EgfLraQo62K7v2+np2rOwJXFwQ0AnXLeX7KN0fzHvxu9q3Zzv8IoRW9wDBHUsIbxUkA==-----END EC PRIVATE KEY-----",
- "certificate": "-----BEGIN CERTIFICATE-----MIIDHTCCAgWgAwIBAgIUFHZsZvW81TCgfRfHwd5i804KskgwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMRYwFAYDVQQKEw1MZWFzZXdlYiBFVENEMR4wHAYDVQQLExVMZWFzZXdlYiBFVENEIFJvb3QgQ0ExHjAcBgNVBAMTFUxlYXNld2ViIEVUQ0QgUm9vdCBDQTAeFw0yNDAyMDExMzQ4MDBaFw0yOTAxMzAxMzQ4MDBaMEYxCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMQ0wCwYDVQQDEwRyb290MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEGoUnmfpaHSOGrTjeXP/EgfLraQo62K7v2+np2rOwJXFwQ0AnXLeX7KN0fzHvxu9q3Zzv8IoRW9wDBHUsIbxUkKOBgzCBgDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQU6IIkuHVW/jHIMFzbavOrfhxCdDYwHwYDVR0jBBgwFoAU4dGXZlxh4padDgTk+wYgbj2+8nwwCwYDVR0RBAQwAoIAMA0GCSqGSIb3DQEBCwUAA4IBAQBCpJPE3CZSHOTqGC7x4mpGmaxvQ9RVt0IjNepct9MyOX1h2sV8fgHMaqfA0AA3IZ0Wkzn93GVus68aSzSN902bRxlYHaRI8G81ct1GflMXRZ/fgJ4+FZpK0uZj9kodw4GobeOZWRPqFgoziIcHz6TonXxMbd5XnQlZCGCqROe5iiyEKajBDpLsx1AWeN/1wFCOq+O/QP61jkfIbDYgJGyITXc/mVf2/A0J2BrK6FOr6NllbviwdE7wj+fUGa1LS1IvU+7P0heq8dE+0pd3rMkQXvD9lrer0MKg7SgrD4k51pCsjdRRSSE+AO8+jXDz/keyst0B1rTXhyrYcHxdy8lh-----END CERTIFICATE-----",
- "chain": "-----BEGIN CERTIFICATE-----MIID8DCCAtigAwIBAgIUf76ICDx/fIqeG6u06SsKmQOpEFswDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMRYwFAYDVQQKEw1MZWFzZXdlYiBFVENEMR4wHAYDVQQLExVMZWFzZXdlYiBFVENEIFJvb3QgQ0ExHjAcBgNVBAMTFUxlYXNld2ViIEVUQ0QgUm9vdCBDQTAeFw0yNDAyMDExMjQ3MDBaFw0yOTAxMzAxMjQ3MDBaMIGPMQswCQYDVQQGEwJOTDEUMBIGA1UECBMLTmV0aGVybGFuZHMxEjAQBgNVBAcTCUFtc3RlcmRhbTEWMBQGA1UEChMNTGVhc2V3ZWIgRVRDRDEeMBwGA1UECxMVTGVhc2V3ZWIgRVRDRCBSb290IENBMR4wHAYDVQQDExVMZWFzZXdlYiBFVENEIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzTXkJ5YwmvgIaP/KTWFLKzg+jI2Hy1U1t76k5vy48cOhMuAN0zXI+Jb/eQ2eSB5YWLKySQYS7sjhPa3wLrv0pT1Zy5WPuQ4wU3LJHMwMyM+jIp4LQrENipt5qkO3EHOWDQUl6+mm/gyWJK/FUHZaj4+DAKs6H5W6GEfM3FhEzmZi2R3wzwjCQRaGwdXnzITNRfdFuT3oMdgPwXBXgNEvXd9Oy0L4K9nZon/ToS5CSsNntzk4nLlcQtoB/k1WXfqG+tZINJTxwCtUN1X5Vspn11AJHD48hIj1gWTNzxKRv8Iq4+nk7Kx85DYG4rtj4Rq7LWQn/i92wtYLo0Z0fUiafAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTh0ZdmXGHilp0OBOT7BiBuPb7yfDANBgkqhkiG9w0BAQsFAAOCAQEAV1ZxkmLT8q9nUOZTG/RX+/8bKeDPLpuFeFG66YRLTyIu44J0DUTwi0VVvDmJIcWUHmU2f8WW+Uy3sapxelWuRV7JLqctGNF7thKdGegYzKDDpmwi0s7VHBZM2EkZy7YdQkxuWqxxl2+Y4Hw3GqndeOplVseh939bzgafYwOhelPoelafWfdOLyFQRoX1gd8HaZcs+pZaH8qlqC1DrVF/kkUCgCl/tQr3jiHNofzC2bb8tpro9auzDbXKQDGxp4zi0RW5OSYp6JfW6ocgoOy7SPvl4V8FEIBf0/WCc5DRndtjhQzurajjhg9SgeSp2BKxpuU3cjdRxoA1j/LsgNrUPw==-----END CERTIFICATE-----"
}
}
{- "protocol": "HTTPS",
- "port": 80,
- "id": "fac06878-6655-4956-8ea7-124a97f133ab"
}
Get details about a listener
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
listenerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Listener ID |
curl --request GET \ --url https://api.leaseweb.com/publicCloud/v1/loadBalancers/695ddd91-051f-4dd6-9120-938a927a47d0/listeners/695ddd91-051f-4dd6-9120-938a927a47d0 \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "protocol": "HTTPS",
- "port": 80,
- "id": "fac06878-6655-4956-8ea7-124a97f133ab"
}
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
listenerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Listener ID |
protocol required | string Enum: "HTTPS" "HTTP" "TCP" |
port required | integer |
object Required if listener type is HTTPS |
{- "protocol": "HTTPS",
- "port": "443",
- "certificate": {
- "chain": "-----BEGIN CERTIFICATE-----MIID8DCCAtigAwIBAgIUf76ICDx/fIqeG6u06SsKmQOpEFswDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMRYwFAYDVQQKEw1MZWFzZXdlYiBFVENEMR4wHAYDVQQLExVMZWFzZXdlYiBFVENEIFJvb3QgQ0ExHjAcBgNVBAMTFUxlYXNld2ViIEVUQ0QgUm9vdCBDQTAeFw0yNDAyMDExMjQ3MDBaFw0yOTAxMzAxMjQ3MDBaMIGPMQswCQYDVQQGEwJOTDEUMBIGA1UECBMLTmV0aGVybGFuZHMxEjAQBgNVBAcTCUFtc3RlcmRhbTEWMBQGA1UEChMNTGVhc2V3ZWIgRVRDRDEeMBwGA1UECxMVTGVhc2V3ZWIgRVRDRCBSb290IENBMR4wHAYDVQQDExVMZWFzZXdlYiBFVENEIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzTXkJ5YwmvgIaP/KTWFLKzg+jI2Hy1U1t76k5vy48cOhMuAN0zXI+Jb/eQ2eSB5YWLKySQYS7sjhPa3wLrv0pT1Zy5WPuQ4wU3LJHMwMyM+jIp4LQrENipt5qkO3EHOWDQUl6+mm/gyWJK/FUHZaj4+DAKs6H5W6GEfM3FhEzmZi2R3wzwjCQRaGwdXnzITNRfdFuT3oMdgPwXBXgNEvXd9Oy0L4K9nZon/ToS5CSsNntzk4nLlcQtoB/k1WXfqG+tZINJTxwCtUN1X5Vspn11AJHD48hIj1gWTNzxKRv8Iq4+nk7Kx85DYG4rtj4Rq7LWQn/i92wtYLo0Z0fUiafAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTh0ZdmXGHilp0OBOT7BiBuPb7yfDANBgkqhkiG9w0BAQsFAAOCAQEAV1ZxkmLT8q9nUOZTG/RX+/8bKeDPLpuFeFG66YRLTyIu44J0DUTwi0VVvDmJIcWUHmU2f8WW+Uy3sapxelWuRV7JLqctGNF7thKdGegYzKDDpmwi0s7VHBZM2EkZy7YdQkxuWqxxl2+Y4Hw3GqndeOplVseh939bzgafYwOhelPoelafWfdOLyFQRoX1gd8HaZcs+pZaH8qlqC1DrVF/kkUCgCl/tQr3jiHNofzC2bb8tpro9auzDbXKQDGxp4zi0RW5OSYp6JfW6ocgoOy7SPvl4V8FEIBf0/WCc5DRndtjhQzurajjhg9SgeSp2BKxpuU3cjdRxoA1j/LsgNrUPw==-----END CERTIFICATE-----",
- "certificate": "-----BEGIN CERTIFICATE-----MIIDHTCCAgWgAwIBAgIUFHZsZvW81TCgfRfHwd5i804KskgwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMRYwFAYDVQQKEw1MZWFzZXdlYiBFVENEMR4wHAYDVQQLExVMZWFzZXdlYiBFVENEIFJvb3QgQ0ExHjAcBgNVBAMTFUxlYXNld2ViIEVUQ0QgUm9vdCBDQTAeFw0yNDAyMDExMzQ4MDBaFw0yOTAxMzAxMzQ4MDBaMEYxCzAJBgNVBAYTAk5MMRQwEgYDVQQIEwtOZXRoZXJsYW5kczESMBAGA1UEBxMJQW1zdGVyZGFtMQ0wCwYDVQQDEwRyb290MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEGoUnmfpaHSOGrTjeXP/EgfLraQo62K7v2+np2rOwJXFwQ0AnXLeX7KN0fzHvxu9q3Zzv8IoRW9wDBHUsIbxUkKOBgzCBgDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQU6IIkuHVW/jHIMFzbavOrfhxCdDYwHwYDVR0jBBgwFoAU4dGXZlxh4padDgTk+wYgbj2+8nwwCwYDVR0RBAQwAoIAMA0GCSqGSIb3DQEBCwUAA4IBAQBCpJPE3CZSHOTqGC7x4mpGmaxvQ9RVt0IjNepct9MyOX1h2sV8fgHMaqfA0AA3IZ0Wkzn93GVus68aSzSN902bRxlYHaRI8G81ct1GflMXRZ/fgJ4+FZpK0uZj9kodw4GobeOZWRPqFgoziIcHz6TonXxMbd5XnQlZCGCqROe5iiyEKajBDpLsx1AWeN/1wFCOq+O/QP61jkfIbDYgJGyITXc/mVf2/A0J2BrK6FOr6NllbviwdE7wj+fUGa1LS1IvU+7P0heq8dE+0pd3rMkQXvD9lrer0MKg7SgrD4k51pCsjdRRSSE+AO8+jXDz/keyst0B1rTXhyrYcHxdy8lh-----END CERTIFICATE-----",
- "privateKey": "-----BEGIN EC PRIVATE KEY-----MHcCAQEEILqqNrnCZSXpc53XTmUGZGwEXUwGwoKePVMZF9ZI0HmJoAoGCCqGSM49AwEHoUQDQgAEGoUnmfpaHSOGrTjeXP/EgfLraQo62K7v2+np2rOwJXFwQ0AnXLeX7KN0fzHvxu9q3Zzv8IoRW9wDBHUsIbxUkA==-----END EC PRIVATE KEY-----"
}
}
{- "protocol": "HTTPS",
- "port": 443,
- "id": "fac06878-6655-4956-8ea7-124a97f133ab"
}
Delete a listener
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
listenerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Listener ID |
curl --request DELETE \ --url https://api.leaseweb.com/publicCloud/v1/loadBalancers/695ddd91-051f-4dd6-9120-938a927a47d0/listeners/695ddd91-051f-4dd6-9120-938a927a47d0 \ --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."
}
List targets registered in a load balancer.
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
curl --request POST \ --url https://api.leaseweb.com/publicCloud/v1/loadBalancers/695ddd91-051f-4dd6-9120-938a927a47d0/targets \ --header 'x-lsw-auth: REPLACE_KEY_VALUE'
{- "targets": [
- {
- "id": "0af98842-38a4-4fe5-8b6d-687730e8d8c1",
- "reference": "lb instance 1",
- "operatingSystem": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "RUNNING",
- "ips": [
- {
- "ip": "10.32.60.2",
- "prefixLength": "32",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": false
}
], - "healthCheckStatus": {
- "checkStatus": "Connection timeout",
- "status": "DOWN"
}
}, - {
- "id": "8be7f8c6-e8c0-4321-a01e-ac754e2f6872",
- "reference": "lb instance 2",
- "operatingSystem": {
- "id": "UBUNTU_22_04_64BIT",
- "name": "Ubuntu 22.04 LTS (x86_64)",
- "version": "22.04",
- "family": "linux",
- "flavour": "ubuntu",
- "architecture": "x86_64"
}, - "state": "RUNNING",
- "ips": [
- {
- "ip": "85.17.17.71",
- "prefixLength": "32",
- "version": 4,
- "nullRouted": false,
- "reverseLookup": null,
- "mainIp": true
}
]
}
], - "_metadata": {
- "totalCount": 2,
- "limit": 20,
- "offset": 0
}
}
Register targets in a load balancer. Instances must be running and have private network enabled so they can be registered.
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
Array of objects |
{- "targets": [
- {
- "id": "8be7f8c6-e8c0-4321-a01e-ac754e2f6872"
}, - {
- "id": "b05917e1-96a4-442a-900c-c41f273d95c9"
}
]
}
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}
Deregister targets registered in a load balancer.
loadBalancerId required | string <uuid> Example: 695ddd91-051f-4dd6-9120-938a927a47d0 Load balancer ID |
Array of objects |
{- "targets": [
- {
- "id": "8be7f8c6-e8c0-4321-a01e-ac754e2f6872"
}, - {
- "id": "b05917e1-96a4-442a-900c-c41f273d95c9"
}
]
}
{- "correlationId": "289346a1-3eaf-4da4-b707-62ef12eb08be",
- "errorCode": "400",
- "errorDetails": { },
- "errorMessage": "The API could not interpret your request correctly."
}