Compute Cloud API, REST: Maintenance.List
Lists maintenances by conditions, specified in request.
HTTP request
GET https://compute.api.yandexcloud.kz/compute/v1/maintenances
Query parameters
ListMaintenancesRequest allows listing maintenances by cloud ID, folder ID, resource type or resource ID.
|
Field |
Description |
|
cloudId |
string Cloud ID for the resources. Includes only one of the fields Container specifies the resources for which to list maintenances. (Required) |
|
folderId |
string Folder ID for the resources. Includes only one of the fields Container specifies the resources for which to list maintenances. (Required) |
|
resourceId |
string Resource ID of the target resource. Includes only one of the fields Container specifies the resources for which to list maintenances. (Required) |
|
pageSize |
string (int64) The maximum number of maintenances to return per response. |
|
pageToken |
string Token to retrieve the next page of results. Omitted on the first request. |
|
orderBy |
string By which field the listing should be ordered and in which direction, |
|
filter |
string Filter list by various fields. |
Response
HTTP Code: 200 - OK
{
"maintenances": [
{
"id": "string",
"resourcePath": [
{
"id": "string",
"type": "string"
}
],
"description": "string",
"details": [
{
"key": "string",
"value": "string"
}
],
"status": "string",
"createdAt": "string",
"startScheduledAt": "string",
"completionScheduledAt": "string",
"maxStartScheduledAt": "string",
"startedAt": "string",
"succeededAt": "string",
"cancelledAt": "string",
"userControllable": "boolean"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
maintenances[] |
List of maintenances. |
|
nextPageToken |
string Token to retrieve the next page of results. |
Maintenance
|
Field |
Description |
|
id |
string ID of the maintenance. |
|
resourcePath[] |
Full path to the resource affected by maintenance, |
|
description |
string Describes action to be performed. |
|
details[] |
Service-specific details. |
|
status |
enum (Status) Status of the maintenance.
|
|
createdAt |
string (date-time) The creation time of the maintenance. String in RFC3339 To work with values in this field, use the APIs described in the |
|
startScheduledAt |
string (date-time) The time when the maintenance was scheduled to start. String in RFC3339 To work with values in this field, use the APIs described in the |
|
completionScheduledAt |
string (date-time) The time when the maintenance is estimated to complete. Optional. String in RFC3339 To work with values in this field, use the APIs described in the |
|
maxStartScheduledAt |
string (date-time) Latest time the maintenance can be postponed to. String in RFC3339 To work with values in this field, use the APIs described in the |
|
startedAt |
string (date-time) The time time when the maintenance has actually started. String in RFC3339 To work with values in this field, use the APIs described in the |
|
succeededAt |
string (date-time) The time time when the maintenance has actually completed successfully. String in RFC3339 To work with values in this field, use the APIs described in the |
|
cancelledAt |
string (date-time) The time time when the maintenance has actually been cancelled. String in RFC3339 To work with values in this field, use the APIs described in the |
|
userControllable |
boolean Indicates whether the user can control (reschedule) the maintenance. |
Resource
|
Field |
Description |
|
id |
string ID of the resource |
|
type |
string The type of the resource, e.g. resource-manager.cloud, resource-manager.folder, compute.instance, etc. |
Detail
|
Field |
Description |
|
key |
string Unique key (service-specific). |
|
value |
string Description (service-specific). |