gcp.compute.InstantSnapshot
Explore with Pulumi AI
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 InstantSnapshot, see:
- API documentation
- How-to Guides
Example Usage
Instant Snapshot Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foo = new gcp.compute.Disk("foo", {
    name: "example-disk",
    type: "pd-ssd",
    size: 10,
});
const _default = new gcp.compute.InstantSnapshot("default", {
    name: "instant-snapshot",
    zone: "us-central1-a",
    sourceDisk: foo.selfLink,
});
import pulumi
import pulumi_gcp as gcp
foo = gcp.compute.Disk("foo",
    name="example-disk",
    type="pd-ssd",
    size=10)
default = gcp.compute.InstantSnapshot("default",
    name="instant-snapshot",
    zone="us-central1-a",
    source_disk=foo.self_link)
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := compute.NewDisk(ctx, "foo", &compute.DiskArgs{
			Name: pulumi.String("example-disk"),
			Type: pulumi.String("pd-ssd"),
			Size: pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		_, err = compute.NewInstantSnapshot(ctx, "default", &compute.InstantSnapshotArgs{
			Name:       pulumi.String("instant-snapshot"),
			Zone:       pulumi.String("us-central1-a"),
			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.Disk("foo", new()
    {
        Name = "example-disk",
        Type = "pd-ssd",
        Size = 10,
    });
    var @default = new Gcp.Compute.InstantSnapshot("default", new()
    {
        Name = "instant-snapshot",
        Zone = "us-central1-a",
        SourceDisk = foo.SelfLink,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Disk;
import com.pulumi.gcp.compute.DiskArgs;
import com.pulumi.gcp.compute.InstantSnapshot;
import com.pulumi.gcp.compute.InstantSnapshotArgs;
import java.util.List;
import java.util.ArrayList;
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 Disk("foo", DiskArgs.builder()
            .name("example-disk")
            .type("pd-ssd")
            .size(10)
            .build());
        var default_ = new InstantSnapshot("default", InstantSnapshotArgs.builder()
            .name("instant-snapshot")
            .zone("us-central1-a")
            .sourceDisk(foo.selfLink())
            .build());
    }
}
resources:
  foo:
    type: gcp:compute:Disk
    properties:
      name: example-disk
      type: pd-ssd
      size: 10
  default:
    type: gcp:compute:InstantSnapshot
    properties:
      name: instant-snapshot
      zone: us-central1-a
      sourceDisk: ${foo.selfLink}
Create InstantSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstantSnapshot(name: string, args: InstantSnapshotArgs, opts?: CustomResourceOptions);@overload
def InstantSnapshot(resource_name: str,
                    args: InstantSnapshotArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def InstantSnapshot(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    source_disk: Optional[str] = None,
                    description: Optional[str] = None,
                    labels: Optional[Mapping[str, str]] = None,
                    name: Optional[str] = None,
                    project: Optional[str] = None,
                    zone: Optional[str] = None)func NewInstantSnapshot(ctx *Context, name string, args InstantSnapshotArgs, opts ...ResourceOption) (*InstantSnapshot, error)public InstantSnapshot(string name, InstantSnapshotArgs args, CustomResourceOptions? opts = null)
public InstantSnapshot(String name, InstantSnapshotArgs args)
public InstantSnapshot(String name, InstantSnapshotArgs args, CustomResourceOptions options)
type: gcp:compute:InstantSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstantSnapshotArgs
- 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 InstantSnapshotArgs
- 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 InstantSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstantSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstantSnapshotArgs
- 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 instantSnapshotResource = new Gcp.Compute.InstantSnapshot("instantSnapshotResource", new()
{
    SourceDisk = "string",
    Description = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
    Zone = "string",
});
example, err := compute.NewInstantSnapshot(ctx, "instantSnapshotResource", &compute.InstantSnapshotArgs{
	SourceDisk:  pulumi.String("string"),
	Description: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
	Zone:    pulumi.String("string"),
})
var instantSnapshotResource = new InstantSnapshot("instantSnapshotResource", InstantSnapshotArgs.builder()
    .sourceDisk("string")
    .description("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .zone("string")
    .build());
instant_snapshot_resource = gcp.compute.InstantSnapshot("instantSnapshotResource",
    source_disk="string",
    description="string",
    labels={
        "string": "string",
    },
    name="string",
    project="string",
    zone="string")
const instantSnapshotResource = new gcp.compute.InstantSnapshot("instantSnapshotResource", {
    sourceDisk: "string",
    description: "string",
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
    zone: "string",
});
type: gcp:compute:InstantSnapshot
properties:
    description: string
    labels:
        string: string
    name: string
    project: string
    sourceDisk: string
    zone: string
InstantSnapshot 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 InstantSnapshot resource accepts the following input properties:
- SourceDisk string
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Zone string
- A reference to the zone where the disk is located.
- SourceDisk string
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Zone string
- A reference to the zone where the disk is located.
- sourceDisk String
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zone String
- A reference to the zone where the disk is located.
- sourceDisk string
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zone string
- A reference to the zone where the disk is located.
- source_disk str
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zone str
- A reference to the zone where the disk is located.
- sourceDisk String
- A reference to the disk used to create this instant snapshot.
- 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 effective_labelsfor 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- zone String
- A reference to the zone where the disk is located.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstantSnapshot resource produces the following output properties:
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- DiskSize intGb 
- Size of the snapshot, specified in GB.
- EffectiveLabels 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.
- LabelFingerprint string
- The fingerprint used for optimistic locking of this resource. Used internally during updates.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- The URI of the created resource.
- SourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- DiskSize intGb 
- Size of the snapshot, specified in GB.
- EffectiveLabels 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.
- LabelFingerprint string
- The fingerprint used for optimistic locking of this resource. Used internally during updates.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- The URI of the created resource.
- SourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- diskSize IntegerGb 
- Size of the snapshot, specified in GB.
- effectiveLabels 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.
- labelFingerprint String
- The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- The URI of the created resource.
- sourceDisk StringId 
- The ID value of the disk used to create this InstantSnapshot.
- creationTimestamp string
- Creation timestamp in RFC3339 text format.
- diskSize numberGb 
- Size of the snapshot, specified in GB.
- effectiveLabels {[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.
- labelFingerprint string
- The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink string
- The URI of the created resource.
- sourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- 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.
- self_link str
- The URI of the created resource.
- source_disk_ strid 
- The ID value of the disk used to create this InstantSnapshot.
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- diskSize NumberGb 
- Size of the snapshot, specified in GB.
- effectiveLabels 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.
- labelFingerprint String
- The fingerprint used for optimistic locking of this resource. Used internally during updates.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- The URI of the created resource.
- sourceDisk StringId 
- The ID value of the disk used to create this InstantSnapshot.
Look up Existing InstantSnapshot Resource
Get an existing InstantSnapshot 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?: InstantSnapshotState, opts?: CustomResourceOptions): InstantSnapshot@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        creation_timestamp: 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,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        self_link: Optional[str] = None,
        source_disk: Optional[str] = None,
        source_disk_id: Optional[str] = None,
        zone: Optional[str] = None) -> InstantSnapshotfunc GetInstantSnapshot(ctx *Context, name string, id IDInput, state *InstantSnapshotState, opts ...ResourceOption) (*InstantSnapshot, error)public static InstantSnapshot Get(string name, Input<string> id, InstantSnapshotState? state, CustomResourceOptions? opts = null)public static InstantSnapshot get(String name, Output<String> id, InstantSnapshotState state, CustomResourceOptions options)resources:  _:    type: gcp:compute:InstantSnapshot    get:      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.
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- Description string
- An optional description of this resource.
- DiskSize intGb 
- Size of the snapshot, specified in GB.
- EffectiveLabels 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.
- LabelFingerprint 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 effective_labelsfor 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- The URI of the created resource.
- SourceDisk string
- A reference to the disk used to create this instant snapshot.
- SourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- Zone string
- A reference to the zone where the disk is located.
- CreationTimestamp string
- Creation timestamp in RFC3339 text format.
- Description string
- An optional description of this resource.
- DiskSize intGb 
- Size of the snapshot, specified in GB.
- EffectiveLabels 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.
- LabelFingerprint 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 effective_labelsfor 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.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- SelfLink string
- The URI of the created resource.
- SourceDisk string
- A reference to the disk used to create this instant snapshot.
- SourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- Zone string
- A reference to the zone where the disk is located.
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- description String
- An optional description of this resource.
- diskSize IntegerGb 
- Size of the snapshot, specified in GB.
- effectiveLabels 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.
- labelFingerprint 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 effective_labelsfor 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- The URI of the created resource.
- sourceDisk String
- A reference to the disk used to create this instant snapshot.
- sourceDisk StringId 
- The ID value of the disk used to create this InstantSnapshot.
- zone String
- A reference to the zone where the disk is located.
- creationTimestamp string
- Creation timestamp in RFC3339 text format.
- description string
- An optional description of this resource.
- diskSize numberGb 
- Size of the snapshot, specified in GB.
- effectiveLabels {[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.
- labelFingerprint 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 effective_labelsfor 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.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink string
- The URI of the created resource.
- sourceDisk string
- A reference to the disk used to create this instant snapshot.
- sourceDisk stringId 
- The ID value of the disk used to create this InstantSnapshot.
- zone string
- A reference to the zone where the disk is located.
- creation_timestamp str
- Creation timestamp in RFC3339 text format.
- 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 effective_labelsfor 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.
- 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.
- self_link str
- The URI of the created resource.
- source_disk str
- A reference to the disk used to create this instant snapshot.
- source_disk_ strid 
- The ID value of the disk used to create this InstantSnapshot.
- zone str
- A reference to the zone where the disk is located.
- creationTimestamp String
- Creation timestamp in RFC3339 text format.
- description String
- An optional description of this resource.
- diskSize NumberGb 
- Size of the snapshot, specified in GB.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labelFingerprint 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 effective_labelsfor 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.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- selfLink String
- The URI of the created resource.
- sourceDisk String
- A reference to the disk used to create this instant snapshot.
- sourceDisk StringId 
- The ID value of the disk used to create this InstantSnapshot.
- zone String
- A reference to the zone where the disk is located.
Import
InstantSnapshot can be imported using any of these accepted formats:
- projects/{{project}}/zones/{{zone}}/instantSnapshots/{{name}}
- {{project}}/{{zone}}/{{name}}
- {{zone}}/{{name}}
- {{name}}
When using the pulumi import command, InstantSnapshot can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/instantSnapshot:InstantSnapshot default projects/{{project}}/zones/{{zone}}/instantSnapshots/{{name}}
$ pulumi import gcp:compute/instantSnapshot:InstantSnapshot default {{project}}/{{zone}}/{{name}}
$ pulumi import gcp:compute/instantSnapshot:InstantSnapshot default {{zone}}/{{name}}
$ pulumi import gcp:compute/instantSnapshot:InstantSnapshot 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.