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

                Update Mr Scaler

Parameters

ParameterTypeDescription
MRSCALER_ID * String

The MRScaler id you want to update

Example: simrs-12223456789
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Update Task Capacity

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
 "mrScaler": {
    "compute": {
      "instanceGroups": {
        "taskGroup": {
          "capacity": {
            "target": 0,
            "minimum": 0,
            "maximum": 0
          }
        }
      }
    }
  }
}
Request - Update Termination Protected (Only can be updated if created with the new strategy)

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
   "mrScaler":{
      "cluster":{
        "visibleToAllUsers":bool,
          "terminationProtected":false
      }
   }
}