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

We recommend using Azure Native.

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

azure.storage.MoverTargetEndpoint

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 Storage Mover Target 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 exampleAccount = new azure.storage.Account("example", {
        name: "examplestr",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "LRS",
        allowNestedItemsToBePublic: true,
    });
    const exampleContainer = new azure.storage.Container("example", {
        name: "example-sc",
        storageAccountName: exampleAccount.name,
        containerAccessType: "blob",
    });
    const exampleMover = new azure.storage.Mover("example", {
        name: "example-ssm",
        resourceGroupName: example.name,
        location: "West Europe",
    });
    const exampleMoverTargetEndpoint = new azure.storage.MoverTargetEndpoint("example", {
        name: "example-se",
        storageMoverId: exampleMover.id,
        storageAccountId: exampleAccount.id,
        storageContainerName: exampleContainer.name,
        description: "Example Storage Container Endpoint Description",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="examplestr",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="LRS",
        allow_nested_items_to_be_public=True)
    example_container = azure.storage.Container("example",
        name="example-sc",
        storage_account_name=example_account.name,
        container_access_type="blob")
    example_mover = azure.storage.Mover("example",
        name="example-ssm",
        resource_group_name=example.name,
        location="West Europe")
    example_mover_target_endpoint = azure.storage.MoverTargetEndpoint("example",
        name="example-se",
        storage_mover_id=example_mover.id,
        storage_account_id=example_account.id,
        storage_container_name=example_container.name,
        description="Example Storage Container Endpoint Description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/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
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                       pulumi.String("examplestr"),
    			ResourceGroupName:          example.Name,
    			Location:                   example.Location,
    			AccountTier:                pulumi.String("Standard"),
    			AccountReplicationType:     pulumi.String("LRS"),
    			AllowNestedItemsToBePublic: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
    			Name:                pulumi.String("example-sc"),
    			StorageAccountName:  exampleAccount.Name,
    			ContainerAccessType: pulumi.String("blob"),
    		})
    		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.NewMoverTargetEndpoint(ctx, "example", &storage.MoverTargetEndpointArgs{
    			Name:                 pulumi.String("example-se"),
    			StorageMoverId:       exampleMover.ID(),
    			StorageAccountId:     exampleAccount.ID(),
    			StorageContainerName: exampleContainer.Name,
    			Description:          pulumi.String("Example Storage Container Endpoint Description"),
    		})
    		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 exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestr",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
            AllowNestedItemsToBePublic = true,
        });
    
        var exampleContainer = new Azure.Storage.Container("example", new()
        {
            Name = "example-sc",
            StorageAccountName = exampleAccount.Name,
            ContainerAccessType = "blob",
        });
    
        var exampleMover = new Azure.Storage.Mover("example", new()
        {
            Name = "example-ssm",
            ResourceGroupName = example.Name,
            Location = "West Europe",
        });
    
        var exampleMoverTargetEndpoint = new Azure.Storage.MoverTargetEndpoint("example", new()
        {
            Name = "example-se",
            StorageMoverId = exampleMover.Id,
            StorageAccountId = exampleAccount.Id,
            StorageContainerName = exampleContainer.Name,
            Description = "Example Storage Container Endpoint Description",
        });
    
    });
    
    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.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.storage.Container;
    import com.pulumi.azure.storage.ContainerArgs;
    import com.pulumi.azure.storage.Mover;
    import com.pulumi.azure.storage.MoverArgs;
    import com.pulumi.azure.storage.MoverTargetEndpoint;
    import com.pulumi.azure.storage.MoverTargetEndpointArgs;
    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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("examplestr")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .allowNestedItemsToBePublic(true)
                .build());
    
            var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
                .name("example-sc")
                .storageAccountName(exampleAccount.name())
                .containerAccessType("blob")
                .build());
    
            var exampleMover = new Mover("exampleMover", MoverArgs.builder()
                .name("example-ssm")
                .resourceGroupName(example.name())
                .location("West Europe")
                .build());
    
            var exampleMoverTargetEndpoint = new MoverTargetEndpoint("exampleMoverTargetEndpoint", MoverTargetEndpointArgs.builder()
                .name("example-se")
                .storageMoverId(exampleMover.id())
                .storageAccountId(exampleAccount.id())
                .storageContainerName(exampleContainer.name())
                .description("Example Storage Container Endpoint Description")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestr
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: LRS
          allowNestedItemsToBePublic: true
      exampleContainer:
        type: azure:storage:Container
        name: example
        properties:
          name: example-sc
          storageAccountName: ${exampleAccount.name}
          containerAccessType: blob
      exampleMover:
        type: azure:storage:Mover
        name: example
        properties:
          name: example-ssm
          resourceGroupName: ${example.name}
          location: West Europe
      exampleMoverTargetEndpoint:
        type: azure:storage:MoverTargetEndpoint
        name: example
        properties:
          name: example-se
          storageMoverId: ${exampleMover.id}
          storageAccountId: ${exampleAccount.id}
          storageContainerName: ${exampleContainer.name}
          description: Example Storage Container Endpoint Description
    

    Create MoverTargetEndpoint Resource

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

    Constructor syntax

    new MoverTargetEndpoint(name: string, args: MoverTargetEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def MoverTargetEndpoint(resource_name: str,
                            args: MoverTargetEndpointArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def MoverTargetEndpoint(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            storage_account_id: Optional[str] = None,
                            storage_container_name: Optional[str] = None,
                            storage_mover_id: Optional[str] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None)
    func NewMoverTargetEndpoint(ctx *Context, name string, args MoverTargetEndpointArgs, opts ...ResourceOption) (*MoverTargetEndpoint, error)
    public MoverTargetEndpoint(string name, MoverTargetEndpointArgs args, CustomResourceOptions? opts = null)
    public MoverTargetEndpoint(String name, MoverTargetEndpointArgs args)
    public MoverTargetEndpoint(String name, MoverTargetEndpointArgs args, CustomResourceOptions options)
    
    type: azure:storage:MoverTargetEndpoint
    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 MoverTargetEndpointArgs
    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 MoverTargetEndpointArgs
    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 MoverTargetEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MoverTargetEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MoverTargetEndpointArgs
    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 moverTargetEndpointResource = new Azure.Storage.MoverTargetEndpoint("moverTargetEndpointResource", new()
    {
        StorageAccountId = "string",
        StorageContainerName = "string",
        StorageMoverId = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := storage.NewMoverTargetEndpoint(ctx, "moverTargetEndpointResource", &storage.MoverTargetEndpointArgs{
    	StorageAccountId:     pulumi.String("string"),
    	StorageContainerName: pulumi.String("string"),
    	StorageMoverId:       pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    })
    
    var moverTargetEndpointResource = new MoverTargetEndpoint("moverTargetEndpointResource", MoverTargetEndpointArgs.builder()
        .storageAccountId("string")
        .storageContainerName("string")
        .storageMoverId("string")
        .description("string")
        .name("string")
        .build());
    
    mover_target_endpoint_resource = azure.storage.MoverTargetEndpoint("moverTargetEndpointResource",
        storage_account_id="string",
        storage_container_name="string",
        storage_mover_id="string",
        description="string",
        name="string")
    
    const moverTargetEndpointResource = new azure.storage.MoverTargetEndpoint("moverTargetEndpointResource", {
        storageAccountId: "string",
        storageContainerName: "string",
        storageMoverId: "string",
        description: "string",
        name: "string",
    });
    
    type: azure:storage:MoverTargetEndpoint
    properties:
        description: string
        name: string
        storageAccountId: string
        storageContainerName: string
        storageMoverId: string
    

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

    StorageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Target Endpoint.
    Name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Target Endpoint.
    Name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId String
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName String
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Target Endpoint.
    name String
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description string
    Specifies a description for the Storage Mover Target Endpoint.
    name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_account_id str
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_container_name str
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description str
    Specifies a description for the Storage Mover Target Endpoint.
    name str
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId String
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName String
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Target Endpoint.
    name String
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.

    Outputs

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

    Get an existing MoverTargetEndpoint 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?: MoverTargetEndpointState, opts?: CustomResourceOptions): MoverTargetEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            storage_account_id: Optional[str] = None,
            storage_container_name: Optional[str] = None,
            storage_mover_id: Optional[str] = None) -> MoverTargetEndpoint
    func GetMoverTargetEndpoint(ctx *Context, name string, id IDInput, state *MoverTargetEndpointState, opts ...ResourceOption) (*MoverTargetEndpoint, error)
    public static MoverTargetEndpoint Get(string name, Input<string> id, MoverTargetEndpointState? state, CustomResourceOptions? opts = null)
    public static MoverTargetEndpoint get(String name, Output<String> id, MoverTargetEndpointState 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 Target Endpoint.
    Name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    Description string
    Specifies a description for the Storage Mover Target Endpoint.
    Name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    StorageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Target Endpoint.
    name String
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId String
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName String
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description string
    Specifies a description for the Storage Mover Target Endpoint.
    name string
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId string
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName string
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId string
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description str
    Specifies a description for the Storage Mover Target Endpoint.
    name str
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_account_id str
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_container_name str
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storage_mover_id str
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    description String
    Specifies a description for the Storage Mover Target Endpoint.
    name String
    Specifies the name which should be used for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageAccountId String
    Specifies the ID of the storage account for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageContainerName String
    Specifies the name of the storage blob container for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.
    storageMoverId String
    Specifies the ID of the storage mover for this Storage Mover Target Endpoint. Changing this forces a new resource to be created.

    Import

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

    $ pulumi import azure:storage/moverTargetEndpoint:MoverTargetEndpoint 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 v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi