fbpx
GEThttps://api.spotinst.io/aws/emr/mrScaler/{MRSCALER_ID}?accountId={ACCOUNT_ID}

                      Get a list of all instances and instances groups in the cluster

Parameters

Parameter Type Description
MRSCALER_ID * String

The MRScaler id you want to get instances for

Example: simrs-12223
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
	"Content-Type": "application/json",
	"Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
"request": {
    "id": "91f7f580-2c9d-42dc-b3c2-463514e406d7",
    "url": "/aws/emr/mrScaler/simrs-12223456789/instance",
    "method": "GET",
    "timestamp": "2015-08-02T09:11:16.356Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:emr:mrScaler:instance",
    "items": [
      {
        "instanceId": "i-asdfjk3989",
        "instanceGroupId": "ig-asdfjl2",
        "instanceGroupRole": "MASTER",
        "instanceType": "m1.medium",
        "availabilityZone": "us-east-1a",
        "status": "Running",
        "updatedAt": "2015-08-02T09:11:16.356Z"
      },
      {
        "instanceId": "i-13ft257wdas",
        "instanceGroupId": "ig-dsfjk3",
        "instanceGroupRole": "CORE",
        "instanceType": "m1.medium",
        "availabilityZone": "us-east-1a",
        "status": "Running",
        "updatedAt": "2015-08-02T09:11:16.356Z"
      },
      {
        "instanceId": "i-ajlkj209218",
        "instanceGroupId": "ig-dasdf2",
        "instanceGroupRole": "TASK",
        "instanceType": "m1.medium",
        "availabilityZone": "us-east-1a",
        "status": "Running",
        "updatedAt": "2015-08-02T09:11:16.356Z"
      }
    ],
    "count": 3
  }
}