238 lines
5.9 KiB
JSON
238 lines
5.9 KiB
JSON
{
|
|
"droplets_list": {
|
|
"droplets": [
|
|
{
|
|
"id": 12345678,
|
|
"name": "test-server-1",
|
|
"memory": 1024,
|
|
"vcpus": 1,
|
|
"disk": 30,
|
|
"locked": false,
|
|
"status": "active",
|
|
"kernel": {
|
|
"id": 2233,
|
|
"name": "Ubuntu 22.04 x64 vmlinuz-5.15.0-1021-aws",
|
|
"version": "5.15.0-1021-aws"
|
|
},
|
|
"created_at": "2025-01-07T10:00:00Z",
|
|
"features": ["backups", "ipv6", "private_networking", "monitoring"],
|
|
"backup_ids": [],
|
|
"snapshot_ids": [],
|
|
"image": {
|
|
"id": 77819336,
|
|
"name": "22.04 (LTS) x64",
|
|
"distribution": "Ubuntu",
|
|
"slug": "ubuntu-22-04-x64",
|
|
"public": true,
|
|
"regions": ["nyc1", "nyc3", "sfo1", "sfo2", "sfo3", "lon1", "ams3", "fra1", "blr1", "sgp1", "syd1", "tor1", "ams2", "ams1"],
|
|
"created_at": "2022-04-20T18:22:00Z",
|
|
"min_disk_size": 20,
|
|
"size_gigabytes": 2.5,
|
|
"description": "Ubuntu 22.04 x64",
|
|
"tags": [],
|
|
"status": "available"
|
|
},
|
|
"size": {
|
|
"slug": "s-1vcpu-1gb-30gb",
|
|
"memory": 1024,
|
|
"vcpus": 1,
|
|
"disk": 30,
|
|
"transfer": 1,
|
|
"price_monthly": 4.0,
|
|
"price_hourly": 0.00595,
|
|
"regions": ["nyc1", "nyc3", "sfo1", "sfo2", "sfo3", "lon1", "ams3", "fra1", "blr1", "sgp1", "syd1", "tor1", "ams2", "ams1"],
|
|
"available": true,
|
|
"description": "Basic"
|
|
},
|
|
"size_slug": "s-1vcpu-1gb-30gb",
|
|
"networks": {
|
|
"v4": [
|
|
{
|
|
"ip_address": "192.0.2.1",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.0.2.1",
|
|
"type": "public"
|
|
}
|
|
],
|
|
"v6": [
|
|
{
|
|
"ip_address": "2001:db8::1",
|
|
"netmask": 64,
|
|
"gateway": "2001:db8::1",
|
|
"type": "public"
|
|
}
|
|
]
|
|
},
|
|
"region": {
|
|
"name": "New York 3",
|
|
"slug": "nyc3",
|
|
"sizes": ["s-1vcpu-1gb-30gb", "s-3vcpu-1gb-60gb"],
|
|
"features": ["backups", "ipv6", "private_networking", "install_agent"],
|
|
"available": true
|
|
},
|
|
"tags": ["test", "development"],
|
|
"vpc_uuid": null
|
|
}
|
|
],
|
|
"links": {},
|
|
"meta": {
|
|
"total": 1
|
|
}
|
|
},
|
|
"droplet_create_success": {
|
|
"droplet": {
|
|
"id": 87654321,
|
|
"name": "new-droplet",
|
|
"memory": 1024,
|
|
"vcpus": 1,
|
|
"disk": 30,
|
|
"locked": false,
|
|
"status": "new",
|
|
"kernel": null,
|
|
"created_at": "2025-01-07T15:30:00Z",
|
|
"features": ["backups", "ipv6"],
|
|
"backup_ids": [],
|
|
"snapshot_ids": [],
|
|
"image": {
|
|
"id": 77819336,
|
|
"name": "22.04 (LTS) x64",
|
|
"slug": "ubuntu-22-04-x64"
|
|
},
|
|
"size": {
|
|
"slug": "s-1vcpu-1gb-30gb",
|
|
"memory": 1024,
|
|
"vcpus": 1,
|
|
"disk": 30,
|
|
"price_monthly": 4.0
|
|
},
|
|
"size_slug": "s-1vcpu-1gb-30gb",
|
|
"networks": {
|
|
"v4": [],
|
|
"v6": []
|
|
},
|
|
"region": {
|
|
"name": "New York 3",
|
|
"slug": "nyc3"
|
|
},
|
|
"tags": []
|
|
},
|
|
"links": {
|
|
"actions": [
|
|
{
|
|
"id": 68212773,
|
|
"rel": "create",
|
|
"href": "https://api.digitalocean.com/v2/actions/68212773"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"volumes_list": {
|
|
"volumes": [
|
|
{
|
|
"id": "506f78a4-e098-11e5-ad9f-000f53306ae1",
|
|
"region": {
|
|
"name": "New York 3",
|
|
"slug": "nyc3",
|
|
"sizes": ["s-1vcpu-1gb-30gb", "s-3vcpu-1gb-60gb"],
|
|
"features": ["backups", "volumes"],
|
|
"available": true
|
|
},
|
|
"droplet_ids": [12345678],
|
|
"name": "data-volume",
|
|
"description": "Test volume",
|
|
"size_gigabytes": 100,
|
|
"created_at": "2025-01-06T00:00:00Z",
|
|
"filesystem_type": "ext4",
|
|
"filesystem_label": "data"
|
|
}
|
|
],
|
|
"links": {},
|
|
"meta": {
|
|
"total": 1
|
|
}
|
|
},
|
|
"volume_create_success": {
|
|
"volume": {
|
|
"id": "a1b2c3d4-e098-11e5-ad9f-000f53306ae1",
|
|
"region": {
|
|
"name": "New York 3",
|
|
"slug": "nyc3"
|
|
},
|
|
"droplet_ids": [],
|
|
"name": "new-volume",
|
|
"description": "New test volume",
|
|
"size_gigabytes": 100,
|
|
"created_at": "2025-01-07T15:30:00Z"
|
|
}
|
|
},
|
|
"regions_list": {
|
|
"regions": [
|
|
{
|
|
"name": "New York 1",
|
|
"slug": "nyc1",
|
|
"sizes": ["s-1vcpu-1gb-30gb", "s-3vcpu-1gb-60gb"],
|
|
"features": ["backups", "ipv6"],
|
|
"available": true
|
|
},
|
|
{
|
|
"name": "New York 3",
|
|
"slug": "nyc3",
|
|
"sizes": ["s-1vcpu-1gb-30gb", "s-3vcpu-1gb-60gb"],
|
|
"features": ["backups", "ipv6", "volumes"],
|
|
"available": true
|
|
}
|
|
],
|
|
"links": {},
|
|
"meta": {
|
|
"total": 2
|
|
}
|
|
},
|
|
"sizes_list": {
|
|
"sizes": [
|
|
{
|
|
"slug": "s-1vcpu-1gb-30gb",
|
|
"memory": 1024,
|
|
"vcpus": 1,
|
|
"disk": 30,
|
|
"transfer": 1,
|
|
"price_monthly": 4.0,
|
|
"price_hourly": 0.00595,
|
|
"regions": ["nyc1", "nyc3"],
|
|
"available": true,
|
|
"description": "Basic"
|
|
},
|
|
{
|
|
"slug": "s-3vcpu-1gb-60gb",
|
|
"memory": 1024,
|
|
"vcpus": 3,
|
|
"disk": 60,
|
|
"transfer": 3,
|
|
"price_monthly": 12.0,
|
|
"price_hourly": 0.01786,
|
|
"regions": ["nyc1", "nyc3"],
|
|
"available": true,
|
|
"description": "Standard"
|
|
}
|
|
],
|
|
"links": {},
|
|
"meta": {
|
|
"total": 2
|
|
}
|
|
},
|
|
"error_401": {
|
|
"id": "unauthorized",
|
|
"message": "Unable to authenticate you"
|
|
},
|
|
"error_404": {
|
|
"id": "not_found",
|
|
"message": "The resource you requested could not be found"
|
|
},
|
|
"error_429": {
|
|
"id": "too_many_requests",
|
|
"message": "You have exceeded the rate limit"
|
|
},
|
|
"error_500": {
|
|
"id": "server_error",
|
|
"message": "An internal server error occurred"
|
|
}
|
|
}
|