public/portworx/pds/restore/apiv1/restore.proto (version not set)
Download OpenAPI specification:Download
CreateRestore API creates the Restore resource.
path Parameters
namespaceId required | string UID of the namespace where restore will be created. |
Request Body schema: application/jsonrequired
projectId required | string UID of the project associated with the restore. |
required | object (v1Restore) Restore represents a data service restore. |
Responses
Request samples
- Payload
{- "projectId": "string",
- "restore": {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}
}, - "config": {
- "sourceReferences": {
- "backupId": "string"
}, - "destinationReferences": { },
- "podSchedulingConfig": {
- "tolerations": [
- {
- "key": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "value": "string",
- "effect": "EFFECT_UNSPECIFIED"
}
]
}
}, - "status": {
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "errorCode": "ERROR_CODE_UNSPECIFIED",
- "errorMessage": "string",
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string"
}
}
}
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "sourceReferences": {
- "dataServiceDeploymentId": "string",
- "backupId": "string",
- "backupLocationId": "string",
- "cloudsnapId": "string"
}, - "destinationReferences": {
- "targetClusterId": "string",
- "dataServiceDeploymentId": "string",
- "projectId": "string"
}, - "customResourceName": "string",
- "podSchedulingConfig": {
- "tolerations": [
- {
- "key": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "value": "string",
- "effect": "EFFECT_UNSPECIFIED"
}
]
}
}, - "status": {
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "errorCode": "ERROR_CODE_UNSPECIFIED",
- "errorMessage": "string",
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string"
}
}
ListRestore API lists the Restore resources.
query Parameters
tenantId | string Tenant ID for which the restore will be listed. |
projectId | string Project ID for which the restore will be listed. |
dataServiceDeploymentId | string Deployment ID for which the restore will be listed. |
backupId | string Backup ID for which the restore will be listed. |
sort.sortBy | string Default: "FIELD_UNSPECIFIED" Enum: "FIELD_UNSPECIFIED" "NAME" "CREATED_AT" "UPDATED_AT" "PHASE" Name of the attribute to sort results by.
|
sort.sortOrder | string Default: "VALUE_UNSPECIFIED" Enum: "VALUE_UNSPECIFIED" "ASC" "DESC" Order of sorting to be applied on requested list. If sort_by having some value and sort_order is not provided, by default ascending order will be used to sort the list.
|
pagination.pageNumber | string <int64> Page number is the page number to return based on the size. |
pagination.pageSize | string <int64> Page size is the maximum number of records to include per page. |
Responses
Response samples
- 200
- default
{- "restores": [
- {
- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "sourceReferences": {
- "dataServiceDeploymentId": "string",
- "backupId": "string",
- "backupLocationId": "string",
- "cloudsnapId": "string"
}, - "destinationReferences": {
- "targetClusterId": "string",
- "dataServiceDeploymentId": "string",
- "projectId": "string"
}, - "customResourceName": "string",
- "podSchedulingConfig": {
- "tolerations": [
- {
- "key": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "value": "string",
- "effect": "EFFECT_UNSPECIFIED"
}
]
}
}, - "status": {
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "errorCode": "ERROR_CODE_UNSPECIFIED",
- "errorMessage": "string",
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string"
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
GetRestore API returns the Restore resource.
path Parameters
id required | string UID of the restore. |
Responses
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "sourceReferences": {
- "dataServiceDeploymentId": "string",
- "backupId": "string",
- "backupLocationId": "string",
- "cloudsnapId": "string"
}, - "destinationReferences": {
- "targetClusterId": "string",
- "dataServiceDeploymentId": "string",
- "projectId": "string"
}, - "customResourceName": "string",
- "podSchedulingConfig": {
- "tolerations": [
- {
- "key": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "value": "string",
- "effect": "EFFECT_UNSPECIFIED"
}
]
}
}, - "status": {
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "errorCode": "ERROR_CODE_UNSPECIFIED",
- "errorMessage": "string",
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string"
}
}
RecreateRestore API recreates a already failed restore.
path Parameters
id required | string UID of the existing restore. |
Request Body schema: application/jsonrequired
name required | string Name of the restore. |
projectId required | string UID of the project associated with the restore. |
namespaceId required | string UID of namespace where restore will be created. |
Responses
Request samples
- Payload
{- "name": "string",
- "projectId": "string",
- "namespaceId": "string"
}
Response samples
- 200
- default
{- "meta": {
- "uid": "string",
- "name": "string",
- "description": "string",
- "resourceVersion": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "parentReference": {
- "type": "string",
- "version": "string",
- "uid": "string"
}, - "resourceNames": {
- "property1": "string",
- "property2": "string"
}
}, - "config": {
- "sourceReferences": {
- "dataServiceDeploymentId": "string",
- "backupId": "string",
- "backupLocationId": "string",
- "cloudsnapId": "string"
}, - "destinationReferences": {
- "targetClusterId": "string",
- "dataServiceDeploymentId": "string",
- "projectId": "string"
}, - "customResourceName": "string",
- "podSchedulingConfig": {
- "tolerations": [
- {
- "key": "string",
- "operator": "OPERATOR_UNSPECIFIED",
- "value": "string",
- "effect": "EFFECT_UNSPECIFIED"
}
]
}
}, - "status": {
- "startedAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "errorCode": "ERROR_CODE_UNSPECIFIED",
- "errorMessage": "string",
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string"
}
}