azure-native.offazure.ImportSitesController
Explore with Pulumi AI
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 (
offazure "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 (
offazure "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.
Constructor 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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Discovery
Solution stringId - Gets or sets the ARM ID of migration hub solution for SDS.
- Location string
- The geo-location where the resource lives
- Provisioning
State string | Pulumi.Azure Native. Off Azure. Provisioning State - The status of the last operation.
- Site
Name string - Site name
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Discovery
Solution stringId - Gets or sets the ARM ID of migration hub solution for SDS.
- Location string
- The geo-location where the resource lives
- Provisioning
State string | ProvisioningState - The status of the last operation.
- Site
Name string - Site name
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- discovery
Solution StringId - Gets or sets the ARM ID of migration hub solution for SDS.
- location String
- The geo-location where the resource lives
- provisioning
State String | ProvisioningState - The status of the last operation.
- site
Name String - Site name
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- discovery
Solution stringId - Gets or sets the ARM ID of migration hub solution for SDS.
- location string
- The geo-location where the resource lives
- provisioning
State string | ProvisioningState - The status of the last operation.
- site
Name string - Site name
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- discovery_
solution_ strid - 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
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- discovery
Solution StringId - Gets or sets the ARM ID of migration hub solution for SDS.
- location String
- The geo-location where the resource lives
- provisioning
State String | "Created" | "Updated" | "Running" | "Completed" | "Failed" | "Succeeded" | "Canceled" - The status of the last operation.
- site
Name String - Site name
- 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.
- Master
Site stringId - Gets the Master Site this site is linked to.
- Name string
- The name of the resource
- Service
Endpoint string - Gets the service endpoint.
- System
Data Pulumi.Azure Native. Off Azure. Outputs. System Data Response - 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.
- Master
Site stringId - Gets the Master Site this site is linked to.
- Name string
- The name of the resource
- Service
Endpoint string - Gets the service endpoint.
- System
Data SystemData Response - 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.
- master
Site StringId - Gets the Master Site this site is linked to.
- name String
- The name of the resource
- service
Endpoint String - Gets the service endpoint.
- system
Data SystemData Response - 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.
- master
Site stringId - Gets the Master Site this site is linked to.
- name string
- The name of the resource
- service
Endpoint string - Gets the service endpoint.
- system
Data SystemData Response - 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_ strid - 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 SystemData Response - 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.
- master
Site StringId - Gets the Master Site this site is linked to.
- name String
- The name of the resource
- service
Endpoint String - Gets the service endpoint.
- system
Data 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.
- Provisioning
State Created - CreatedCreated value.
- Provisioning
State Updated - UpdatedUpdated value.
- Provisioning
State Running - RunningRunning value.
- Provisioning
State Completed - CompletedCompleted value.
- Provisioning
State Failed - FailedFailed value.
- Provisioning
State Succeeded - SucceededSucceeded value.
- Provisioning
State 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.
- "Created"
- CreatedCreated value.
- "Updated"
- UpdatedUpdated value.
- "Running"
- RunningRunning value.
- "Completed"
- CompletedCompleted value.
- "Failed"
- FailedFailed value.
- "Succeeded"
- SucceededSucceeded value.
- "Canceled"
- CanceledCanceled value.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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