Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.alloydb/v1alpha.getBackup
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details of a single Backup.
Using getBackup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBackup(args: GetBackupArgs, opts?: InvokeOptions): Promise<GetBackupResult>
function getBackupOutput(args: GetBackupOutputArgs, opts?: InvokeOptions): Output<GetBackupResult>
def get_backup(backup_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupResult
def get_backup_output(backup_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupResult]
func LookupBackup(ctx *Context, args *LookupBackupArgs, opts ...InvokeOption) (*LookupBackupResult, error)
func LookupBackupOutput(ctx *Context, args *LookupBackupOutputArgs, opts ...InvokeOption) LookupBackupResultOutput
> Note: This function is named LookupBackup
in the Go SDK.
public static class GetBackup
{
public static Task<GetBackupResult> InvokeAsync(GetBackupArgs args, InvokeOptions? opts = null)
public static Output<GetBackupResult> Invoke(GetBackupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupResult> getBackup(GetBackupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:alloydb/v1alpha:getBackup
arguments:
# arguments dictionary
The following arguments are supported:
getBackup Result
The following output properties are available:
- Annotations Dictionary<string, string>
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- Cluster
Uid string - The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Create time stamp
- Database
Version string - 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.
- Delete
Time string - Delete time stamp
- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Encryption
Config Pulumi.Google Native. Alloy DB. V1Alpha. Outputs. Encryption Config Response - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- Encryption
Info Pulumi.Google Native. Alloy DB. V1Alpha. Outputs. Encryption Info Response - The encryption information for the backup.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantity Pulumi.Google Native. Alloy DB. V1Alpha. Outputs. Quantity Based Expiry Response - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- Expiry
Time string - 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.
- Labels Dictionary<string, string>
- Labels as key value pairs
- Name string
- 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} - Reconciling bool
- 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.
- Satisfies
Pzs bool - Reserved for future use.
- Size
Bytes string - The size of the backup in bytes.
- State string
- The current state of the backup.
- Type string
- The backup type, which suggests the trigger for the backup.
- Uid string
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Update time stamp
- Annotations map[string]string
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- Cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- Cluster
Uid string - The system-generated UID of the cluster which was used to create this resource.
- Create
Time string - Create time stamp
- Database
Version string - 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.
- Delete
Time string - Delete time stamp
- Description string
- User-provided description of the backup.
- Display
Name string - User-settable and human-readable display name for the Backup.
- Encryption
Config EncryptionConfig Response - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- Encryption
Info EncryptionInfo Response - The encryption information for the backup.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- Expiry
Quantity QuantityBased Expiry Response - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- Expiry
Time string - 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.
- Labels map[string]string
- Labels as key value pairs
- Name string
- 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} - Reconciling bool
- 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.
- Satisfies
Pzs bool - Reserved for future use.
- Size
Bytes string - The size of the backup in bytes.
- State string
- The current state of the backup.
- Type string
- The backup type, which suggests the trigger for the backup.
- Uid string
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- Update
Time string - Update time stamp
- annotations Map<String,String>
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- cluster
Uid String - The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Create time stamp
- database
Version String - 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.
- delete
Time String - Delete time stamp
- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- encryption
Config EncryptionConfig Response - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- encryption
Info EncryptionInfo Response - The encryption information for the backup.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantity QuantityBased Expiry Response - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- expiry
Time String - 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.
- labels Map<String,String>
- Labels as key value pairs
- name String
- 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} - reconciling Boolean
- 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.
- satisfies
Pzs Boolean - Reserved for future use.
- size
Bytes String - The size of the backup in bytes.
- state String
- The current state of the backup.
- type String
- The backup type, which suggests the trigger for the backup.
- uid String
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Update time stamp
- annotations {[key: string]: string}
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- cluster
Name string - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- cluster
Uid string - The system-generated UID of the cluster which was used to create this resource.
- create
Time string - Create time stamp
- database
Version string - 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.
- delete
Time string - Delete time stamp
- description string
- User-provided description of the backup.
- display
Name string - User-settable and human-readable display name for the Backup.
- encryption
Config EncryptionConfig Response - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- encryption
Info EncryptionInfo Response - The encryption information for the backup.
- etag string
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantity QuantityBased Expiry Response - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- expiry
Time string - 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.
- labels {[key: string]: string}
- Labels as key value pairs
- name string
- 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} - reconciling boolean
- 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.
- satisfies
Pzs boolean - Reserved for future use.
- size
Bytes string - The size of the backup in bytes.
- state string
- The current state of the backup.
- type string
- The backup type, which suggests the trigger for the backup.
- uid string
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time string - Update time stamp
- annotations Mapping[str, str]
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- cluster_
name str - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- cluster_
uid str - The system-generated UID of the cluster which was used to create this resource.
- create_
time str - Create time stamp
- database_
version str - 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.
- delete_
time str - Delete time stamp
- description str
- User-provided description of the backup.
- display_
name str - User-settable and human-readable display name for the Backup.
- encryption_
config EncryptionConfig Response - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- encryption_
info EncryptionInfo Response - The encryption information for the backup.
- etag str
- For Resource freshness validation (https://google.aip.dev/154)
- expiry_
quantity QuantityBased Expiry Response - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- expiry_
time str - 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.
- labels Mapping[str, str]
- Labels as key value pairs
- name str
- 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} - reconciling bool
- 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.
- satisfies_
pzs bool - Reserved for future use.
- size_
bytes str - The size of the backup in bytes.
- state str
- The current state of the backup.
- type str
- The backup type, which suggests the trigger for the backup.
- uid str
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update_
time str - Update time stamp
- annotations Map<String>
- Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- cluster
Name String - The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- cluster
Uid String - The system-generated UID of the cluster which was used to create this resource.
- create
Time String - Create time stamp
- database
Version String - 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.
- delete
Time String - Delete time stamp
- description String
- User-provided description of the backup.
- display
Name String - User-settable and human-readable display name for the Backup.
- encryption
Config Property Map - Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- encryption
Info Property Map - The encryption information for the backup.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiry
Quantity Property Map - The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.
- expiry
Time String - 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.
- labels Map<String>
- Labels as key value pairs
- name String
- 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} - reconciling Boolean
- 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.
- satisfies
Pzs Boolean - Reserved for future use.
- size
Bytes String - The size of the backup in bytes.
- state String
- The current state of the backup.
- type String
- The backup type, which suggests the trigger for the backup.
- uid String
- The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.
- update
Time String - Update time stamp
Supporting Types
EncryptionConfigResponse
- Kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
- Kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
- kms
Key StringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
- kms
Key stringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
- kms_
key_ strname - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
- kms
Key StringName - The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
EncryptionInfoResponse
- Encryption
Type string - Type of encryption.
- Kms
Key List<string>Versions - Cloud KMS key versions that are being used to protect the database or the backup.
- Encryption
Type string - Type of encryption.
- Kms
Key []stringVersions - Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type String - Type of encryption.
- kms
Key List<String>Versions - Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type string - Type of encryption.
- kms
Key string[]Versions - Cloud KMS key versions that are being used to protect the database or the backup.
- encryption_
type str - Type of encryption.
- kms_
key_ Sequence[str]versions - Cloud KMS key versions that are being used to protect the database or the backup.
- encryption
Type String - Type of encryption.
- kms
Key List<String>Versions - Cloud KMS key versions that are being used to protect the database or the backup.
QuantityBasedExpiryResponse
- Retention
Count int - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- Total
Retention intCount - The length of the quantity-based queue, specified by the backup's retention policy.
- Retention
Count int - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- Total
Retention intCount - The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count Integer - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- total
Retention IntegerCount - The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count number - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- total
Retention numberCount - The length of the quantity-based queue, specified by the backup's retention policy.
- retention_
count int - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- total_
retention_ intcount - The length of the quantity-based queue, specified by the backup's retention policy.
- retention
Count Number - The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first).
- total
Retention NumberCount - The length of the quantity-based queue, specified by the backup's retention policy.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi