Querying a Bandwidth Auto Scaling Policy
Function
This API is used to query a bandwidth auto scaling policy.
URI
GET /v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
window_size |
Integer |
Monitoring period of bandwidth increases, in minutes. The value can be 1, 5, 10, 15, or 30. |
|
bandwidth_usage_upper_threshold |
Integer |
Threshold percentage of the average bandwidth usage that triggers an auto bandwidth increase. The value can be 50, 60, 70, 80, 90, or 95. |
|
scale_out_cooldown |
Integer |
Silence time (minimum interval) between two bandwidth increases, in seconds. Default value: 0 Value range: 0–86,400. |
|
scale_in_enabled |
Boolean |
Whether to enable automatic bandwidth decrease. Default value: false This parameter is reserved. |
|
bandwidth_usage_lower_threshold |
Integer |
Threshold percentage of average bandwidth usage that triggers an automatic bandwidth decrease. The value can be 10, 20, or 30. This parameter is reserved. |
|
scale_in_cooldown |
Integer |
Silence time (minimum interval) between two bandwidth decreases, in seconds. This parameter is reserved. Default value: 300 Value range: 0–86,400 |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
|
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
|
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
|
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
|
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
|
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
|
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
|
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
|
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Parameter description: Error message. Value range: N/A. |
|
error_code |
String |
Parameter description: Error code. Value range: For details, see Error Codes. |
|
error_ext_msg |
String |
Parameter description: Extended error information. This parameter is not used currently and is set to null. Value range: N/A. |
Example Requests
GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth
Example Responses
Status code: 200
Response body for querying a bandwidth auto scaling policy.
{
"window_size" : 5,
"bandwidth_usage_upper_threshold" : 70,
"scale_out_cooldown" : 0,
"scale_in_enabled" : true,
"bandwidth_usage_lower_threshold" : 30,
"scale_in_cooldown" : 300
}
Status code: 400
Invalid request.
{
"error_code" : "DCS.4062",
"error_msg" : "Invalid instance_id parameter in the request."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response body for querying a bandwidth auto scaling policy. |
|
400 |
Invalid request. |
|
401 |
Invalid authentication information. |
|
403 |
Access denied. |
|
404 |
The requested resource could not be found. |
|
500 |
Internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot