published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Represents an instant snapshot resource.
An instant snapshot is an in-place backup of a disk that can be used to rapidly create a new disk in minutes.
Instant snapshots capture data at a specific point in time. They are optimized for rapidly restoring captured data to a new disk. Use instant snapshots to quickly recover data in cases where the zone and disk are still intact but the data on the disk has been lost or corrupted
To get more information about RegionInstantSnapshot, see:
- API documentation
- How-to Guides
Example Usage
Region Instant Snapshot Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foo = new gcp.compute.RegionDisk("foo", {
name: "example-disk",
type: "pd-ssd",
region: "us-central1",
size: 10,
replicaZones: [
"us-central1-a",
"us-central1-f",
],
});
const _default = new gcp.compute.RegionInstantSnapshot("default", {
name: "instant-snapshot",
region: "us-central1",
sourceDisk: foo.selfLink,
});
import pulumi
import pulumi_gcp as gcp
foo = gcp.compute.RegionDisk("foo",
name="example-disk",
type="pd-ssd",
region="us-central1",
size=10,
replica_zones=[
"us-central1-a",
"us-central1-f",
])
default = gcp.compute.RegionInstantSnapshot("default",
name="instant-snapshot",
region="us-central1",
source_disk=foo.self_link)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := compute.NewRegionDisk(ctx, "foo", &compute.RegionDiskArgs{
Name: pulumi.String("example-disk"),
Type: pulumi.String("pd-ssd"),
Region: pulumi.String("us-central1"),
Size: pulumi.Int(10),
ReplicaZones: pulumi.StringArray{
pulumi.String("us-central1-a"),
pulumi.String("us-central1-f"),
},
})
if err != nil {
return err
}
_, err = compute.NewRegionInstantSnapshot(ctx, "default", &compute.RegionInstantSnapshotArgs{
Name: pulumi.String("instant-snapshot"),
Region: pulumi.String("us-central1"),
SourceDisk: foo.SelfLink,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var foo = new Gcp.Compute.RegionDisk("foo", new()
{
Name = "example-disk",
Type = "pd-ssd",
Region = "us-central1",
Size = 10,
ReplicaZones = new[]
{
"us-central1-a",
"us-central1-f",
},
});
var @default = new Gcp.Compute.RegionInstantSnapshot("default", new()
{
Name = "instant-snapshot",
Region = "us-central1",
SourceDisk = foo.SelfLink,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.RegionDisk;
import com.pulumi.gcp.compute.RegionDiskArgs;
import com.pulumi.gcp.compute.RegionInstantSnapshot;
import com.pulumi.gcp.compute.RegionInstantSnapshotArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new RegionDisk("foo", RegionDiskArgs.builder()
.name("example-disk")
.type("pd-ssd")
.region("us-central1")
.size(10)
.replicaZones(
"us-central1-a",
"us-central1-f")
.build());
var default_ = new RegionInstantSnapshot("default", RegionInstantSnapshotArgs.builder()
.name("instant-snapshot")
.region("us-central1")
.sourceDisk(foo.selfLink())
.build());
}
}
resources:
foo:
type: gcp:compute:RegionDisk
properties:
name: example-disk
type: pd-ssd
region: us-central1
size: 10
replicaZones:
- us-central1-a
- us-central1-f
default:
type: gcp:compute:RegionInstantSnapshot
properties:
name: instant-snapshot
region: us-central1
sourceDisk: ${foo.selfLink}
Example coming soon!
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,
source_disk: Optional[str] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
params: Optional[RegionInstantSnapshotParamsArgs] = None,
project: Optional[str] = None,
region: 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: gcp:compute:RegionInstantSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcp_compute_regioninstantsnapshot" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RegionInstantSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args RegionInstantSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegionInstantSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 regionInstantSnapshotResource = new Gcp.Compute.RegionInstantSnapshot("regionInstantSnapshotResource", new()
{
SourceDisk = "string",
DeletionPolicy = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Params = new Gcp.Compute.Inputs.RegionInstantSnapshotParamsArgs
{
ResourceManagerTags =
{
{ "string", "string" },
},
},
Project = "string",
Region = "string",
});
example, err := compute.NewRegionInstantSnapshot(ctx, "regionInstantSnapshotResource", &compute.RegionInstantSnapshotArgs{
SourceDisk: pulumi.String("string"),
DeletionPolicy: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Params: &compute.RegionInstantSnapshotParamsArgs{
ResourceManagerTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Project: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "gcp_compute_regioninstantsnapshot" "regionInstantSnapshotResource" {
source_disk = "string"
deletion_policy = "string"
description = "string"
labels = {
"string" = "string"
}
name = "string"
params = {
resource_manager_tags = {
"string" = "string"
}
}
project = "string"
region = "string"
}
var regionInstantSnapshotResource = new RegionInstantSnapshot("regionInstantSnapshotResource", RegionInstantSnapshotArgs.builder()
.sourceDisk("string")
.deletionPolicy("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.params(RegionInstantSnapshotParamsArgs.builder()
.resourceManagerTags(Map.of("string", "string"))
.build())
.project("string")
.region("string")
.build());
region_instant_snapshot_resource = gcp.compute.RegionInstantSnapshot("regionInstantSnapshotResource",
source_disk="string",
deletion_policy="string",
description="string",
labels={
"string": "string",
},
name="string",
params={
"resource_manager_tags": {
"string": "string",
},
},
project="string",
region="string")
const regionInstantSnapshotResource = new gcp.compute.RegionInstantSnapshot("regionInstantSnapshotResource", {
sourceDisk: "string",
deletionPolicy: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
params: {
resourceManagerTags: {
string: "string",
},
},
project: "string",
region: "string",
});
type: gcp:compute:RegionInstantSnapshot
properties:
deletionPolicy: string
description: string
labels:
string: string
name: string
params:
resourceManagerTags:
string: string
project: string
region: string
sourceDisk: string
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:
- Source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of this resource.
- Labels Dictionary<string, string>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - Params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- A reference to the region where the disk is located.
- Source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of this resource.
- Labels map[string]string
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - Params
Region
Instant Snapshot Params Args - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- A reference to the region where the disk is located.
- source_
disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of this resource.
- labels map(string)
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params object
- Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- A reference to the region where the disk is located.
- source
Disk String - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of this resource.
- labels Map<String,String>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- A reference to the region where the disk is located.
- source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of this resource.
- labels {[key: string]: string}
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- A reference to the region where the disk is located.
- source_
disk str - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- An optional description of this resource.
- labels Mapping[str, str]
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params Args - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
- A reference to the region where the disk is located.
- source
Disk String - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of this resource.
- labels Map<String>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params Property Map
- Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- A reference to the region where the disk is located.
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.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Disk
Size intGb - Size of the snapshot, specified in GB.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Resource
Statuses List<RegionInstant Snapshot Resource Status> - Resource status for the instant snapshot. Structure is documented below.
- Self
Link string - The URI of the created resource.
- Source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- Source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- Source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- Status string
- The status of the instant snapshot.
- Architecture string
- The architecture of the instant snapshot.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Disk
Size intGb - Size of the snapshot, specified in GB.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Resource
Statuses []RegionInstant Snapshot Resource Status - Resource status for the instant snapshot. Structure is documented below.
- Self
Link string - The URI of the created resource.
- Source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- Source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- Source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- Status string
- The status of the instant snapshot.
- architecture string
- The architecture of the instant snapshot.
- creation_
timestamp string - Creation timestamp in RFC3339 text format.
- disk_
size_ numbergb - Size of the snapshot, specified in GB.
- effective_
labels map(string) - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- label_
fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumi_
labels map(string) - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource_
statuses list(object) - Resource status for the instant snapshot. Structure is documented below.
- self_
link string - The URI of the created resource.
- source_
disk_ stringid - The ID value of the disk used to create this InstantSnapshot.
- source_
instant_ stringsnapshot_ group - URL of the source instant snapshot group.
- source_
instant_ stringsnapshot_ group_ id - The unique ID of the source instant snapshot group.
- status string
- The status of the instant snapshot.
- architecture String
- The architecture of the instant snapshot.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- disk
Size IntegerGb - Size of the snapshot, specified in GB.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- label
Fingerprint String - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses List<RegionInstant Snapshot Resource Status> - Resource status for the instant snapshot. Structure is documented below.
- self
Link String - The URI of the created resource.
- source
Disk StringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant StringSnapshot Group - URL of the source instant snapshot group.
- source
Instant StringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status String
- The status of the instant snapshot.
- architecture string
- The architecture of the instant snapshot.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- disk
Size numberGb - Size of the snapshot, specified in GB.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses RegionInstant Snapshot Resource Status[] - Resource status for the instant snapshot. Structure is documented below.
- self
Link string - The URI of the created resource.
- source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status string
- The status of the instant snapshot.
- architecture str
- The architecture of the instant snapshot.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- disk_
size_ intgb - Size of the snapshot, specified in GB.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- label_
fingerprint str - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource_
statuses Sequence[RegionInstant Snapshot Resource Status] - Resource status for the instant snapshot. Structure is documented below.
- self_
link str - The URI of the created resource.
- source_
disk_ strid - The ID value of the disk used to create this InstantSnapshot.
- source_
instant_ strsnapshot_ group - URL of the source instant snapshot group.
- source_
instant_ strsnapshot_ group_ id - The unique ID of the source instant snapshot group.
- status str
- The status of the instant snapshot.
- architecture String
- The architecture of the instant snapshot.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- disk
Size NumberGb - Size of the snapshot, specified in GB.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- label
Fingerprint String - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- resource
Statuses List<Property Map> - Resource status for the instant snapshot. Structure is documented below.
- self
Link String - The URI of the created resource.
- source
Disk StringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant StringSnapshot Group - URL of the source instant snapshot group.
- source
Instant StringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status String
- The status of the instant snapshot.
Look up Existing RegionInstantSnapshot Resource
Get an existing RegionInstantSnapshot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RegionInstantSnapshotState, opts?: CustomResourceOptions): RegionInstantSnapshot@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
architecture: Optional[str] = None,
creation_timestamp: Optional[str] = None,
deletion_policy: Optional[str] = None,
description: Optional[str] = None,
disk_size_gb: Optional[int] = None,
effective_labels: Optional[Mapping[str, str]] = None,
label_fingerprint: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
params: Optional[RegionInstantSnapshotParamsArgs] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
resource_statuses: Optional[Sequence[RegionInstantSnapshotResourceStatusArgs]] = None,
self_link: Optional[str] = None,
source_disk: Optional[str] = None,
source_disk_id: Optional[str] = None,
source_instant_snapshot_group: Optional[str] = None,
source_instant_snapshot_group_id: Optional[str] = None,
status: Optional[str] = None) -> RegionInstantSnapshotfunc GetRegionInstantSnapshot(ctx *Context, name string, id IDInput, state *RegionInstantSnapshotState, opts ...ResourceOption) (*RegionInstantSnapshot, error)public static RegionInstantSnapshot Get(string name, Input<string> id, RegionInstantSnapshotState? state, CustomResourceOptions? opts = null)public static RegionInstantSnapshot get(String name, Output<String> id, RegionInstantSnapshotState state, CustomResourceOptions options)resources: _: type: gcp:compute:RegionInstantSnapshot get: id: ${id}import {
to = gcp_compute_regioninstantsnapshot.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Architecture string
- The architecture of the instant snapshot.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of this resource.
- Disk
Size intGb - Size of the snapshot, specified in GB.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- Labels Dictionary<string, string>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - Params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- A reference to the region where the disk is located.
- Resource
Statuses List<RegionInstant Snapshot Resource Status> - Resource status for the instant snapshot. Structure is documented below.
- Self
Link string - The URI of the created resource.
- Source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- Source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- Source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- Source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- Status string
- The status of the instant snapshot.
- Architecture string
- The architecture of the instant snapshot.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- Description string
- An optional description of this resource.
- Disk
Size intGb - Size of the snapshot, specified in GB.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- Labels map[string]string
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - Params
Region
Instant Snapshot Params Args - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- A reference to the region where the disk is located.
- Resource
Statuses []RegionInstant Snapshot Resource Status Args - Resource status for the instant snapshot. Structure is documented below.
- Self
Link string - The URI of the created resource.
- Source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- Source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- Source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- Source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- Status string
- The status of the instant snapshot.
- architecture string
- The architecture of the instant snapshot.
- creation_
timestamp string - Creation timestamp in RFC3339 text format.
- deletion_
policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of this resource.
- disk_
size_ numbergb - Size of the snapshot, specified in GB.
- effective_
labels map(string) - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- label_
fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- labels map(string)
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params object
- Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels map(string) - The combination of labels configured directly on the resource and default labels configured on the provider.
- region string
- A reference to the region where the disk is located.
- resource_
statuses list(object) - Resource status for the instant snapshot. Structure is documented below.
- self_
link string - The URI of the created resource.
- source_
disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- source_
disk_ stringid - The ID value of the disk used to create this InstantSnapshot.
- source_
instant_ stringsnapshot_ group - URL of the source instant snapshot group.
- source_
instant_ stringsnapshot_ group_ id - The unique ID of the source instant snapshot group.
- status string
- The status of the instant snapshot.
- architecture String
- The architecture of the instant snapshot.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of this resource.
- disk
Size IntegerGb - Size of the snapshot, specified in GB.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- label
Fingerprint String - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- labels Map<String,String>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- A reference to the region where the disk is located.
- resource
Statuses List<RegionInstant Snapshot Resource Status> - Resource status for the instant snapshot. Structure is documented below.
- self
Link String - The URI of the created resource.
- source
Disk String - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- source
Disk StringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant StringSnapshot Group - URL of the source instant snapshot group.
- source
Instant StringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status String
- The status of the instant snapshot.
- architecture string
- The architecture of the instant snapshot.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- deletion
Policy string - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description string
- An optional description of this resource.
- disk
Size numberGb - Size of the snapshot, specified in GB.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- label
Fingerprint string - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- labels {[key: string]: string}
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- region string
- A reference to the region where the disk is located.
- resource
Statuses RegionInstant Snapshot Resource Status[] - Resource status for the instant snapshot. Structure is documented below.
- self
Link string - The URI of the created resource.
- source
Disk string - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- source
Disk stringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant stringSnapshot Group - URL of the source instant snapshot group.
- source
Instant stringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status string
- The status of the instant snapshot.
- architecture str
- The architecture of the instant snapshot.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- deletion_
policy str - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description str
- An optional description of this resource.
- disk_
size_ intgb - Size of the snapshot, specified in GB.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- label_
fingerprint str - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- labels Mapping[str, str]
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params
Region
Instant Snapshot Params Args - Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- region str
- A reference to the region where the disk is located.
- resource_
statuses Sequence[RegionInstant Snapshot Resource Status Args] - Resource status for the instant snapshot. Structure is documented below.
- self_
link str - The URI of the created resource.
- source_
disk str - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- source_
disk_ strid - The ID value of the disk used to create this InstantSnapshot.
- source_
instant_ strsnapshot_ group - URL of the source instant snapshot group.
- source_
instant_ strsnapshot_ group_ id - The unique ID of the source instant snapshot group.
- status str
- The status of the instant snapshot.
- architecture String
- The architecture of the instant snapshot.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- deletion
Policy String - Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
- description String
- An optional description of this resource.
- disk
Size NumberGb - Size of the snapshot, specified in GB.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- label
Fingerprint String - The fingerprint used for optimistic locking of this resource. Used internally during updates.
- labels Map<String>
- Labels to apply to this InstantSnapshot.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource. - 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?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. - params Property Map
- Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- A reference to the region where the disk is located.
- resource
Statuses List<Property Map> - Resource status for the instant snapshot. Structure is documented below.
- self
Link String - The URI of the created resource.
- source
Disk String - The source disk used to create this instant snapshot. You can provide this as a partial or full URL to the resource.
- source
Disk StringId - The ID value of the disk used to create this InstantSnapshot.
- source
Instant StringSnapshot Group - URL of the source instant snapshot group.
- source
Instant StringSnapshot Group Id - The unique ID of the source instant snapshot group.
- status String
- The status of the instant snapshot.
Supporting Types
RegionInstantSnapshotParams, RegionInstantSnapshotParamsArgs
- Dictionary<string, string>
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- map[string]string
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- map(string)
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- Map<String,String>
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- {[key: string]: string}
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- Mapping[str, str]
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
- Map<String>
- Resource manager tags to be bound to the instant snapshot. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
RegionInstantSnapshotResourceStatus, RegionInstantSnapshotResourceStatusArgs
- Storage
Size intBytes - (Output) The size of the storage used by the instant snapshot.
- Storage
Size intBytes - (Output) The size of the storage used by the instant snapshot.
- storage_
size_ numberbytes - (Output) The size of the storage used by the instant snapshot.
- storage
Size IntegerBytes - (Output) The size of the storage used by the instant snapshot.
- storage
Size numberBytes - (Output) The size of the storage used by the instant snapshot.
- storage_
size_ intbytes - (Output) The size of the storage used by the instant snapshot.
- storage
Size NumberBytes - (Output) The size of the storage used by the instant snapshot.
Import
RegionInstantSnapshot can be imported using any of these accepted formats:
projects/{{project}}/regions/{{region}}/instantSnapshots/{{name}}{{project}}/{{region}}/{{name}}{{region}}/{{name}}{{name}}
When using the pulumi import command, RegionInstantSnapshot can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/regionInstantSnapshot:RegionInstantSnapshot default projects/{{project}}/regions/{{region}}/instantSnapshots/{{name}}
$ pulumi import gcp:compute/regionInstantSnapshot:RegionInstantSnapshot default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:compute/regionInstantSnapshot:RegionInstantSnapshot default {{region}}/{{name}}
$ pulumi import gcp:compute/regionInstantSnapshot:RegionInstantSnapshot default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
published on Friday, May 22, 2026 by Pulumi