fbpx
PUThttps://api.spotinst.iohttps://api.spotinst.io/compute/azure/group/{GROUP_ID}?accountId={ACCOUNT_ID}

 

          Update an Elastigroup cluster

URL Parameters

Parameter Type Description
GROUP_ID * String

ID of Elastigroup to update.

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountid associated with your token

Example: act-123abc
Request

Headers
{  
   "Content-Type": "application/json",
   "Authorization": "Bearer ${token}" 
}
Body
Copied!
Downloaded!
{
  "group": {
    "name": "spotinst-group",
    "capacity": {
      "target": 2,
      "minimum": 2,
      "maximum": 10
    },
    "strategy": {
      "lowPriorityPercentage": 100,
      "odCount": 1,
      "drainingTimeout": 300
    },
    "compute": {
      "vmSizes": {
        "odSizes": [
          "Standard_A1",
          "Standard_A2"
        ],
        "lowPrioritySizes": [
          "Standard_A1",
          "Standard_A2"
        ]
      }
    }
  }
}
  • name * String
    Elastigroup name
  • capacity * Object
    Capacity of Elastigroup.
  • capacity.target * Integer
    Desired number of instances for Elastigroup to maintain.
  • capacity.minimum * Integer
    Minimum number of instances.
  • capacity.maximum * Integer
    Maximum number of instances.
  • strategy * Object
  • strategy.lowPriorityPercentage Integer
    Percentage of Low Priority instances to maintain.

    Required if odCount isn't specified.

    Default: 100
  • strategy.odCount Integer
    Number of On-Demand instances to maintain.

    Required if lowPriorityPercentage isn't specified.

  • strategy.drainingTimeout Integer
    Time (seconds) to allow the instance be drained from incoming TCP connections and detached from MLB before terminating it during a scale down operation.
    Default: 120 seconds
  • compute * Object
  • compute.vmSizes * Array<Object>
    Sizes of On-Demand and Low-Priority instances.
  • compute.vmSizes.odSizes * Array<String>
    Available On-Demand instance . sizes.
  • compute.vmSizes.lowPrioritySizes * Array<String>
    Available Low-Priority instance sizes.