Deleting an AS policy
Function
This API is used to delete an auto scaling policy.
URI
DELETE /v2/{project_id}/autoscaling-policy/{cluster_id}
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID. |
cluster_id | Yes | String | Cluster ID. |
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
node_group_name | Yes | String | Node group name. If resource_pool_name is set to default, the auto scaling policies are deleted by node group. If resource_pool_name is not set to default, policies of the resource pool corresponding to the node group are deleted. |
resource_pool_name | Yes | String | Pool name. If the cluster version does not support auto scaling for a specified resource pool, set this parameter to default. If this parameter is not default, the auto scaling policy of the specified resource pool is deleted. |
Response Parameters
None
Example Request
- Delete the auto scaling policies of the node_group_2 node group./v2/174ee662a7e24cc99bfc858c4558dbf6/autoscaling-policy/daf42ff0-05bc-4a1e-afbf-42b3131a1295{"node_group_name" : "node_group_2"}
- Delete the resource pool policy resource_1 node group policies./v2/174ee662a7e24cc99bfc858c4558dbf6/autoscaling-policy/daf42ff0-05bc-4a1e-afbf-42b3131a1295{"node_group_name" : "node_group_2","resource_pool_name" : "resource_1"}
Example Response
None
Status Codes
For details, see Status Codes.
Error Codes
See Error Codes.
- Function
- URI
- Request Parameters
- Response Parameters
- Example Request
- Example Response
- Status Codes
- Error Codes