1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. MoverSourceEndpoint

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

azure.storage.MoverSourceEndpoint

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

    Manages a Storage Mover Source Endpoint.

    Example 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 exampleMover = new azure.storage.Mover("example", {
        name: "example-ssm",
        resourceGroupName: example.name,
        location: "West Europe",
    });
    const exampleMoverSourceEndpoint = new azure.storage.MoverSourceEndpoint("example", {
        name: "example-se",
        storageMoverId: exampleMover.id,
        "export": "/",
        host: "192.168.0.1",
        nfsVersion: "NFSv3",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_mover = azure.storage.Mover("example",
        name="example-ssm",
        resource_group_name=example.name,
        location="West Europe")
    example_mover_source_endpoint = azure.storage.MoverSourceEndpoint("example",
        name="example-se",
        storage_mover_id=example_mover.id,
        export="/",
        host="192.168.0.1",
        nfs_version="NFSv3")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"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
    		}
    		exampleMover, err := storage.NewMover(ctx, "example", &storage.MoverArgs{
    			Name:              pulumi.String("example-ssm"),
    			ResourceGroupName: example.Name,
    			Location:          pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = storage.NewMoverSourceEndpoint(ctx, "example", &storage.MoverSourceEndpointArgs{
    			Name:           pulumi.String("example-se"),
    			StorageMoverId: exampleMover.ID(),
    			Export:         pulumi.String("/"),
    			Host:           pulumi.String("192.168.0.1"),
    			NfsVersion:     pulumi.String("NFSv3"),
    		})
    		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 exampleMover = new Azure.Storage.Mover("example", new()
        {
            Name = "example-ssm",
            ResourceGroupName = example.Name,
            Location = "West Europe",
        });
    
        var exampleMoverSourceEndpoint = new Azure.Storage.MoverSourceEndpoint("example", new()
        {
            Name = "example-se",
            StorageMoverId = exampleMover.Id,
            Export = "/",
            Host = "192.168.0.1",
            NfsVersion = "NFSv3",
        });
    
    });
    
    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.storage.Mover;
    import com.pulumi.azure.storage.MoverArgs;
    import com.pulumi.azure.storage.MoverSourceEndpoint;
    import com.pulumi.azure.storage.MoverSourceEndpointArgs;
    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 exampleMover = new Mover("exampleMover", MoverArgs.builder()        
                .name("example-ssm")
                .resourceGroupName(example.name())
                .location("West Europe")
                .build());
    
            var exampleMoverSourceEndpoint = new MoverSourceEndpoint("exampleMoverSourceEndpoint", MoverSourceEndpointArgs.builder()        
                .name("example-se")
                .storageMoverId(exampleMover.id())
                .export("/")
                .host("192.168.0.1")
                .nfsVersion("NFSv3")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleMover:
        type: azure:storage:Mover
        name: example
        properties:
          name: example-ssm
          resourceGroupName: ${example.name}
          location: West Europe
      exampleMoverSourceEndpoint:
        type: azure:storage:MoverSourceEndpoint
        name: example
        properties:
          name: example-se
          storageMoverId: ${exampleMover.id}
          export: /
          host: 192.168.0.1
          nfsVersion: NFSv3
    

    Create MoverSourceEndpoint Resource

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

    Constructor syntax

    new MoverSourceEndpoint(name: string, args: MoverSourceEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def MoverSourceEndpoint(resource_name: str,
                            args: MoverSourceEndpointArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def MoverSourceEndpoint(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            host: Optional[str] = None,
                            storage_mover_id: Optional[str] = None,
                            description: Optional[str] = None,
                            export: Optional[str] = None,
                            name: Optional[str] = None,
                            nfs_version: Optional[str] = None)
    func NewMoverSourceEndpoint(ctx *Context, name string, args MoverSourceEndpointArgs, opts ...ResourceOption) (*MoverSourceEndpoint, error)
    public MoverSourceEndpoint(string name, MoverSourceEndpointArgs args, CustomResourceOptions? opts = null)
    public MoverSourceEndpoint(String name, MoverSourceEndpointArgs args)
    public MoverSourceEndpoint(String name, MoverSourceEndpointArgs args, CustomResourceOptions options)
    
    type: azure:storage:MoverSourceEndpoint
    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 MoverSourceEndpointArgs
    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 MoverSourceEndpointArgs
    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 MoverSourceEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoverSourceEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoverSourceEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var moverSourceEndpointResource = new Azure.Storage.MoverSourceEndpoint("moverSourceEndpointResource", new()
    {
        Host = "string",
        StorageMoverId = "string",
        Description = "string",
        Export = "string",
        Name = "string",
        NfsVersion = "string",
    });
    
    example, err := storage.NewMoverSourceEndpoint(ctx, "moverSourceEndpointResource", &storage.MoverSourceEndpointArgs{
    	Host:           pulumi.String("string"),
    	StorageMoverId: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	Export:         pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	NfsVersion:     pulumi.String("string"),
    })
    
    var moverSourceEndpointResource = new MoverSourceEndpoint("moverSourceEndpointResource", MoverSourceEndpointArgs.builder()        
        .host("string")
        .storageMoverId("string")
        .description("string")
        .export("string")
        .name("string")
        .nfsVersion("string")
        .build());
    
    mover_source_endpoint_resource = azure.storage.MoverSourceEndpoint("moverSourceEndpointResource",
        host="string",
        storage_mover_id="string",
        description="string",
        export="string",
        name="string",
        nfs_version="string")
    
    const moverSourceEndpointResource = new azure.storage.MoverSourceEndpoint("moverSourceEndpointResource", {
        host: "string",
        storageMoverId: "string",
        description: "string",
        "export": "string",
        name: "string",
        nfsVersion: "string",
    });
    
    type: azure:storage:MoverSourceEndpoint
    properties:
        description: string
        export: string
        host: string
        name: string
        nfsVersion: string
        storageMoverId: string
    

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

    Host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Source Endpoint.
    Export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    NfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    Host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Source Endpoint.
    Export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    NfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    host String
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Source Endpoint.
    export String
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion String
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description string
    Specifies a description for the Storage Mover Source Endpoint.
    export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    host str
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description str
    Specifies a description for the Storage Mover Source Endpoint.
    export str
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    name str
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfs_version str
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    host String
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Source Endpoint.
    export String
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion String
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MoverSourceEndpoint 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 MoverSourceEndpoint Resource

    Get an existing MoverSourceEndpoint 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?: MoverSourceEndpointState, opts?: CustomResourceOptions): MoverSourceEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            export: Optional[str] = None,
            host: Optional[str] = None,
            name: Optional[str] = None,
            nfs_version: Optional[str] = None,
            storage_mover_id: Optional[str] = None) -> MoverSourceEndpoint
    func GetMoverSourceEndpoint(ctx *Context, name string, id IDInput, state *MoverSourceEndpointState, opts ...ResourceOption) (*MoverSourceEndpoint, error)
    public static MoverSourceEndpoint Get(string name, Input<string> id, MoverSourceEndpointState? state, CustomResourceOptions? opts = null)
    public static MoverSourceEndpoint get(String name, Output<String> id, MoverSourceEndpointState 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:
    Description string
    Specifies a description for the Storage Mover Source Endpoint.
    Export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    Host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    NfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Source Endpoint.
    Export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    Host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    Name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    NfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Source Endpoint.
    export String
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    host String
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion String
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description string
    Specifies a description for the Storage Mover Source Endpoint.
    export string
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    host string
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    name string
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion string
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description str
    Specifies a description for the Storage Mover Source Endpoint.
    export str
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    host str
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    name str
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfs_version str
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Source Endpoint.
    export String
    Specifies the directory being exported from the server. Changing this forces a new resource to be created.
    host String
    Specifies the host name or IP address of the server exporting the file system. Changing this forces a new resource to be created.
    name String
    Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.
    nfsVersion String
    Specifies the NFS protocol version. Possible values are NFSauto, NFSv3 and NFSv4. Defaults to NFSauto. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the Storage Mover for this Storage Mover Source Endpoint. Changing this forces a new resource to be created.

    Import

    Storage Mover Source Endpoint can be imported using the resource id, e.g.

    $ pulumi import azure:storage/moverSourceEndpoint:MoverSourceEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/endpoints/endpoint1
    

    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 Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi