Cloud Backup API, gRPC: ResourceService.List
List resources: Compute Cloud instances.
gRPC request
rpc List (ListResourcesRequest) returns (ListResourcesResponse)
ListResourcesRequest
{
"folderId": "string",
"pageSize": "int64",
"pageToken": "string",
"type": "ResourceType"
}
Field |
Description |
folderId |
string Required field. Folder ID. |
pageSize |
int64 Number of results per page. |
pageToken |
string Token for the results page. |
type |
enum ResourceType Type of resource. Could be compute VM or baremetal server.
|
ListResourcesResponse
{
"resources": [
{
"computeInstanceId": "string",
"createdAt": "google.protobuf.Timestamp",
"updatedAt": "google.protobuf.Timestamp",
"online": "bool",
"enabled": "bool",
"status": "Status",
"statusDetails": "string",
"statusProgress": "int64",
"lastBackupTime": "google.protobuf.Timestamp",
"nextBackupTime": "google.protobuf.Timestamp",
"resourceId": "string",
"isActive": "bool",
"initStatus": "InitStatus",
"metadata": "string",
"type": "ResourceType"
}
],
"nextPageToken": "string"
}
Field |
Description |
resources[] |
Set of resource parameters. |
nextPageToken |
string Token for the next results page. |
Resource
Field |
Description |
computeInstanceId |
string Compute Cloud instance ID. |
createdAt |
|
updatedAt |
|
online |
bool If this field is true, it means that instance is online. |
enabled |
bool If this field is true, it means that backup is enabled to instance. |
status |
enum Status
|
statusDetails |
string If status value is one of |
statusProgress |
int64 In case status is one of |
lastBackupTime |
|
nextBackupTime |
|
resourceId |
string Resource ID is used to identify Compute Cloud instance in backup service. |
isActive |
bool Status |
initStatus |
enum InitStatus Status of resource initialization in cloud backup service.
|
metadata |
string Metadata to provide details about instance registration process |
type |
enum ResourceType Type of resource. Could be compute VM or baremetal server.
|