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/v1beta.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)
public static Output<GetBackupResult> getBackup(GetBackupArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:alloydb/v1beta:getBackup
  arguments:
    # arguments dictionaryThe 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
- ClusterName string
- The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- ClusterUid string
- The system-generated UID of the cluster which was used to create this resource.
- CreateTime string
- Create time stamp
- DatabaseVersion 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.
- DeleteTime string
- Delete time stamp
- Description string
- User-provided description of the backup.
- DisplayName string
- User-settable and human-readable display name for the Backup.
- EncryptionConfig Pulumi.Google Native. Alloy DB. V1Beta. 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.
- EncryptionInfo Pulumi.Google Native. Alloy DB. V1Beta. Outputs. Encryption Info Response 
- The encryption information for the backup.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- ExpiryQuantity Pulumi.Google Native. Alloy DB. V1Beta. 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.
- ExpiryTime 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.
- SizeBytes 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.
- UpdateTime 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
- ClusterName string
- The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- ClusterUid string
- The system-generated UID of the cluster which was used to create this resource.
- CreateTime string
- Create time stamp
- DatabaseVersion 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.
- DeleteTime string
- Delete time stamp
- Description string
- User-provided description of the backup.
- DisplayName string
- User-settable and human-readable display name for the Backup.
- EncryptionConfig 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.
- EncryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- Etag string
- For Resource freshness validation (https://google.aip.dev/154)
- ExpiryQuantity 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.
- ExpiryTime 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.
- SizeBytes 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.
- UpdateTime 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
- clusterName String
- The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- clusterUid String
- The system-generated UID of the cluster which was used to create this resource.
- createTime String
- Create time stamp
- databaseVersion 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.
- deleteTime String
- Delete time stamp
- description String
- User-provided description of the backup.
- displayName String
- User-settable and human-readable display name for the Backup.
- encryptionConfig 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.
- encryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiryQuantity 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.
- expiryTime 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.
- sizeBytes 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.
- updateTime 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
- clusterName string
- The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- clusterUid string
- The system-generated UID of the cluster which was used to create this resource.
- createTime string
- Create time stamp
- databaseVersion 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.
- deleteTime string
- Delete time stamp
- description string
- User-provided description of the backup.
- displayName string
- User-settable and human-readable display name for the Backup.
- encryptionConfig 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.
- encryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- etag string
- For Resource freshness validation (https://google.aip.dev/154)
- expiryQuantity 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.
- expiryTime 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.
- sizeBytes 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.
- updateTime 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.
- 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
- clusterName String
- The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).
- clusterUid String
- The system-generated UID of the cluster which was used to create this resource.
- createTime String
- Create time stamp
- databaseVersion 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.
- deleteTime String
- Delete time stamp
- description String
- User-provided description of the backup.
- displayName String
- User-settable and human-readable display name for the Backup.
- encryptionConfig 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.
- encryptionInfo Property Map
- The encryption information for the backup.
- etag String
- For Resource freshness validation (https://google.aip.dev/154)
- expiryQuantity 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.
- expiryTime 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.
- sizeBytes 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.
- updateTime String
- Update time stamp
Supporting Types
EncryptionConfigResponse  
- KmsKey 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]
- KmsKey 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]
- kmsKey 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]
- kmsKey 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]
- kmsKey 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  
- EncryptionType string
- Type of encryption.
- KmsKey List<string>Versions 
- Cloud KMS key versions that are being used to protect the database or the backup.
- EncryptionType string
- Type of encryption.
- KmsKey []stringVersions 
- Cloud KMS key versions that are being used to protect the database or the backup.
- encryptionType String
- Type of encryption.
- kmsKey List<String>Versions 
- Cloud KMS key versions that are being used to protect the database or the backup.
- encryptionType string
- Type of encryption.
- kmsKey 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.
- encryptionType String
- Type of encryption.
- kmsKey List<String>Versions 
- Cloud KMS key versions that are being used to protect the database or the backup.
QuantityBasedExpiryResponse   
- RetentionCount 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).
- TotalRetention intCount 
- The length of the quantity-based queue, specified by the backup's retention policy.
- RetentionCount 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).
- TotalRetention intCount 
- The length of the quantity-based queue, specified by the backup's retention policy.
- retentionCount 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).
- totalRetention IntegerCount 
- The length of the quantity-based queue, specified by the backup's retention policy.
- retentionCount 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).
- totalRetention 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.
- retentionCount 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).
- totalRetention 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