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

Delete a deployment pod autoscaling policies.

URL Parameters

Parameter Type Description
OCEAN_DEPLOYMENT_SCALER_ID * String

The Ocean cluster deployment scaler ID

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Request

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

Body
Copied!
Downloaded!
{
	"request": { 
		"id": "9775deb6-e375-48e6-9c71-51b28fcdd0ca", 
		"url": "/ocean/aws/k8s/cluster/o-59e95e84/deploymentScaler/sds-60081f60?accountId=act-7461862f", 
		"method": "DELETE", 
		"timestamp": "2019-05-13T14:42:42.038Z" 
	},
	"response": {
		"status":
			{ 
				"code": 200, 
				"message": "OK" 
			}
	}
}
Response - 400 - Delete - Failure

Body
Copied!
Downloaded!
{
    "request": {
        "id": "49a72b3c-e0f9-4c53-974a-eec943c5570f",
        "url": "/aws/k8s/cluster/o-59e95e84/deploymentScaler/sds-1bhhhgb13a3c?accountId=act-7461862f",
        "method": "DELETE",
        "timestamp": "2019-05-13T14:42:01.009Z"
    },
    "response": {
        "status": {
            "code": 400,
            "message": "Bad Request"
        },
        "errors": [
            {
                "code": "VALIDATION_ERROR",
                "message": "DeploymentScaler sds-1bhhhgb13a3c does not exist"
            }
        ]
    }
}