1. Packages
  2. Azure Native
  3. API Docs
  4. offazure
  5. ImportSitesController
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.offazure.ImportSitesController

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

    A ImportSite Azure REST API version: 2023-06-06.

    Other available API versions: 2023-10-01-preview.

    Example Usage

    ImportSitesController_Create_MaximumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var importSitesController = new AzureNative.OffAzure.ImportSitesController("importSitesController", new()
        {
            DiscoverySolutionId = "lfaswhiwdttdpkrvnrpriauexdjs",
            Location = "woctgvdufvkzvjcirjpf",
            ProvisioningState = AzureNative.OffAzure.ProvisioningState.Created,
            ResourceGroupName = "rgmigrate",
            SiteName = "O-K1FS",
            Tags = 
            {
                { "key2067", "taqzca" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := offazure.NewImportSitesController(ctx, "importSitesController", &offazure.ImportSitesControllerArgs{
    			DiscoverySolutionId: pulumi.String("lfaswhiwdttdpkrvnrpriauexdjs"),
    			Location:            pulumi.String("woctgvdufvkzvjcirjpf"),
    			ProvisioningState:   pulumi.String(offazure.ProvisioningStateCreated),
    			ResourceGroupName:   pulumi.String("rgmigrate"),
    			SiteName:            pulumi.String("O-K1FS"),
    			Tags: pulumi.StringMap{
    				"key2067": pulumi.String("taqzca"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.offazure.ImportSitesController;
    import com.pulumi.azurenative.offazure.ImportSitesControllerArgs;
    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 importSitesController = new ImportSitesController("importSitesController", ImportSitesControllerArgs.builder()        
                .discoverySolutionId("lfaswhiwdttdpkrvnrpriauexdjs")
                .location("woctgvdufvkzvjcirjpf")
                .provisioningState("Created")
                .resourceGroupName("rgmigrate")
                .siteName("O-K1FS")
                .tags(Map.of("key2067", "taqzca"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    import_sites_controller = azure_native.offazure.ImportSitesController("importSitesController",
        discovery_solution_id="lfaswhiwdttdpkrvnrpriauexdjs",
        location="woctgvdufvkzvjcirjpf",
        provisioning_state=azure_native.offazure.ProvisioningState.CREATED,
        resource_group_name="rgmigrate",
        site_name="O-K1FS",
        tags={
            "key2067": "taqzca",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const importSitesController = new azure_native.offazure.ImportSitesController("importSitesController", {
        discoverySolutionId: "lfaswhiwdttdpkrvnrpriauexdjs",
        location: "woctgvdufvkzvjcirjpf",
        provisioningState: azure_native.offazure.ProvisioningState.Created,
        resourceGroupName: "rgmigrate",
        siteName: "O-K1FS",
        tags: {
            key2067: "taqzca",
        },
    });
    
    resources:
      importSitesController:
        type: azure-native:offazure:ImportSitesController
        properties:
          discoverySolutionId: lfaswhiwdttdpkrvnrpriauexdjs
          location: woctgvdufvkzvjcirjpf
          provisioningState: Created
          resourceGroupName: rgmigrate
          siteName: O-K1FS
          tags:
            key2067: taqzca
    

    ImportSitesController_Create_MinimumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var importSitesController = new AzureNative.OffAzure.ImportSitesController("importSitesController", new()
        {
            Location = "woctgvdufvkzvjcirjpf",
            ResourceGroupName = "rgmigrate",
            SiteName = "IHPDPK-1-",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := offazure.NewImportSitesController(ctx, "importSitesController", &offazure.ImportSitesControllerArgs{
    			Location:          pulumi.String("woctgvdufvkzvjcirjpf"),
    			ResourceGroupName: pulumi.String("rgmigrate"),
    			SiteName:          pulumi.String("IHPDPK-1-"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.offazure.ImportSitesController;
    import com.pulumi.azurenative.offazure.ImportSitesControllerArgs;
    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 importSitesController = new ImportSitesController("importSitesController", ImportSitesControllerArgs.builder()        
                .location("woctgvdufvkzvjcirjpf")
                .resourceGroupName("rgmigrate")
                .siteName("IHPDPK-1-")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    import_sites_controller = azure_native.offazure.ImportSitesController("importSitesController",
        location="woctgvdufvkzvjcirjpf",
        resource_group_name="rgmigrate",
        site_name="IHPDPK-1-")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const importSitesController = new azure_native.offazure.ImportSitesController("importSitesController", {
        location: "woctgvdufvkzvjcirjpf",
        resourceGroupName: "rgmigrate",
        siteName: "IHPDPK-1-",
    });
    
    resources:
      importSitesController:
        type: azure-native:offazure:ImportSitesController
        properties:
          location: woctgvdufvkzvjcirjpf
          resourceGroupName: rgmigrate
          siteName: IHPDPK-1-
    

    Create ImportSitesController Resource

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

    Constructor syntax

    new ImportSitesController(name: string, args: ImportSitesControllerArgs, opts?: CustomResourceOptions);
    @overload
    def ImportSitesController(resource_name: str,
                              args: ImportSitesControllerArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImportSitesController(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              resource_group_name: Optional[str] = None,
                              discovery_solution_id: Optional[str] = None,
                              location: Optional[str] = None,
                              provisioning_state: Optional[Union[str, ProvisioningState]] = None,
                              site_name: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None)
    func NewImportSitesController(ctx *Context, name string, args ImportSitesControllerArgs, opts ...ResourceOption) (*ImportSitesController, error)
    public ImportSitesController(string name, ImportSitesControllerArgs args, CustomResourceOptions? opts = null)
    public ImportSitesController(String name, ImportSitesControllerArgs args)
    public ImportSitesController(String name, ImportSitesControllerArgs args, CustomResourceOptions options)
    
    type: azure-native:offazure:ImportSitesController
    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 ImportSitesControllerArgs
    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 ImportSitesControllerArgs
    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 ImportSitesControllerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImportSitesControllerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImportSitesControllerArgs
    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 importSitesControllerResource = new AzureNative.OffAzure.ImportSitesController("importSitesControllerResource", new()
    {
        ResourceGroupName = "string",
        DiscoverySolutionId = "string",
        Location = "string",
        ProvisioningState = "string",
        SiteName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := offazure.NewImportSitesController(ctx, "importSitesControllerResource", &offazure.ImportSitesControllerArgs{
    ResourceGroupName: pulumi.String("string"),
    DiscoverySolutionId: pulumi.String("string"),
    Location: pulumi.String("string"),
    ProvisioningState: pulumi.String("string"),
    SiteName: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var importSitesControllerResource = new ImportSitesController("importSitesControllerResource", ImportSitesControllerArgs.builder()        
        .resourceGroupName("string")
        .discoverySolutionId("string")
        .location("string")
        .provisioningState("string")
        .siteName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    import_sites_controller_resource = azure_native.offazure.ImportSitesController("importSitesControllerResource",
        resource_group_name="string",
        discovery_solution_id="string",
        location="string",
        provisioning_state="string",
        site_name="string",
        tags={
            "string": "string",
        })
    
    const importSitesControllerResource = new azure_native.offazure.ImportSitesController("importSitesControllerResource", {
        resourceGroupName: "string",
        discoverySolutionId: "string",
        location: "string",
        provisioningState: "string",
        siteName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:offazure:ImportSitesController
    properties:
        discoverySolutionId: string
        location: string
        provisioningState: string
        resourceGroupName: string
        siteName: string
        tags:
            string: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DiscoverySolutionId string
    Gets or sets the ARM ID of migration hub solution for SDS.
    Location string
    The geo-location where the resource lives
    ProvisioningState string | Pulumi.AzureNative.OffAzure.ProvisioningState
    The status of the last operation.
    SiteName string
    Site name
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DiscoverySolutionId string
    Gets or sets the ARM ID of migration hub solution for SDS.
    Location string
    The geo-location where the resource lives
    ProvisioningState string | ProvisioningState
    The status of the last operation.
    SiteName string
    Site name
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    discoverySolutionId String
    Gets or sets the ARM ID of migration hub solution for SDS.
    location String
    The geo-location where the resource lives
    provisioningState String | ProvisioningState
    The status of the last operation.
    siteName String
    Site name
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    discoverySolutionId string
    Gets or sets the ARM ID of migration hub solution for SDS.
    location string
    The geo-location where the resource lives
    provisioningState string | ProvisioningState
    The status of the last operation.
    siteName string
    Site name
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    discovery_solution_id str
    Gets or sets the ARM ID of migration hub solution for SDS.
    location str
    The geo-location where the resource lives
    provisioning_state str | ProvisioningState
    The status of the last operation.
    site_name str
    Site name
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    discoverySolutionId String
    Gets or sets the ARM ID of migration hub solution for SDS.
    location String
    The geo-location where the resource lives
    provisioningState String | "Created" | "Updated" | "Running" | "Completed" | "Failed" | "Succeeded" | "Canceled"
    The status of the last operation.
    siteName String
    Site name
    tags Map<String>
    Resource tags.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MasterSiteId string
    Gets the Master Site this site is linked to.
    Name string
    The name of the resource
    ServiceEndpoint string
    Gets the service endpoint.
    SystemData Pulumi.AzureNative.OffAzure.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    MasterSiteId string
    Gets the Master Site this site is linked to.
    Name string
    The name of the resource
    ServiceEndpoint string
    Gets the service endpoint.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    masterSiteId String
    Gets the Master Site this site is linked to.
    name String
    The name of the resource
    serviceEndpoint String
    Gets the service endpoint.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    masterSiteId string
    Gets the Master Site this site is linked to.
    name string
    The name of the resource
    serviceEndpoint string
    Gets the service endpoint.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    master_site_id str
    Gets the Master Site this site is linked to.
    name str
    The name of the resource
    service_endpoint str
    Gets the service endpoint.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    masterSiteId String
    Gets the Master Site this site is linked to.
    name String
    The name of the resource
    serviceEndpoint String
    Gets the service endpoint.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ProvisioningState, ProvisioningStateArgs

    Created
    CreatedCreated value.
    Updated
    UpdatedUpdated value.
    Running
    RunningRunning value.
    Completed
    CompletedCompleted value.
    Failed
    FailedFailed value.
    Succeeded
    SucceededSucceeded value.
    Canceled
    CanceledCanceled value.
    ProvisioningStateCreated
    CreatedCreated value.
    ProvisioningStateUpdated
    UpdatedUpdated value.
    ProvisioningStateRunning
    RunningRunning value.
    ProvisioningStateCompleted
    CompletedCompleted value.
    ProvisioningStateFailed
    FailedFailed value.
    ProvisioningStateSucceeded
    SucceededSucceeded value.
    ProvisioningStateCanceled
    CanceledCanceled value.
    Created
    CreatedCreated value.
    Updated
    UpdatedUpdated value.
    Running
    RunningRunning value.
    Completed
    CompletedCompleted value.
    Failed
    FailedFailed value.
    Succeeded
    SucceededSucceeded value.
    Canceled
    CanceledCanceled value.
    Created
    CreatedCreated value.
    Updated
    UpdatedUpdated value.
    Running
    RunningRunning value.
    Completed
    CompletedCompleted value.
    Failed
    FailedFailed value.
    Succeeded
    SucceededSucceeded value.
    Canceled
    CanceledCanceled value.
    CREATED
    CreatedCreated value.
    UPDATED
    UpdatedUpdated value.
    RUNNING
    RunningRunning value.
    COMPLETED
    CompletedCompleted value.
    FAILED
    FailedFailed value.
    SUCCEEDED
    SucceededSucceeded value.
    CANCELED
    CanceledCanceled value.
    "Created"
    CreatedCreated value.
    "Updated"
    UpdatedUpdated value.
    "Running"
    RunningRunning value.
    "Completed"
    CompletedCompleted value.
    "Failed"
    FailedFailed value.
    "Succeeded"
    SucceededSucceeded value.
    "Canceled"
    CanceledCanceled value.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:offazure:ImportSitesController tqrloxeytbqkupcidyfjzkib /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/importSites/{siteName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi