Updated: January 14th, 2013
Get instance provisioning status
Allows you to get instance provisioning status for add and remove operations.
Who can use it
Any user with an Engine Yard Cloud login and API token for the environment.
To get add instances status
GET https://cloud.engineyard.com:443/api/v2/environments/YOUR_ENVIRO_ID_GOES_HERE/add_instances
To get remove instances status
GET https://cloud.engineyard.com:443/api/v2/environments/YOUR_ENVIRO_ID_GOES_HERE/remove_instances
Valid response example
This example shows an add operation in progress for an application instance:
{
"requests": [{
"amazon_id": "i-59672a28",
"availability_zone": "us-east-1d",
"bootstrapped_at": "2013-01-15T01:51:11+00:00",
"chef_status": [{
"message": "Engine Yard stack bootstrapped",
"timestamp": "2013-01-15T01:51:25+00:00"
}, {
"message": "configuring instance",
"timestamp": "2013-01-15T01:51:26+00:00"
}, {
"message": "waiting for ssh access",
"timestamp": "2013-01-15T01:52:00+00:00"
}],
"error_message": null,
"id": 209664,
"name": null,
"role": "app",
"size": "medium_cpu_64",
"status": "building",
"public_hostname": "ec2-184-73-73-148.compute-1.amazonaws.com",
"private_hostname": "ip-10-30-138-28.ec2.internal"
}]
}
Curl examples
This curl command to receives a response list of add operations in progress:
curl -v -H "X-EY-Cloud-Token: ENGINEYARD_API_TOKEN" -H "Accept: application/json" -H "Content-type: application/json" https://cloud.engineyard.com:443/api/v2/environments/YOUR_ENVIRO_ID_GOES_HERE/add_instances
Where ENGINEYARD_API_TOKEN looks something like this: 76f2d43d79bedd9bc74654a1ded733c9
See Get the API Token.
And where YOUR_ENVIRO_ID_GOES_HERE is a number. For example, 99999
. See Get Environment Data.
This curl command to receives a response list of remove operations in progress:
curl -v -H "X-EY-Cloud-Token: ENGINEYARD_API_TOKEN" -H "Accept: application/json" -H "Content-type: application/json" https://cloud.engineyard.com:443/api/v2/environments/YOUR_ENVIRO_ID_GOES_HERE/remove_instances
If you have feedback or questions about this page, add a comment below. If you need help, submit a ticket with Engine Yard Support.
Comments
Please sign in to leave a comment.