fbpx
GEThttps://api.spotinst.io/ocean/aws/k8s/deploymentScaler?accountId={ACCOUNT_ID}

Get all deployment pod autoscaling policies.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Request

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

Body
Copied!
Downloaded!
{
    "request": {
        "id": "33a8c1d6-e882-4089-aa1c-6bd3ce54842d",
        "url": "/ocean/aws/k8s/deploymentScaler?accountId=act-594fb635",
        "method": "GET",
        "timestamp": "2019-01-05T13:13:41.907Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:k8s:cluster:deploymentScaler",
        "items": [
			{
              "deploymentScaler": {
				"id": "sds-60081f60",
                "oceanId" : "o-123",
                "namespace": "myNamespace",
                "deploymentName": "myDepName",
                "capacityLimits": {
                  "min": 2,
                  "max": 6
                },
                "scaling": {
                  "up": [
                    {
                      "policyName": "alarm up",
                      "source": "cloudWatch",
                      "metricName": "Latency",
                      "statistic": "average",
                      "unit": "bytes",
                      "operator": "gte",
                      "threshold": 120,
                      "namespace": "AWS/ELB",
                      "period": 300,
                      "evaluationPeriods": 2,
                      "cooldown": 360,
                      "isEnabled" : true,
                      "action": {
                        "type": "adjustment",
                        "target": 1
                      },
                      "dimensions": [
                        {
                          "name": "LoadBalancerName",
                          "value": "elb-1234"
                        }
                      ]
                    }
                  ],
                  "down": [
                    {
                      "policyName": "alarm down",
                      "source": "cloudWatch",
                      "metricName": "Latency",
                      "statistic": "average",
                      "unit": "bytes",
                      "operator": "lt",
                      "threshold": 10,
                      "namespace": "AWS/ELB",
                      "period": 60,
                      "evaluationPeriods": 3,
                      "cooldown": 120,
                      "action": {
                        "type": "adjustment",
                        "adjustment": 3
                      },
                      "dimensions": [
                        {
                          "name": "LoadBalancerName",
                          "value": "elb-1234"
                        }
                      ]
                    }
                  ]
                }
              }
			}
        ],
        "count": 1
    }
}