1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/beta
  6. RegionInstantSnapshot

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/beta.RegionInstantSnapshot

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

Creates an instant snapshot in the specified region.

Create RegionInstantSnapshot Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RegionInstantSnapshot(name: string, args: RegionInstantSnapshotArgs, opts?: CustomResourceOptions);
@overload
def RegionInstantSnapshot(resource_name: str,
                          args: RegionInstantSnapshotArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def RegionInstantSnapshot(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          region: Optional[str] = None,
                          description: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          name: Optional[str] = None,
                          project: Optional[str] = None,
                          request_id: Optional[str] = None,
                          source_disk: Optional[str] = None)
func NewRegionInstantSnapshot(ctx *Context, name string, args RegionInstantSnapshotArgs, opts ...ResourceOption) (*RegionInstantSnapshot, error)
public RegionInstantSnapshot(string name, RegionInstantSnapshotArgs args, CustomResourceOptions? opts = null)
public RegionInstantSnapshot(String name, RegionInstantSnapshotArgs args)
public RegionInstantSnapshot(String name, RegionInstantSnapshotArgs args, CustomResourceOptions options)
type: google-native:compute/beta:RegionInstantSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RegionInstantSnapshotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RegionInstantSnapshotArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RegionInstantSnapshotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RegionInstantSnapshotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RegionInstantSnapshotArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var google_nativeRegionInstantSnapshotResource = new GoogleNative.Compute.Beta.RegionInstantSnapshot("google-nativeRegionInstantSnapshotResource", new()
{
    Region = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
    RequestId = "string",
    SourceDisk = "string",
});
Copy
example, err := computebeta.NewRegionInstantSnapshot(ctx, "google-nativeRegionInstantSnapshotResource", &computebeta.RegionInstantSnapshotArgs{
	Region:      pulumi.String("string"),
	Description: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:       pulumi.String("string"),
	Project:    pulumi.String("string"),
	RequestId:  pulumi.String("string"),
	SourceDisk: pulumi.String("string"),
})
Copy
var google_nativeRegionInstantSnapshotResource = new RegionInstantSnapshot("google-nativeRegionInstantSnapshotResource", RegionInstantSnapshotArgs.builder()
    .region("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .requestId("string")
    .sourceDisk("string")
    .build());
Copy
google_native_region_instant_snapshot_resource = google_native.compute.beta.RegionInstantSnapshot("google-nativeRegionInstantSnapshotResource",
    region="string",
    description="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string",
    request_id="string",
    source_disk="string")
Copy
const google_nativeRegionInstantSnapshotResource = new google_native.compute.beta.RegionInstantSnapshot("google-nativeRegionInstantSnapshotResource", {
    region: "string",
    description: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
    requestId: "string",
    sourceDisk: "string",
});
Copy
type: google-native:compute/beta:RegionInstantSnapshot
properties:
    description: string
    labels:
        string: string
    name: string
    project: string
    region: string
    requestId: string
    sourceDisk: string
Copy

RegionInstantSnapshot Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RegionInstantSnapshot resource accepts the following input properties:

Region
This property is required.
Changes to this property will trigger replacement.
string
Description string
An optional description of this resource. Provide this property when you create the resource.
Labels Dictionary<string, string>
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
SourceDisk string
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
Region
This property is required.
Changes to this property will trigger replacement.
string
Description string
An optional description of this resource. Provide this property when you create the resource.
Labels map[string]string
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
SourceDisk string
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
region
This property is required.
Changes to this property will trigger replacement.
String
description String
An optional description of this resource. Provide this property when you create the resource.
labels Map<String,String>
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
sourceDisk String
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
region
This property is required.
Changes to this property will trigger replacement.
string
description string
An optional description of this resource. Provide this property when you create the resource.
labels {[key: string]: string}
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
project Changes to this property will trigger replacement. string
requestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
sourceDisk string
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
region
This property is required.
Changes to this property will trigger replacement.
str
description str
An optional description of this resource. Provide this property when you create the resource.
labels Mapping[str, str]
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
project Changes to this property will trigger replacement. str
request_id str
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
source_disk str
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
region
This property is required.
Changes to this property will trigger replacement.
String
description String
An optional description of this resource. Provide this property when you create the resource.
labels Map<String>
Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
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.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
sourceDisk String
URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

Outputs

All input properties are implicitly available as output properties. Additionally, the RegionInstantSnapshot resource produces the following output properties:

Architecture string
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
DiskSizeGb string
Size of the source disk, specified in GB.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
LabelFingerprint string
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
ResourceStatus Pulumi.GoogleNative.Compute.Beta.Outputs.InstantSnapshotResourceStatusResponse
Status information for the instant snapshot resource.
SatisfiesPzs bool
Reserved for future use.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource's resource id.
SourceDiskId string
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
Status string
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
Zone string
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Architecture string
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
DiskSizeGb string
Size of the source disk, specified in GB.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
LabelFingerprint string
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
ResourceStatus InstantSnapshotResourceStatusResponse
Status information for the instant snapshot resource.
SatisfiesPzs bool
Reserved for future use.
SelfLink string
Server-defined URL for the resource.
SelfLinkWithId string
Server-defined URL for this resource's resource id.
SourceDiskId string
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
Status string
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
Zone string
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
architecture String
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
creationTimestamp String
Creation timestamp in RFC3339 text format.
diskSizeGb String
Size of the source disk, specified in GB.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
labelFingerprint String
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
resourceStatus InstantSnapshotResourceStatusResponse
Status information for the instant snapshot resource.
satisfiesPzs Boolean
Reserved for future use.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource's resource id.
sourceDiskId String
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
status String
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
zone String
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
architecture string
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
creationTimestamp string
Creation timestamp in RFC3339 text format.
diskSizeGb string
Size of the source disk, specified in GB.
id string
The provider-assigned unique ID for this managed resource.
kind string
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
labelFingerprint string
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
resourceStatus InstantSnapshotResourceStatusResponse
Status information for the instant snapshot resource.
satisfiesPzs boolean
Reserved for future use.
selfLink string
Server-defined URL for the resource.
selfLinkWithId string
Server-defined URL for this resource's resource id.
sourceDiskId string
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
status string
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
zone string
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
architecture str
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
creation_timestamp str
Creation timestamp in RFC3339 text format.
disk_size_gb str
Size of the source disk, specified in GB.
id str
The provider-assigned unique ID for this managed resource.
kind str
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
label_fingerprint str
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
resource_status InstantSnapshotResourceStatusResponse
Status information for the instant snapshot resource.
satisfies_pzs bool
Reserved for future use.
self_link str
Server-defined URL for the resource.
self_link_with_id str
Server-defined URL for this resource's resource id.
source_disk_id str
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
status str
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
zone str
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
architecture String
The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
creationTimestamp String
Creation timestamp in RFC3339 text format.
diskSizeGb String
Size of the source disk, specified in GB.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
labelFingerprint String
A fingerprint for the labels being applied to this InstantSnapshot, 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 InstantSnapshot.
resourceStatus Property Map
Status information for the instant snapshot resource.
satisfiesPzs Boolean
Reserved for future use.
selfLink String
Server-defined URL for the resource.
selfLinkWithId String
Server-defined URL for this resource's resource id.
sourceDiskId String
The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
status String
The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
zone String
URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

Supporting Types

InstantSnapshotResourceStatusResponse
, InstantSnapshotResourceStatusResponseArgs

StorageSizeBytes This property is required. string
The storage size of this instant snapshot.
StorageSizeBytes This property is required. string
The storage size of this instant snapshot.
storageSizeBytes This property is required. String
The storage size of this instant snapshot.
storageSizeBytes This property is required. string
The storage size of this instant snapshot.
storage_size_bytes This property is required. str
The storage size of this instant snapshot.
storageSizeBytes This property is required. String
The storage size of this instant snapshot.

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