public/portworx/pds/backupconfig/apiv1/backupconfig.proto (version not set)
Download OpenAPI specification:Download
ListBackupConfigs API lists all the backup configuration for a data service deployment.
query Parameters
tenantId | string Tenant ID for which the backup configurations will be listed. |
projectId | string Project ID for which the backup configurations will be listed. |
targetClusterId | string Cluster ID for which the backup configurations will be listed. |
namespaceId | string Namespace ID for which the backup configurations will be listed. |
dataServiceDeploymentId | string Data service Deployment ID for which the backup configurations will be listed. |
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. |
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.
|
suspended | string Default: "BACKUP_CONFIG_SUSPENDED_UNSPECIFIED" Enum: "BACKUP_CONFIG_SUSPENDED_UNSPECIFIED" "TRUE" "FALSE" Filter backup configs based on suspended flag.
|
Responses
Response samples
- 200
- default
{- "backupConfigs": [
- {
- "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": {
- "references": {
- "dataServiceDeploymentId": "string",
- "backupLocationId": "string",
- "dataServiceId": "string"
}, - "backupPolicy": {
- "id": "string",
- "resourceVersion": "string"
}, - "suspend": true,
- "backupType": "BACKUP_TYPE_UNSPECIFIED",
- "backupLevel": "BACKUP_LEVEL_UNSPECIFIED",
- "reclaimPolicy": "RECLAIM_POLICY_TYPE_UNSPECIFIED"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string",
- "isBackupPolicySynchronized": true,
- "dataServiceDeploymentMetaData": {
- "name": "string",
- "customResourceName": "string",
- "targetClusterName": "string",
- "namespaceName": "string",
- "tlsEnabled": true
}, - "errorCode": "string",
- "errorMessage": "string"
}
}
], - "pagination": {
- "totalRecords": "string",
- "currentPage": "string",
- "pageSize": "string",
- "totalPages": "string",
- "nextPage": "string",
- "prevPage": "string"
}
}
GetBackupConfig API returns the the backup configuration resource.
path Parameters
id required | string ID of the backup configuration. |
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": {
- "references": {
- "dataServiceDeploymentId": "string",
- "backupLocationId": "string",
- "dataServiceId": "string"
}, - "backupPolicy": {
- "id": "string",
- "resourceVersion": "string"
}, - "suspend": true,
- "backupType": "BACKUP_TYPE_UNSPECIFIED",
- "backupLevel": "BACKUP_LEVEL_UNSPECIFIED",
- "reclaimPolicy": "RECLAIM_POLICY_TYPE_UNSPECIFIED"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string",
- "isBackupPolicySynchronized": true,
- "dataServiceDeploymentMetaData": {
- "name": "string",
- "customResourceName": "string",
- "targetClusterName": "string",
- "namespaceName": "string",
- "tlsEnabled": true
}, - "errorCode": "string",
- "errorMessage": "string"
}
}
UpdateBackupConfig API updates the backup configuration of the backup.
path Parameters
id required | string ID of the backup configuration. |
Request Body schema: application/jsonrequired
suspend | string (v1BackupConfigSuspended) Default: "BACKUP_CONFIG_SUSPENDED_UNSPECIFIED" Enum: "BACKUP_CONFIG_SUSPENDED_UNSPECIFIED" "TRUE" "FALSE" BackupConfigSuspended to accept value for suspended flag.
|
object Labels to apply to the Backup Config object. | |
object Annotations for the Backup Config object. |
Responses
Request samples
- Payload
{- "suspend": "BACKUP_CONFIG_SUSPENDED_UNSPECIFIED",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "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": {
- "references": {
- "dataServiceDeploymentId": "string",
- "backupLocationId": "string",
- "dataServiceId": "string"
}, - "backupPolicy": {
- "id": "string",
- "resourceVersion": "string"
}, - "suspend": true,
- "backupType": "BACKUP_TYPE_UNSPECIFIED",
- "backupLevel": "BACKUP_LEVEL_UNSPECIFIED",
- "reclaimPolicy": "RECLAIM_POLICY_TYPE_UNSPECIFIED"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string",
- "isBackupPolicySynchronized": true,
- "dataServiceDeploymentMetaData": {
- "name": "string",
- "customResourceName": "string",
- "targetClusterName": "string",
- "namespaceName": "string",
- "tlsEnabled": true
}, - "errorCode": "string",
- "errorMessage": "string"
}
}
CreateBackupConfig API creates the backup configuration of the backup.
path Parameters
projectId required | string The parent project id under which backup configuration will be created. |
Request Body schema: application/jsonrequired
dataServiceDeploymentId required | string Data service Deployment id associated with the backup configuration. |
required | object (v1BackupConfig) Resource representing the backup configuration for a backup. |
Responses
Request samples
- Payload
{- "dataServiceDeploymentId": "string",
- "backupConfig": {
- "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": {
- "references": {
- "backupLocationId": "string"
}, - "backupPolicy": {
- "id": "string",
- "resourceVersion": "string"
}, - "suspend": true,
- "backupType": "BACKUP_TYPE_UNSPECIFIED",
- "backupLevel": "BACKUP_LEVEL_UNSPECIFIED",
- "reclaimPolicy": "RECLAIM_POLICY_TYPE_UNSPECIFIED"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string",
- "isBackupPolicySynchronized": true,
- "dataServiceDeploymentMetaData": {
- "name": "string",
- "targetClusterName": "string",
- "namespaceName": "string",
- "tlsEnabled": true
}, - "errorCode": "string",
- "errorMessage": "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": {
- "references": {
- "dataServiceDeploymentId": "string",
- "backupLocationId": "string",
- "dataServiceId": "string"
}, - "backupPolicy": {
- "id": "string",
- "resourceVersion": "string"
}, - "suspend": true,
- "backupType": "BACKUP_TYPE_UNSPECIFIED",
- "backupLevel": "BACKUP_LEVEL_UNSPECIFIED",
- "reclaimPolicy": "RECLAIM_POLICY_TYPE_UNSPECIFIED"
}, - "status": {
- "phase": "PHASE_UNSPECIFIED",
- "customResourceName": "string",
- "isBackupPolicySynchronized": true,
- "dataServiceDeploymentMetaData": {
- "name": "string",
- "customResourceName": "string",
- "targetClusterName": "string",
- "namespaceName": "string",
- "tlsEnabled": true
}, - "errorCode": "string",
- "errorMessage": "string"
}
}