Querying Maintenance Time Window (V2)
Function
The API is used to query the start time and end time of the maintenance time window.
Constraints
None
URI
GET /v2/instances/maintain-windows
Request
None
Response
If the status code is 200, the following parameters are returned:
| Parameter | Type | Description |
|---|---|---|
| maintain_windows | Array of MaintainWindows objects | List of supported maintenance time windows. |
| Parameter | Type | Description |
|---|---|---|
| default | Boolean | An indicator of whether the maintenance time window is set to the default time segment. |
| end | String | End time of the maintenance time window. |
| begin | String | Start time of the maintenance time window. |
| seq | Integer | Sequence number of the maintenance time window. |
Example Request
GET https://{dcs_endpoint}/v2/instances/maintain-windows Example Response
If the status code is 200, the maintenance time window is successfully queried.
{
"maintain_windows" : [ {
"default" : false,
"end" : "02",
"begin" : "22",
"seq" : 1
}, {
"default" : true,
"end" : "06",
"begin" : "02",
"seq" : 2
}, {
"default" : false,
"end" : "10",
"begin" : "06",
"seq" : 3
}, {
"default" : false,
"end" : "14",
"begin" : "10",
"seq" : 4
}, {
"default" : false,
"end" : "18",
"begin" : "14",
"seq" : 5
}, {
"default" : false,
"end" : "22",
"begin" : "18",
"seq" : 6
} ]
}
Status Code
| Status Code | Description |
|---|---|
| 200 | Maintenance time window queried successfully. |
| 500 | Internal service error. |
Error Code
For details, see Error Codes.
Last Article: Querying AZ Information (V2)
Next Article: Querying the Quota of a Tenant (V2)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.