gcp.netapp.VolumeSnapshot
Explore with Pulumi AI
NetApp Volumes helps you manage your data usage with snapshots that can quickly restore lost data. Snapshots are point-in-time versions of your volume’s content. They are resources of volumes and are instant captures of your data that consume space only for modified data. Because data changes over time, snapshots usually consume more space as they get older. NetApp Volumes volumes use just-in-time copy-on-write so that unmodified files in snapshots don’t consume any of the volume’s capacity.
To get more information about VolumeSnapshot, see:
- API documentation
- How-to Guides
Example Usage
Volume Snapshot Create
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const default = gcp.compute.getNetwork({
name: "test-network",
});
const defaultStoragePool = new gcp.netapp.StoragePool("default", {
name: "test-pool",
location: "us-west2",
serviceLevel: "PREMIUM",
capacityGib: "2048",
network: _default.then(_default => _default.id),
});
const defaultVolume = new gcp.netapp.Volume("default", {
location: defaultStoragePool.location,
name: "test-volume",
capacityGib: "100",
shareName: "test-volume",
storagePool: defaultStoragePool.name,
protocols: ["NFSV3"],
});
const testSnapshot = new gcp.netapp.VolumeSnapshot("test_snapshot", {
location: defaultVolume.location,
volumeName: defaultVolume.name,
name: "testvolumesnap",
}, {
dependsOn: [defaultVolume],
});
import pulumi
import pulumi_gcp as gcp
default = gcp.compute.get_network(name="test-network")
default_storage_pool = gcp.netapp.StoragePool("default",
name="test-pool",
location="us-west2",
service_level="PREMIUM",
capacity_gib="2048",
network=default.id)
default_volume = gcp.netapp.Volume("default",
location=default_storage_pool.location,
name="test-volume",
capacity_gib="100",
share_name="test-volume",
storage_pool=default_storage_pool.name,
protocols=["NFSV3"])
test_snapshot = gcp.netapp.VolumeSnapshot("test_snapshot",
location=default_volume.location,
volume_name=default_volume.name,
name="testvolumesnap",
opts = pulumi.ResourceOptions(depends_on=[default_volume]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
Name: "test-network",
}, nil)
if err != nil {
return err
}
defaultStoragePool, err := netapp.NewStoragePool(ctx, "default", &netapp.StoragePoolArgs{
Name: pulumi.String("test-pool"),
Location: pulumi.String("us-west2"),
ServiceLevel: pulumi.String("PREMIUM"),
CapacityGib: pulumi.String("2048"),
Network: pulumi.String(_default.Id),
})
if err != nil {
return err
}
defaultVolume, err := netapp.NewVolume(ctx, "default", &netapp.VolumeArgs{
Location: defaultStoragePool.Location,
Name: pulumi.String("test-volume"),
CapacityGib: pulumi.String("100"),
ShareName: pulumi.String("test-volume"),
StoragePool: defaultStoragePool.Name,
Protocols: pulumi.StringArray{
pulumi.String("NFSV3"),
},
})
if err != nil {
return err
}
_, err = netapp.NewVolumeSnapshot(ctx, "test_snapshot", &netapp.VolumeSnapshotArgs{
Location: defaultVolume.Location,
VolumeName: defaultVolume.Name,
Name: pulumi.String("testvolumesnap"),
}, pulumi.DependsOn([]pulumi.Resource{
defaultVolume,
}))
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 @default = Gcp.Compute.GetNetwork.Invoke(new()
{
Name = "test-network",
});
var defaultStoragePool = new Gcp.Netapp.StoragePool("default", new()
{
Name = "test-pool",
Location = "us-west2",
ServiceLevel = "PREMIUM",
CapacityGib = "2048",
Network = @default.Apply(@default => @default.Apply(getNetworkResult => getNetworkResult.Id)),
});
var defaultVolume = new Gcp.Netapp.Volume("default", new()
{
Location = defaultStoragePool.Location,
Name = "test-volume",
CapacityGib = "100",
ShareName = "test-volume",
StoragePool = defaultStoragePool.Name,
Protocols = new[]
{
"NFSV3",
},
});
var testSnapshot = new Gcp.Netapp.VolumeSnapshot("test_snapshot", new()
{
Location = defaultVolume.Location,
VolumeName = defaultVolume.Name,
Name = "testvolumesnap",
}, new CustomResourceOptions
{
DependsOn =
{
defaultVolume,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
import com.pulumi.gcp.netapp.StoragePool;
import com.pulumi.gcp.netapp.StoragePoolArgs;
import com.pulumi.gcp.netapp.Volume;
import com.pulumi.gcp.netapp.VolumeArgs;
import com.pulumi.gcp.netapp.VolumeSnapshot;
import com.pulumi.gcp.netapp.VolumeSnapshotArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
final var default = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
.name("test-network")
.build());
var defaultStoragePool = new StoragePool("defaultStoragePool", StoragePoolArgs.builder()
.name("test-pool")
.location("us-west2")
.serviceLevel("PREMIUM")
.capacityGib(2048)
.network(default_.id())
.build());
var defaultVolume = new Volume("defaultVolume", VolumeArgs.builder()
.location(defaultStoragePool.location())
.name("test-volume")
.capacityGib(100)
.shareName("test-volume")
.storagePool(defaultStoragePool.name())
.protocols("NFSV3")
.build());
var testSnapshot = new VolumeSnapshot("testSnapshot", VolumeSnapshotArgs.builder()
.location(defaultVolume.location())
.volumeName(defaultVolume.name())
.name("testvolumesnap")
.build(), CustomResourceOptions.builder()
.dependsOn(defaultVolume)
.build());
}
}
resources:
defaultStoragePool:
type: gcp:netapp:StoragePool
name: default
properties:
name: test-pool
location: us-west2
serviceLevel: PREMIUM
capacityGib: 2048
network: ${default.id}
defaultVolume:
type: gcp:netapp:Volume
name: default
properties:
location: ${defaultStoragePool.location}
name: test-volume
capacityGib: 100
shareName: test-volume
storagePool: ${defaultStoragePool.name}
protocols:
- NFSV3
testSnapshot:
type: gcp:netapp:VolumeSnapshot
name: test_snapshot
properties:
location: ${defaultVolume.location}
volumeName: ${defaultVolume.name}
name: testvolumesnap
options:
dependson:
- ${defaultVolume}
variables:
default:
fn::invoke:
Function: gcp:compute:getNetwork
Arguments:
name: test-network
Create VolumeSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VolumeSnapshot(name: string, args: VolumeSnapshotArgs, opts?: CustomResourceOptions);
@overload
def VolumeSnapshot(resource_name: str,
args: VolumeSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VolumeSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
volume_name: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewVolumeSnapshot(ctx *Context, name string, args VolumeSnapshotArgs, opts ...ResourceOption) (*VolumeSnapshot, error)
public VolumeSnapshot(string name, VolumeSnapshotArgs args, CustomResourceOptions? opts = null)
public VolumeSnapshot(String name, VolumeSnapshotArgs args)
public VolumeSnapshot(String name, VolumeSnapshotArgs args, CustomResourceOptions options)
type: gcp:netapp:VolumeSnapshot
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 VolumeSnapshotArgs
- 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 VolumeSnapshotArgs
- 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 VolumeSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeSnapshotArgs
- 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 volumeSnapshotResource = new Gcp.Netapp.VolumeSnapshot("volumeSnapshotResource", new()
{
Location = "string",
VolumeName = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
});
example, err := netapp.NewVolumeSnapshot(ctx, "volumeSnapshotResource", &netapp.VolumeSnapshotArgs{
Location: pulumi.String("string"),
VolumeName: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var volumeSnapshotResource = new VolumeSnapshot("volumeSnapshotResource", VolumeSnapshotArgs.builder()
.location("string")
.volumeName("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.build());
volume_snapshot_resource = gcp.netapp.VolumeSnapshot("volumeSnapshotResource",
location="string",
volume_name="string",
description="string",
labels={
"string": "string",
},
name="string",
project="string")
const volumeSnapshotResource = new gcp.netapp.VolumeSnapshot("volumeSnapshotResource", {
location: "string",
volumeName: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
});
type: gcp:netapp:VolumeSnapshot
properties:
description: string
labels:
string: string
location: string
name: string
project: string
volumeName: string
VolumeSnapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VolumeSnapshot resource accepts the following input properties:
- Location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- Volume
Name string - The name of the volume to create the snapshot in.
- Description string
- Description for the snapshot.
- Labels Dictionary<string, string>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the snapshot.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- Volume
Name string - The name of the volume to create the snapshot in.
- Description string
- Description for the snapshot.
- Labels map[string]string
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The name of the snapshot.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- volume
Name String - The name of the volume to create the snapshot in.
- description String
- Description for the snapshot.
- labels Map<String,String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the snapshot.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- volume
Name string - The name of the volume to create the snapshot in.
- description string
- Description for the snapshot.
- labels {[key: string]: string}
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The name of the snapshot.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- volume_
name str - The name of the volume to create the snapshot in.
- description str
- Description for the snapshot.
- labels Mapping[str, str]
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The name of the snapshot.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- volume
Name String - The name of the volume to create the snapshot in.
- description String
- Description for the snapshot.
- labels Map<String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The name of the snapshot.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeSnapshot resource produces the following output properties:
- 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.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Used
Bytes int - Storage used to store blocks unique to this snapshot.
- 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.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Used
Bytes int - Storage used to store blocks unique to this snapshot.
- 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.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- used
Bytes Integer - Storage used to store blocks unique to this snapshot.
- 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.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- used
Bytes number - Storage used to store blocks unique to this snapshot.
- 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.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- used_
bytes int - Storage used to store blocks unique to this snapshot.
- 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.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- used
Bytes Number - Storage used to store blocks unique to this snapshot.
Look up Existing VolumeSnapshot Resource
Get an existing VolumeSnapshot 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?: VolumeSnapshotState, opts?: CustomResourceOptions): VolumeSnapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
used_bytes: Optional[int] = None,
volume_name: Optional[str] = None) -> VolumeSnapshot
func GetVolumeSnapshot(ctx *Context, name string, id IDInput, state *VolumeSnapshotState, opts ...ResourceOption) (*VolumeSnapshot, error)
public static VolumeSnapshot Get(string name, Input<string> id, VolumeSnapshotState? state, CustomResourceOptions? opts = null)
public static VolumeSnapshot get(String name, Output<String> id, VolumeSnapshotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description for the snapshot.
- 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.
- Labels Dictionary<string, string>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- Name string
- The name of the snapshot.
- 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.
- Used
Bytes int - Storage used to store blocks unique to this snapshot.
- Volume
Name string - The name of the volume to create the snapshot in.
- Description string
- Description for the snapshot.
- 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.
- Labels map[string]string
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- Name string
- The name of the snapshot.
- 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.
- Used
Bytes int - Storage used to store blocks unique to this snapshot.
- Volume
Name string - The name of the volume to create the snapshot in.
- description String
- Description for the snapshot.
- 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.
- labels Map<String,String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- name String
- The name of the snapshot.
- 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.
- used
Bytes Integer - Storage used to store blocks unique to this snapshot.
- volume
Name String - The name of the volume to create the snapshot in.
- description string
- Description for the snapshot.
- 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.
- labels {[key: string]: string}
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location string
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- name string
- The name of the snapshot.
- 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.
- used
Bytes number - Storage used to store blocks unique to this snapshot.
- volume
Name string - The name of the volume to create the snapshot in.
- description str
- Description for the snapshot.
- 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.
- labels Mapping[str, str]
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location str
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- name str
- The name of the snapshot.
- 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.
- used_
bytes int - Storage used to store blocks unique to this snapshot.
- volume_
name str - The name of the volume to create the snapshot in.
- description String
- Description for the snapshot.
- 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.
- labels Map<String>
Labels as key value pairs. Example:
{ "owner": "Bob", "department": "finance", "purpose": "testing" }
.Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- location String
- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location.
- name String
- The name of the snapshot.
- 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.
- used
Bytes Number - Storage used to store blocks unique to this snapshot.
- volume
Name String - The name of the volume to create the snapshot in.
Import
VolumeSnapshot can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/snapshots/{{name}}
{{project}}/{{location}}/{{volume_name}}/{{name}}
{{location}}/{{volume_name}}/{{name}}
When using the pulumi import
command, VolumeSnapshot can be imported using one of the formats above. For example:
$ pulumi import gcp:netapp/volumeSnapshot:VolumeSnapshot default projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/snapshots/{{name}}
$ pulumi import gcp:netapp/volumeSnapshot:VolumeSnapshot default {{project}}/{{location}}/{{volume_name}}/{{name}}
$ pulumi import gcp:netapp/volumeSnapshot:VolumeSnapshot default {{location}}/{{volume_name}}/{{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-beta
Terraform Provider.