1. Packages
  2. Azure Classic
  3. API Docs
  4. netapp
  5. Snapshot

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.netapp.Snapshot

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a NetApp Snapshot.

    NetApp Snapshot Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "example-virtualnetwork",
        addressSpaces: ["10.0.0.0/16"],
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "example-subnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.0.2.0/24"],
        delegations: [{
            name: "netapp",
            serviceDelegation: {
                name: "Microsoft.Netapp/volumes",
                actions: [
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            },
        }],
    });
    const exampleAccount = new azure.netapp.Account("example", {
        name: "example-netappaccount",
        location: example.location,
        resourceGroupName: example.name,
    });
    const examplePool = new azure.netapp.Pool("example", {
        name: "example-netapppool",
        accountName: exampleAccount.name,
        location: example.location,
        resourceGroupName: example.name,
        serviceLevel: "Premium",
        sizeInTb: 4,
    });
    const exampleVolume = new azure.netapp.Volume("example", {
        name: "example-netappvolume",
        location: example.location,
        resourceGroupName: example.name,
        accountName: exampleAccount.name,
        poolName: examplePool.name,
        volumePath: "my-unique-file-path",
        serviceLevel: "Premium",
        subnetId: exampleSubnet.id,
        storageQuotaInGb: 100,
    });
    const exampleSnapshot = new azure.netapp.Snapshot("example", {
        name: "example-netappsnapshot",
        accountName: exampleAccount.name,
        poolName: examplePool.name,
        volumeName: exampleVolume.name,
        location: example.location,
        resourceGroupName: example.name,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="example-virtualnetwork",
        address_spaces=["10.0.0.0/16"],
        location=example.location,
        resource_group_name=example.name)
    example_subnet = azure.network.Subnet("example",
        name="example-subnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.2.0/24"],
        delegations=[{
            "name": "netapp",
            "service_delegation": {
                "name": "Microsoft.Netapp/volumes",
                "actions": [
                    "Microsoft.Network/networkinterfaces/*",
                    "Microsoft.Network/virtualNetworks/subnets/join/action",
                ],
            },
        }])
    example_account = azure.netapp.Account("example",
        name="example-netappaccount",
        location=example.location,
        resource_group_name=example.name)
    example_pool = azure.netapp.Pool("example",
        name="example-netapppool",
        account_name=example_account.name,
        location=example.location,
        resource_group_name=example.name,
        service_level="Premium",
        size_in_tb=4)
    example_volume = azure.netapp.Volume("example",
        name="example-netappvolume",
        location=example.location,
        resource_group_name=example.name,
        account_name=example_account.name,
        pool_name=example_pool.name,
        volume_path="my-unique-file-path",
        service_level="Premium",
        subnet_id=example_subnet.id,
        storage_quota_in_gb=100)
    example_snapshot = azure.netapp.Snapshot("example",
        name="example-netappsnapshot",
        account_name=example_account.name,
        pool_name=example_pool.name,
        volume_name=example_volume.name,
        location=example.location,
        resource_group_name=example.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name: pulumi.String("example-virtualnetwork"),
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("example-subnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.2.0/24"),
    			},
    			Delegations: network.SubnetDelegationArray{
    				&network.SubnetDelegationArgs{
    					Name: pulumi.String("netapp"),
    					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
    						Name: pulumi.String("Microsoft.Netapp/volumes"),
    						Actions: pulumi.StringArray{
    							pulumi.String("Microsoft.Network/networkinterfaces/*"),
    							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{
    			Name:              pulumi.String("example-netappaccount"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		examplePool, err := netapp.NewPool(ctx, "example", &netapp.PoolArgs{
    			Name:              pulumi.String("example-netapppool"),
    			AccountName:       exampleAccount.Name,
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			ServiceLevel:      pulumi.String("Premium"),
    			SizeInTb:          pulumi.Int(4),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVolume, err := netapp.NewVolume(ctx, "example", &netapp.VolumeArgs{
    			Name:              pulumi.String("example-netappvolume"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			AccountName:       exampleAccount.Name,
    			PoolName:          examplePool.Name,
    			VolumePath:        pulumi.String("my-unique-file-path"),
    			ServiceLevel:      pulumi.String("Premium"),
    			SubnetId:          exampleSubnet.ID(),
    			StorageQuotaInGb:  pulumi.Int(100),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netapp.NewSnapshot(ctx, "example", &netapp.SnapshotArgs{
    			Name:              pulumi.String("example-netappsnapshot"),
    			AccountName:       exampleAccount.Name,
    			PoolName:          examplePool.Name,
    			VolumeName:        exampleVolume.Name,
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "example-virtualnetwork",
            AddressSpaces = new[]
            {
                "10.0.0.0/16",
            },
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "example-subnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.0.2.0/24",
            },
            Delegations = new[]
            {
                new Azure.Network.Inputs.SubnetDelegationArgs
                {
                    Name = "netapp",
                    ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
                    {
                        Name = "Microsoft.Netapp/volumes",
                        Actions = new[]
                        {
                            "Microsoft.Network/networkinterfaces/*",
                            "Microsoft.Network/virtualNetworks/subnets/join/action",
                        },
                    },
                },
            },
        });
    
        var exampleAccount = new Azure.NetApp.Account("example", new()
        {
            Name = "example-netappaccount",
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var examplePool = new Azure.NetApp.Pool("example", new()
        {
            Name = "example-netapppool",
            AccountName = exampleAccount.Name,
            Location = example.Location,
            ResourceGroupName = example.Name,
            ServiceLevel = "Premium",
            SizeInTb = 4,
        });
    
        var exampleVolume = new Azure.NetApp.Volume("example", new()
        {
            Name = "example-netappvolume",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AccountName = exampleAccount.Name,
            PoolName = examplePool.Name,
            VolumePath = "my-unique-file-path",
            ServiceLevel = "Premium",
            SubnetId = exampleSubnet.Id,
            StorageQuotaInGb = 100,
        });
    
        var exampleSnapshot = new Azure.NetApp.Snapshot("example", new()
        {
            Name = "example-netappsnapshot",
            AccountName = exampleAccount.Name,
            PoolName = examplePool.Name,
            VolumeName = exampleVolume.Name,
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.network.VirtualNetwork;
    import com.pulumi.azure.network.VirtualNetworkArgs;
    import com.pulumi.azure.network.Subnet;
    import com.pulumi.azure.network.SubnetArgs;
    import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
    import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
    import com.pulumi.azure.netapp.Account;
    import com.pulumi.azure.netapp.AccountArgs;
    import com.pulumi.azure.netapp.Pool;
    import com.pulumi.azure.netapp.PoolArgs;
    import com.pulumi.azure.netapp.Volume;
    import com.pulumi.azure.netapp.VolumeArgs;
    import com.pulumi.azure.netapp.Snapshot;
    import com.pulumi.azure.netapp.SnapshotArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("example-virtualnetwork")
                .addressSpaces("10.0.0.0/16")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("example-subnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.0.2.0/24")
                .delegations(SubnetDelegationArgs.builder()
                    .name("netapp")
                    .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
                        .name("Microsoft.Netapp/volumes")
                        .actions(                    
                            "Microsoft.Network/networkinterfaces/*",
                            "Microsoft.Network/virtualNetworks/subnets/join/action")
                        .build())
                    .build())
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example-netappaccount")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var examplePool = new Pool("examplePool", PoolArgs.builder()
                .name("example-netapppool")
                .accountName(exampleAccount.name())
                .location(example.location())
                .resourceGroupName(example.name())
                .serviceLevel("Premium")
                .sizeInTb("4")
                .build());
    
            var exampleVolume = new Volume("exampleVolume", VolumeArgs.builder()
                .name("example-netappvolume")
                .location(example.location())
                .resourceGroupName(example.name())
                .accountName(exampleAccount.name())
                .poolName(examplePool.name())
                .volumePath("my-unique-file-path")
                .serviceLevel("Premium")
                .subnetId(exampleSubnet.id())
                .storageQuotaInGb("100")
                .build());
    
            var exampleSnapshot = new Snapshot("exampleSnapshot", SnapshotArgs.builder()
                .name("example-netappsnapshot")
                .accountName(exampleAccount.name())
                .poolName(examplePool.name())
                .volumeName(exampleVolume.name())
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: example-virtualnetwork
          addressSpaces:
            - 10.0.0.0/16
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: example-subnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.0.2.0/24
          delegations:
            - name: netapp
              serviceDelegation:
                name: Microsoft.Netapp/volumes
                actions:
                  - Microsoft.Network/networkinterfaces/*
                  - Microsoft.Network/virtualNetworks/subnets/join/action
      exampleAccount:
        type: azure:netapp:Account
        name: example
        properties:
          name: example-netappaccount
          location: ${example.location}
          resourceGroupName: ${example.name}
      examplePool:
        type: azure:netapp:Pool
        name: example
        properties:
          name: example-netapppool
          accountName: ${exampleAccount.name}
          location: ${example.location}
          resourceGroupName: ${example.name}
          serviceLevel: Premium
          sizeInTb: '4'
      exampleVolume:
        type: azure:netapp:Volume
        name: example
        properties:
          name: example-netappvolume
          location: ${example.location}
          resourceGroupName: ${example.name}
          accountName: ${exampleAccount.name}
          poolName: ${examplePool.name}
          volumePath: my-unique-file-path
          serviceLevel: Premium
          subnetId: ${exampleSubnet.id}
          storageQuotaInGb: '100'
      exampleSnapshot:
        type: azure:netapp:Snapshot
        name: example
        properties:
          name: example-netappsnapshot
          accountName: ${exampleAccount.name}
          poolName: ${examplePool.name}
          volumeName: ${exampleVolume.name}
          location: ${example.location}
          resourceGroupName: ${example.name}
    

    Create Snapshot Resource

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

    Constructor syntax

    new Snapshot(name: string, args: SnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def Snapshot(resource_name: str,
                 args: SnapshotArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Snapshot(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_name: Optional[str] = None,
                 pool_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 volume_name: Optional[str] = None,
                 location: Optional[str] = None,
                 name: Optional[str] = None)
    func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
    public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
    public Snapshot(String name, SnapshotArgs args)
    public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
    
    type: azure:netapp:Snapshot
    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 SnapshotArgs
    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 SnapshotArgs
    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 SnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnapshotArgs
    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 azureSnapshotResource = new Azure.NetApp.Snapshot("azureSnapshotResource", new()
    {
        AccountName = "string",
        PoolName = "string",
        ResourceGroupName = "string",
        VolumeName = "string",
        Location = "string",
        Name = "string",
    });
    
    example, err := netapp.NewSnapshot(ctx, "azureSnapshotResource", &netapp.SnapshotArgs{
    	AccountName:       pulumi.String("string"),
    	PoolName:          pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	VolumeName:        pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	Name:              pulumi.String("string"),
    })
    
    var azureSnapshotResource = new Snapshot("azureSnapshotResource", SnapshotArgs.builder()
        .accountName("string")
        .poolName("string")
        .resourceGroupName("string")
        .volumeName("string")
        .location("string")
        .name("string")
        .build());
    
    azure_snapshot_resource = azure.netapp.Snapshot("azureSnapshotResource",
        account_name="string",
        pool_name="string",
        resource_group_name="string",
        volume_name="string",
        location="string",
        name="string")
    
    const azureSnapshotResource = new azure.netapp.Snapshot("azureSnapshotResource", {
        accountName: "string",
        poolName: "string",
        resourceGroupName: "string",
        volumeName: "string",
        location: "string",
        name: "string",
    });
    
    type: azure:netapp:Snapshot
    properties:
        accountName: string
        location: string
        name: string
        poolName: string
        resourceGroupName: string
        volumeName: string
    

    Snapshot 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 Snapshot resource accepts the following input properties:

    AccountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    PoolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    VolumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    AccountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    PoolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    VolumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    accountName String
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    poolName String
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName String
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    accountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    poolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    account_name str
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    pool_name str
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volume_name str
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    accountName String
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    poolName String
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName String
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Snapshot Resource

    Get an existing Snapshot 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?: SnapshotState, opts?: CustomResourceOptions): Snapshot
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            pool_name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            volume_name: Optional[str] = None) -> Snapshot
    func GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)
    public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)
    public static Snapshot get(String name, Output<String> id, SnapshotState 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.
    The following state arguments are supported:
    AccountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    PoolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    VolumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    AccountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    PoolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    VolumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    accountName String
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    poolName String
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName String
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    accountName string
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    poolName string
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName string
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    account_name str
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    pool_name str
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volume_name str
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    accountName String
    The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    The name of the NetApp Snapshot. Changing this forces a new resource to be created.
    poolName String
    The name of the NetApp pool in which the NetApp Volume should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group where the NetApp Snapshot should be created. Changing this forces a new resource to be created.
    volumeName String
    The name of the NetApp volume in which the NetApp Snapshot should be created. Changing this forces a new resource to be created.

    Import

    NetApp Snapshot can be imported using the resource id, e.g.

    $ pulumi import azure:netapp/snapshot:Snapshot example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi