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

                Update MR Scaler

Parameters

Parameter Type Description
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
Copied!
Downloaded!
{
  "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
Copied!
Downloaded!
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
   "mrScaler":{
      "cluster":{
        "visibleToAllUsers":bool,
          "terminationProtected":false
      }
   }
}
Request - Update Dynamic Volume Size in EBS Configuration

Headers
Copied!
Downloaded!
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
 "mrScaler": {
    "compute": {
      "instanceGroups": {
        "taskGroup": {
          "ebsConfiguration": {
            "ebsBlockDeviceConfigs": [
                "volumeSpecification": {
                  "dynamicVolumeSize": {
                    "baseSize": 30,
                    "resource": "CPU",
                    "sizePerResourceUnit": 15
                  }
                }
            ]
          }
        }
      }
    }
  }
}