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.spanner/v1.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 metadata on a pending or completed 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,
               instance_id: Optional[str] = None,
               project: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetBackupResult
def get_backup_output(backup_id: Optional[pulumi.Input[str]] = None,
               instance_id: 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:spanner/v1:getBackup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BackupId string
- InstanceId string
- Project string
- BackupId string
- InstanceId string
- Project string
- backupId String
- instanceId String
- project String
- backupId string
- instanceId string
- project string
- backup_id str
- instance_id str
- project str
- backupId String
- instanceId String
- project String
getBackup Result
The following output properties are available:
- CreateTime string
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- Database string
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- DatabaseDialect string
- The database dialect information for the backup.
- EncryptionInfo Pulumi.Google Native. Spanner. V1. Outputs. Encryption Info Response 
- The encryption information for the backup.
- ExpireTime string
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- MaxExpire stringTime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- Name string
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- ReferencingBackups List<string>
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- ReferencingDatabases List<string>
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- SizeBytes string
- Size of the backup in bytes.
- State string
- The current state of the backup.
- VersionTime string
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
- CreateTime string
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- Database string
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- DatabaseDialect string
- The database dialect information for the backup.
- EncryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- ExpireTime string
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- MaxExpire stringTime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- Name string
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- ReferencingBackups []string
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- ReferencingDatabases []string
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- SizeBytes string
- Size of the backup in bytes.
- State string
- The current state of the backup.
- VersionTime string
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
- createTime String
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- database String
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- databaseDialect String
- The database dialect information for the backup.
- encryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- expireTime String
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- maxExpire StringTime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- name String
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- referencingBackups List<String>
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- referencingDatabases List<String>
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- sizeBytes String
- Size of the backup in bytes.
- state String
- The current state of the backup.
- versionTime String
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
- createTime string
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- database string
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- databaseDialect string
- The database dialect information for the backup.
- encryptionInfo EncryptionInfo Response 
- The encryption information for the backup.
- expireTime string
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- maxExpire stringTime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- name string
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- referencingBackups string[]
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- referencingDatabases string[]
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- sizeBytes string
- Size of the backup in bytes.
- state string
- The current state of the backup.
- versionTime string
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
- create_time str
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- database str
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- database_dialect str
- The database dialect information for the backup.
- encryption_info EncryptionInfo Response 
- The encryption information for the backup.
- expire_time str
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- max_expire_ strtime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- name str
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- referencing_backups Sequence[str]
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- referencing_databases Sequence[str]
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- size_bytes str
- Size of the backup in bytes.
- state str
- The current state of the backup.
- version_time str
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
- createTime String
- The time the CreateBackup request is received. If the request does not specify version_time, theversion_timeof the backup will be equivalent to thecreate_time.
- database String
- Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form projects//instances//databases/.
- databaseDialect String
- The database dialect information for the backup.
- encryptionInfo Property Map
- The encryption information for the backup.
- expireTime String
- Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the expire_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
- maxExpire StringTime 
- The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than Backup.max_expire_time.
- name String
- Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form projects//instances//backups/a-z*[a-z0-9]The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the formprojects//instances/.
- referencingBackups List<String>
- The names of the destination backups being created by copying this source backup. The backup names are of the form projects//instances//backups/. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
- referencingDatabases List<String>
- The names of the restored databases that reference the backup. The database names are of the form projects//instances//databases/. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters theREADYstate, the reference to the backup is removed.
- sizeBytes String
- Size of the backup in bytes.
- state String
- The current state of the backup.
- versionTime String
- The backup will contain an externally consistent copy of the database at the timestamp specified by version_time. Ifversion_timeis not specified, the system will setversion_timeto thecreate_timeof the backup.
Supporting Types
EncryptionInfoResponse  
- EncryptionStatus Pulumi.Google Native. Spanner. V1. Inputs. Status Response 
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- EncryptionType string
- The type of encryption.
- KmsKey stringVersion 
- A Cloud KMS key version that is being used to protect the database or backup.
- EncryptionStatus StatusResponse 
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- EncryptionType string
- The type of encryption.
- KmsKey stringVersion 
- A Cloud KMS key version that is being used to protect the database or backup.
- encryptionStatus StatusResponse 
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- encryptionType String
- The type of encryption.
- kmsKey StringVersion 
- A Cloud KMS key version that is being used to protect the database or backup.
- encryptionStatus StatusResponse 
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- encryptionType string
- The type of encryption.
- kmsKey stringVersion 
- A Cloud KMS key version that is being used to protect the database or backup.
- encryption_status StatusResponse 
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- encryption_type str
- The type of encryption.
- kms_key_ strversion 
- A Cloud KMS key version that is being used to protect the database or backup.
- encryptionStatus Property Map
- If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
- encryptionType String
- The type of encryption.
- kmsKey StringVersion 
- A Cloud KMS key version that is being used to protect the database or backup.
StatusResponse 
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details
List<ImmutableDictionary<string, string>> 
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details []map[string]string
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Integer
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String,String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code number
- The status code, which should be an enum value of google.rpc.Code.
- details {[key: string]: string}[]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code int
- The status code, which should be an enum value of google.rpc.Code.
- details Sequence[Mapping[str, str]]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message str
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Number
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
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