Sends a startup request to the AWS API for the specified instance id.
{instance-id}
is the aws-power-toggle internal id
, NOT the AWS instance_id
URL : /api/v1/instance/{instance-id}/start
Method : POST
Code : 200 OK
Given the following instance:
{
"id": "1aef6299109b",
"instance_id": "i-0008ad1bfd83a52eb",
"instance_type": "t3.xlarge",
"name": "kube-k8node2",
"state": "stopped",
"environment": "kube",
"vcpu": 4,
"memory_gb": 16,
"pricing": 0.1856
}
Use the id
field (NOT the instance_id
field) to place the following request:
/api/v1/instance/1aef6299109b/start
Responses vary depending on upstream AWS API since we pass the exact aws response. This will be addressed in an upcomming release for consistency.