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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:spanner/v1:getBackup
arguments:
# arguments dictionary
The following arguments are supported:
- Backup
Id string - Instance
Id string - Project string
- Backup
Id string - Instance
Id string - Project string
- backup
Id String - instance
Id String - project String
- backup
Id string - instance
Id string - project string
- backup_
id str - instance_
id str - project str
- backup
Id String - instance
Id String - project String
getBackup Result
The following output properties are available:
- Create
Time string - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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/
. - Database
Dialect string - The database dialect information for the backup.
- Encryption
Info Pulumi.Google Native. Spanner. V1. Outputs. Encryption Info Response - The encryption information for the backup.
- Expire
Time 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_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. - Max
Expire 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/
. - Referencing
Backups 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. - Referencing
Databases 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 theREADY
state, the reference to the backup is removed. - Size
Bytes string - Size of the backup in bytes.
- State string
- The current state of the backup.
- Version
Time string - The backup will contain an externally consistent copy of the database at the timestamp specified by
version_time
. Ifversion_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
- Create
Time string - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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/
. - Database
Dialect string - The database dialect information for the backup.
- Encryption
Info EncryptionInfo Response - The encryption information for the backup.
- Expire
Time 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_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. - Max
Expire 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/
. - Referencing
Backups []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. - Referencing
Databases []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 theREADY
state, the reference to the backup is removed. - Size
Bytes string - Size of the backup in bytes.
- State string
- The current state of the backup.
- Version
Time string - The backup will contain an externally consistent copy of the database at the timestamp specified by
version_time
. Ifversion_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
- create
Time String - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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/
. - database
Dialect String - The database dialect information for the backup.
- encryption
Info EncryptionInfo Response - The encryption information for the backup.
- expire
Time 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_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. - max
Expire 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/
. - referencing
Backups 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. - referencing
Databases 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 theREADY
state, the reference to the backup is removed. - size
Bytes String - Size of the backup in bytes.
- state String
- The current state of the backup.
- version
Time String - The backup will contain an externally consistent copy of the database at the timestamp specified by
version_time
. Ifversion_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
- create
Time string - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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/
. - database
Dialect string - The database dialect information for the backup.
- encryption
Info EncryptionInfo Response - The encryption information for the backup.
- expire
Time 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_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. - max
Expire 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/
. - referencing
Backups 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. - referencing
Databases 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 theREADY
state, the reference to the backup is removed. - size
Bytes string - Size of the backup in bytes.
- state string
- The current state of the backup.
- version
Time string - The backup will contain an externally consistent copy of the database at the timestamp specified by
version_time
. Ifversion_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
- create_
time str - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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_time
has 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 theREADY
state, 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_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
- create
Time String - The time the CreateBackup request is received. If the request does not specify
version_time
, theversion_time
of 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/
. - database
Dialect String - The database dialect information for the backup.
- encryption
Info Property Map - The encryption information for the backup.
- expire
Time 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_time
has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. - max
Expire 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/
. - referencing
Backups 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. - referencing
Databases 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 theREADY
state, the reference to the backup is removed. - size
Bytes String - Size of the backup in bytes.
- state String
- The current state of the backup.
- version
Time String - The backup will contain an externally consistent copy of the database at the timestamp specified by
version_time
. Ifversion_time
is not specified, the system will setversion_time
to thecreate_time
of the backup.
Supporting Types
EncryptionInfoResponse
- Encryption
Status 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.
- Encryption
Type string - The type of encryption.
- Kms
Key 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 string - The type of encryption.
- Kms
Key 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 String - The type of encryption.
- kms
Key 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 string - The type of encryption.
- kms
Key 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.
- encryption
Status 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.
- encryption
Type String - The type of encryption.
- kms
Key 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<Immutable
Dictionary<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