GET/stacks/:stack_id/servers/:server_id
Get Serverpublic
Required Parameters
stack_id
stringThe stack UID
server_id
stringThe server UID
Get information about a single server.
Related Models:Server
Request
GET
/stacks/:stack_id/servers/:server_idcurl -X GET \
"https://app.cloud66.com/api/3/stacks/:stack_id/servers/:server_id" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": {
"uid": "f8468fc145ea49bac474b30a8fea888d",
"vendor_uid": "2492780",
"name": "Caribou",
"address": "146.185.133.183",
"distro": "ubuntu",
"distro_version": "14.04",
"dns_record": "caribou.aws-us-east-1.cloud66.net",
"user_name": "root",
"server_type": "p",
"server_roles": [
"rails",
"web",
"app",
"db:mysql:master"
],
"server_group_id": 128,
"stack_uid": "5999b763474b0eafa5fafb64bff0ba80",
"has_agent": true,
"params": {
"availability_zone": "us-east-1a",
"size": "t2.micro",
"region": "us-east-1",
"ecs_instance_profile": null
},
"created_at": "2014-08-29T17:21:25Z",
"updated_at": "2014-08-30T17:21:25Z",
"region": "us-east-1",
"availability_zone": "us-east-1a",
"ext_ipv4": "146.185.133.183",
"health_state": 3,
"int_ipv4": "10.177.13.137",
"int_ipv6": null,
"ext_ipv6": null
}
}
GET/stacks/:stack_id/servers
List Serverspublic
Required Parameters
stack_id
stringThe stack UID
Get list of all the servers of a stack.
Request
GET
/stacks/:stack_id/serverscurl -X GET \
"https://app.cloud66.com/api/3/stacks/:stack_id/servers" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": [
{
"uid": "f8468fc145ea49bac474b30a8fea888d",
"vendor_uid": "2492780",
"name": "Caribou",
"address": "146.185.133.183",
"distro": "ubuntu",
"distro_version": "14.04",
"dns_record": "caribou.aws-us-east-1.cloud66.net",
"user_name": "root",
"server_type": "p",
"server_roles": [
"rails",
"web",
"app",
"db:mysql:master"
],
"server_group_id": 128,
"stack_uid": "5999b763474b0eafa5fafb64bff0ba80",
"has_agent": true,
"params": {
"availability_zone": "us-east-1a",
"size": "t2.micro",
"region": "us-east-1",
"ecs_instance_profile": null
},
"created_at": "2014-08-29T17:21:25Z",
"updated_at": "2014-08-30T17:21:25Z",
"region": "us-east-1",
"availability_zone": "us-east-1a",
"ext_ipv4": "146.185.133.183",
"health_state": 3,
"int_ipv4": "10.177.13.137",
"int_ipv6": null,
"ext_ipv6": null
}
],
"count": 1,
"pagination": {
"previous": null,
"next": null,
"current": 1,
"per_page": 30,
"count": 1,
"pages": 1
}
}
POST/stacks/:stack_id/servers/:server_id/reboot
Reboot Serveradmin
Required Parameters
stack_id
stringThe stack UID
server_id
stringThe server UID
Reboot a server.
Related Models:Server
Request
POST
/stacks/:stack_id/servers/:server_id/rebootcurl -X POST \
"https://app.cloud66.com/api/3/stacks/:stack_id/servers/:server_id/reboot" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"stack_id": "5999b763474b0eafa5fafb64bff0ba80",
"server_id": "f8468fc145ea49bac474b30a8fea888d"
}'
Response
{
"response": {
"ok": true,
"message": "Server reboot initiated"
}
}