v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1328122178.2 KB
projects

Creates a new Backup in a given project and location.

post/v1/{+parent}/backups

Path parameters

parentstring required

Required. Value for parent.

Query parameters

backupIdstring

Required. ID of the requesting object.

requestIdstring

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

validateOnlyboolean

Optional. If set, the backend validates the request, but doesn't actually execute it.

Request body

state'STATE_UNSPECIFIED' | 'READY' | 'CREATING' | 'FAILED' | 'DELETING'

Output only. The current state of the backup.

displayNamestring

User-settable and human-readable display name for the Backup.

clusterNamestring

Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).

sizeBytesstring int64

Output only. The size of the backup in bytes.

databaseVersion'DATABASE_VERSION_UNSPECIFIED' | 'POSTGRES_13' | 'POSTGRES_14' | 'POSTGRES_15' | 'POSTGRES_16' | 'POSTGRES_17' | 'POSTGRES_18'

Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.

uidstring

Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

clusterUidstring

Output only. The system-generated UID of the cluster which was used to create this resource.

expiryTimestring google-datetime

Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time.

satisfiesPzsboolean

Output only. Reserved for future use.

createCompletionTimestring google-datetime

Output only. Timestamp when the resource finished being created.

etagstring

For Resource freshness validation (https://google.aip.dev/154)

tagsobject

Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"

descriptionstring

User-provided description of the backup.

reconcilingboolean

Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.

deleteTimestring google-datetime

Output only. Delete time stamp

annotationsobject

Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128

namestring

Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}

updateTimestring google-datetime

Output only. Update time stamp Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.

createTimestring google-datetime

Output only. Create time stamp

labelsobject

Labels as key value pairs

type'TYPE_UNSPECIFIED' | 'ON_DEMAND' | 'AUTOMATED' | 'CONTINUOUS'

The backup type, which suggests the trigger for the backup.

Response

Successful response