fbpx
PUThttps://api.spotinst.io/aws/emr/mrScaler/{MRSCALER_ID}/scale/down?adjustment={NUMBER_OF_INSTANCES}&accountId={ACCOUNT_ID}

  

Scale Down MR Scaler instances

Parameters

Parameter Type Description
MRSCALER_ID * String

The MRScaler id you want to Scale up

Example: simrs-12223
NUMBER_OF_INSTANCES * Integer

Amount of instances to remove from MR Scaler

Example: 2
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": "3213e42e-455e-4901-a185-123456789",
    "url": "/aws/emr/mrScaler/simrs-c148c3c6/scale/down?adjustment=1",
    "method": "PUT",
    "time": "2015-06-28T15:49:11.911Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:emr:mrScaler:scale",
    "items": [
      {
        "modifiedInstanceGroups": [
          "ig-9870IUVXMYYW9"
        ],
        "victimInstances": [
          "i-1234GBWAZXDSR3"
        ]
      }
    ],
    "count": 1
  }
}