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.compute/v1.getSnapshot
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
Returns the specified Snapshot resource.
Using getSnapshot
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 getSnapshot(args: GetSnapshotArgs, opts?: InvokeOptions): Promise<GetSnapshotResult>
function getSnapshotOutput(args: GetSnapshotOutputArgs, opts?: InvokeOptions): Output<GetSnapshotResult>
def get_snapshot(project: Optional[str] = None,
snapshot: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSnapshotResult
def get_snapshot_output(project: Optional[pulumi.Input[str]] = None,
snapshot: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotResult]
func LookupSnapshot(ctx *Context, args *LookupSnapshotArgs, opts ...InvokeOption) (*LookupSnapshotResult, error)
func LookupSnapshotOutput(ctx *Context, args *LookupSnapshotOutputArgs, opts ...InvokeOption) LookupSnapshotResultOutput
> Note: This function is named LookupSnapshot
in the Go SDK.
public static class GetSnapshot
{
public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetSnapshotResult> Invoke(GetSnapshotInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSnapshotResult> getSnapshot(GetSnapshotArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:compute/v1:getSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
getSnapshot Result
The following output properties are available:
- Architecture string
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- Auto
Created bool - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- Chain
Name string - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- Creation
Size stringBytes - Size in bytes of the snapshot at creation time.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Disk
Size stringGb - Size of the source disk, specified in GB.
- Download
Bytes string - Number of bytes downloaded to restore a snapshot to a disk.
- Guest
Os List<Pulumi.Features Google Native. Compute. V1. Outputs. Guest Os Feature Response> - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- Kind string
- Type of the resource. Always compute#snapshot for Snapshot resources.
- Label
Fingerprint string - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- Labels Dictionary<string, string>
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- License
Codes List<string> - Integer license codes indicating which licenses are attached to this snapshot.
- Licenses List<string>
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- Location
Hint string - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- Name string
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - Server-defined URL for the resource.
- Snapshot
Encryption Pulumi.Key Google Native. Compute. V1. Outputs. Customer Encryption Key Response - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- Snapshot
Type string - Indicates the type of the snapshot.
- Source
Disk string - The source disk used to create this snapshot.
- Source
Disk Pulumi.Encryption Key Google Native. Compute. V1. Outputs. Customer Encryption Key Response - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- Source
Disk stringFor Recovery Checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- Source
Disk stringId - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- Source
Snapshot stringSchedule Policy - URL of the resource policy which created this scheduled snapshot.
- Source
Snapshot stringSchedule Policy Id - ID of the resource policy which created this scheduled snapshot.
- Status string
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- Storage
Bytes string - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- Storage
Bytes stringStatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- Storage
Locations List<string> - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
- Architecture string
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- Auto
Created bool - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- Chain
Name string - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- Creation
Size stringBytes - Size in bytes of the snapshot at creation time.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Description string
- An optional description of this resource. Provide this property when you create the resource.
- Disk
Size stringGb - Size of the source disk, specified in GB.
- Download
Bytes string - Number of bytes downloaded to restore a snapshot to a disk.
- Guest
Os []GuestFeatures Os Feature Response - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- Kind string
- Type of the resource. Always compute#snapshot for Snapshot resources.
- Label
Fingerprint string - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- Labels map[string]string
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- License
Codes []string - Integer license codes indicating which licenses are attached to this snapshot.
- Licenses []string
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- Location
Hint string - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- Name string
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - Satisfies
Pzs bool - Reserved for future use.
- Self
Link string - Server-defined URL for the resource.
- Snapshot
Encryption CustomerKey Encryption Key Response - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- Snapshot
Type string - Indicates the type of the snapshot.
- Source
Disk string - The source disk used to create this snapshot.
- Source
Disk CustomerEncryption Key Encryption Key Response - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- Source
Disk stringFor Recovery Checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- Source
Disk stringId - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- Source
Snapshot stringSchedule Policy - URL of the resource policy which created this scheduled snapshot.
- Source
Snapshot stringSchedule Policy Id - ID of the resource policy which created this scheduled snapshot.
- Status string
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- Storage
Bytes string - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- Storage
Bytes stringStatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- Storage
Locations []string - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
- architecture String
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- auto
Created Boolean - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- chain
Name String - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- creation
Size StringBytes - Size in bytes of the snapshot at creation time.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- disk
Size StringGb - Size of the source disk, specified in GB.
- download
Bytes String - Number of bytes downloaded to restore a snapshot to a disk.
- guest
Os List<GuestFeatures Os Feature Response> - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- kind String
- Type of the resource. Always compute#snapshot for Snapshot resources.
- label
Fingerprint String - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- labels Map<String,String>
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- license
Codes List<String> - Integer license codes indicating which licenses are attached to this snapshot.
- licenses List<String>
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- location
Hint String - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- name String
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - Server-defined URL for the resource.
- snapshot
Encryption CustomerKey Encryption Key Response - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- snapshot
Type String - Indicates the type of the snapshot.
- source
Disk String - The source disk used to create this snapshot.
- source
Disk CustomerEncryption Key Encryption Key Response - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- source
Disk StringFor Recovery Checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- source
Disk StringId - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- source
Snapshot StringSchedule Policy - URL of the resource policy which created this scheduled snapshot.
- source
Snapshot StringSchedule Policy Id - ID of the resource policy which created this scheduled snapshot.
- status String
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- storage
Bytes String - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- storage
Bytes StringStatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- storage
Locations List<String> - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
- architecture string
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- auto
Created boolean - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- chain
Name string - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- creation
Size stringBytes - Size in bytes of the snapshot at creation time.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- description string
- An optional description of this resource. Provide this property when you create the resource.
- disk
Size stringGb - Size of the source disk, specified in GB.
- download
Bytes string - Number of bytes downloaded to restore a snapshot to a disk.
- guest
Os GuestFeatures Os Feature Response[] - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- kind string
- Type of the resource. Always compute#snapshot for Snapshot resources.
- label
Fingerprint string - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- labels {[key: string]: string}
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- license
Codes string[] - Integer license codes indicating which licenses are attached to this snapshot.
- licenses string[]
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- location
Hint string - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- name string
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - satisfies
Pzs boolean - Reserved for future use.
- self
Link string - Server-defined URL for the resource.
- snapshot
Encryption CustomerKey Encryption Key Response - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- snapshot
Type string - Indicates the type of the snapshot.
- source
Disk string - The source disk used to create this snapshot.
- source
Disk CustomerEncryption Key Encryption Key Response - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- source
Disk stringFor Recovery Checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- source
Disk stringId - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- source
Snapshot stringSchedule Policy - URL of the resource policy which created this scheduled snapshot.
- source
Snapshot stringSchedule Policy Id - ID of the resource policy which created this scheduled snapshot.
- status string
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- storage
Bytes string - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- storage
Bytes stringStatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- storage
Locations string[] - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
- architecture str
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- auto_
created bool - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- chain_
name str - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- creation_
size_ strbytes - Size in bytes of the snapshot at creation time.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- description str
- An optional description of this resource. Provide this property when you create the resource.
- disk_
size_ strgb - Size of the source disk, specified in GB.
- download_
bytes str - Number of bytes downloaded to restore a snapshot to a disk.
- guest_
os_ Sequence[Guestfeatures Os Feature Response] - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- kind str
- Type of the resource. Always compute#snapshot for Snapshot resources.
- label_
fingerprint str - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- labels Mapping[str, str]
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- license_
codes Sequence[str] - Integer license codes indicating which licenses are attached to this snapshot.
- licenses Sequence[str]
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- location_
hint str - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- name str
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - satisfies_
pzs bool - Reserved for future use.
- self_
link str - Server-defined URL for the resource.
- snapshot_
encryption_ Customerkey Encryption Key Response - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- snapshot_
type str - Indicates the type of the snapshot.
- source_
disk str - The source disk used to create this snapshot.
- source_
disk_ Customerencryption_ key Encryption Key Response - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- source_
disk_ strfor_ recovery_ checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- source_
disk_ strid - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- source_
snapshot_ strschedule_ policy - URL of the resource policy which created this scheduled snapshot.
- source_
snapshot_ strschedule_ policy_ id - ID of the resource policy which created this scheduled snapshot.
- status str
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- storage_
bytes str - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- storage_
bytes_ strstatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- storage_
locations Sequence[str] - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
- architecture String
- The architecture of the snapshot. Valid values are ARM64 or X86_64.
- auto
Created Boolean - Set to true if snapshots are automatically created by applying resource policy on the target disk.
- chain
Name String - Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value.
- creation
Size StringBytes - Size in bytes of the snapshot at creation time.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- description String
- An optional description of this resource. Provide this property when you create the resource.
- disk
Size StringGb - Size of the source disk, specified in GB.
- download
Bytes String - Number of bytes downloaded to restore a snapshot to a disk.
- guest
Os List<Property Map>Features - A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
- kind String
- Type of the resource. Always compute#snapshot for Snapshot resources.
- label
Fingerprint String - A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot.
- labels Map<String>
- Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
- license
Codes List<String> - Integer license codes indicating which licenses are attached to this snapshot.
- licenses List<String>
- A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
- location
Hint String - An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API.
- name String
- Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - satisfies
Pzs Boolean - Reserved for future use.
- self
Link String - Server-defined URL for the resource.
- snapshot
Encryption Property MapKey - Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
- snapshot
Type String - Indicates the type of the snapshot.
- source
Disk String - The source disk used to create this snapshot.
- source
Disk Property MapEncryption Key - The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
- source
Disk StringFor Recovery Checkpoint - The source disk whose recovery checkpoint will be used to create this snapshot.
- source
Disk StringId - The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- source
Snapshot StringSchedule Policy - URL of the resource policy which created this scheduled snapshot.
- source
Snapshot StringSchedule Policy Id - ID of the resource policy which created this scheduled snapshot.
- status String
- The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
- storage
Bytes String - A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
- storage
Bytes StringStatus - An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
- storage
Locations List<String> - Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
Supporting Types
CustomerEncryptionKeyResponse
- Kms
Key stringName - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- Raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- Rsa
Encrypted stringKey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- Sha256 string
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- Kms
Key stringName - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- Kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- Raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- Rsa
Encrypted stringKey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- Sha256 string
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key StringName - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- raw
Key String - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- rsa
Encrypted StringKey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- sha256 String
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key stringName - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- kms
Key stringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- rsa
Encrypted stringKey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- sha256 string
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms_
key_ strname - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- kms_
key_ strservice_ account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- raw_
key str - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- rsa_
encrypted_ strkey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- sha256 str
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
- kms
Key StringName - The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
- kms
Key StringService Account - The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/
- raw
Key String - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
- rsa
Encrypted StringKey - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey. For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" The key must meet the following requirements before you can provide it to Compute Engine: 1. The key is wrapped using a RSA public key certificate provided by Google. 2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
- sha256 String
- [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
GuestOsFeatureResponse
- Type string
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
- Type string
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
- type String
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
- type string
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
- type str
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
- type String
- The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features.
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