Set size overridesedit
Applies size overrides for all of the instances belonging to the given resource.
Requestedit
PUT /api/v1/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides
Path parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
Y |
Identifier for the Deployment. |
|
|
Y |
User-specified RefId for the Resource (or '_main' if there is only one). |
|
|
Y |
The kind of resource. Only Elasticsearch resources are currently supported. |
Query parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
N |
After overrides are set, restarts the instance to apply the changes. |
Request bodyedit
(InstanceOverrides
) (required) The overrides to apply to all instances. Capacity overrides the RAM size in MB of the instance, and storage multipler overrides the multiplier of the instance RAM size that determines the storage quota of the instance. Capacity must be in the range [1024, 65536] and storage multiplier must be in the range [1.0, 1000.0].
Responsesedit
-
200
-
The updated overrides
-
404
-
-
The deployment specified by {deployment_id} cannot be found. (code:
deployments.deployment_not_found
) -
The Resource specified by {ref_id} cannot by found. (code:
deployments.deployment_resource_not_found
) -
The specified override was out of range. Capacity must be in the range [1024, 65536] and storage multiplier must be in the range [1.0, 1000.0]. (code:
instance_overrides.out_of_range
)
Headers
-
x-cloud-error-codes
(string
; allowed values: [deployments.deployment_not_found
,deployments.deployment_resource_not_found
,instance_overrides.out_of_range
]) - The error codes associated with the response
-
The deployment specified by {deployment_id} cannot be found. (code:
-
449
-
Elevated permissions are required. (code:
root.unauthorized.rbac.elevated_permissions_required
)Headers
-
x-cloud-error-codes
(string
; allowed values: [root.unauthorized.rbac.elevated_permissions_required
]) - The error codes associated with the response
-
Request exampleedit
curl -XPUT https://{{hostname}}/api/v1/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides \ -H "Authorization: ApiKey $ECE_API_KEY" \ -H 'Content-Type: application/json' \ -d ' { "capacity" : 0, "storage_multiplier" : 0.1 } '