azure-native.migrate.ImportSqlCollectorOperation
Explore with Pulumi AI
Import SQL Collector REST resource.
Uses Azure REST API version 2024-03-03-preview.
Example Usage
ImportSqlCollectorOperations_Create_MaximumSet
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var importSqlCollectorOperation = new AzureNative.Migrate.ImportSqlCollectorOperation("importSqlCollectorOperation", new()
{
ImportSqlCollectorsName = "importCollector",
ProjectName = "contosoProject",
Properties = new AzureNative.Migrate.Inputs.ImportSqlCollectorPropertiesArgs
{
DiscoverySiteId = "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
},
ResourceGroupName = "rgsqlAssessments",
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewImportSqlCollectorOperation(ctx, "importSqlCollectorOperation", &migrate.ImportSqlCollectorOperationArgs{
ImportSqlCollectorsName: pulumi.String("importCollector"),
ProjectName: pulumi.String("contosoProject"),
Properties: &migrate.ImportSqlCollectorPropertiesArgs{
DiscoverySiteId: pulumi.String("/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites"),
},
ResourceGroupName: pulumi.String("rgsqlAssessments"),
})
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.migrate.ImportSqlCollectorOperation;
import com.pulumi.azurenative.migrate.ImportSqlCollectorOperationArgs;
import com.pulumi.azurenative.migrate.inputs.ImportSqlCollectorPropertiesArgs;
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 importSqlCollectorOperation = new ImportSqlCollectorOperation("importSqlCollectorOperation", ImportSqlCollectorOperationArgs.builder()
.importSqlCollectorsName("importCollector")
.projectName("contosoProject")
.properties(ImportSqlCollectorPropertiesArgs.builder()
.discoverySiteId("/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites")
.build())
.resourceGroupName("rgsqlAssessments")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const importSqlCollectorOperation = new azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperation", {
importSqlCollectorsName: "importCollector",
projectName: "contosoProject",
properties: {
discoverySiteId: "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
},
resourceGroupName: "rgsqlAssessments",
});
import pulumi
import pulumi_azure_native as azure_native
import_sql_collector_operation = azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperation",
import_sql_collectors_name="importCollector",
project_name="contosoProject",
properties={
"discovery_site_id": "/subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites",
},
resource_group_name="rgsqlAssessments")
resources:
importSqlCollectorOperation:
type: azure-native:migrate:ImportSqlCollectorOperation
properties:
importSqlCollectorsName: importCollector
projectName: contosoProject
properties:
discoverySiteId: /subscriptions/C1DB66AE-BCF9-42FD-ADC2-390E0721C351/resourceGroups/rgsqlAssessments/providers/Microsoft.OffAzure/MasterSites/testproject8566mastersite/SqlSites/testproject8566sqlsites
resourceGroupName: rgsqlAssessments
Create ImportSqlCollectorOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImportSqlCollectorOperation(name: string, args: ImportSqlCollectorOperationArgs, opts?: CustomResourceOptions);
@overload
def ImportSqlCollectorOperation(resource_name: str,
args: ImportSqlCollectorOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ImportSqlCollectorOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
import_sql_collectors_name: Optional[str] = None,
properties: Optional[ImportSqlCollectorPropertiesArgs] = None)
func NewImportSqlCollectorOperation(ctx *Context, name string, args ImportSqlCollectorOperationArgs, opts ...ResourceOption) (*ImportSqlCollectorOperation, error)
public ImportSqlCollectorOperation(string name, ImportSqlCollectorOperationArgs args, CustomResourceOptions? opts = null)
public ImportSqlCollectorOperation(String name, ImportSqlCollectorOperationArgs args)
public ImportSqlCollectorOperation(String name, ImportSqlCollectorOperationArgs args, CustomResourceOptions options)
type: azure-native:migrate:ImportSqlCollectorOperation
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 ImportSqlCollectorOperationArgs
- 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 ImportSqlCollectorOperationArgs
- 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 ImportSqlCollectorOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImportSqlCollectorOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImportSqlCollectorOperationArgs
- 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 importSqlCollectorOperationResource = new AzureNative.Migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource", new()
{
ProjectName = "string",
ResourceGroupName = "string",
ImportSqlCollectorsName = "string",
Properties = new AzureNative.Migrate.Inputs.ImportSqlCollectorPropertiesArgs
{
DiscoverySiteId = "string",
},
});
example, err := migrate.NewImportSqlCollectorOperation(ctx, "importSqlCollectorOperationResource", &migrate.ImportSqlCollectorOperationArgs{
ProjectName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ImportSqlCollectorsName: pulumi.String("string"),
Properties: &migrate.ImportSqlCollectorPropertiesArgs{
DiscoverySiteId: pulumi.String("string"),
},
})
var importSqlCollectorOperationResource = new ImportSqlCollectorOperation("importSqlCollectorOperationResource", ImportSqlCollectorOperationArgs.builder()
.projectName("string")
.resourceGroupName("string")
.importSqlCollectorsName("string")
.properties(ImportSqlCollectorPropertiesArgs.builder()
.discoverySiteId("string")
.build())
.build());
import_sql_collector_operation_resource = azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource",
project_name="string",
resource_group_name="string",
import_sql_collectors_name="string",
properties={
"discovery_site_id": "string",
})
const importSqlCollectorOperationResource = new azure_native.migrate.ImportSqlCollectorOperation("importSqlCollectorOperationResource", {
projectName: "string",
resourceGroupName: "string",
importSqlCollectorsName: "string",
properties: {
discoverySiteId: "string",
},
});
type: azure-native:migrate:ImportSqlCollectorOperation
properties:
importSqlCollectorsName: string
projectName: string
properties:
discoverySiteId: string
resourceGroupName: string
ImportSqlCollectorOperation 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 ImportSqlCollectorOperation resource accepts the following input properties:
- Project
Name string - Assessment Project Name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Import
Sql stringCollectors Name - Import SQL Collector arm name.
- Properties
Pulumi.
Azure Native. Migrate. Inputs. Import Sql Collector Properties - The resource-specific properties for this resource.
- Project
Name string - Assessment Project Name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Import
Sql stringCollectors Name - Import SQL Collector arm name.
- Properties
Import
Sql Collector Properties Args - The resource-specific properties for this resource.
- project
Name String - Assessment Project Name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- import
Sql StringCollectors Name - Import SQL Collector arm name.
- properties
Import
Sql Collector Properties - The resource-specific properties for this resource.
- project
Name string - Assessment Project Name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- import
Sql stringCollectors Name - Import SQL Collector arm name.
- properties
Import
Sql Collector Properties - The resource-specific properties for this resource.
- project_
name str - Assessment Project Name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- import_
sql_ strcollectors_ name - Import SQL Collector arm name.
- properties
Import
Sql Collector Properties Args - The resource-specific properties for this resource.
- project
Name String - Assessment Project Name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- import
Sql StringCollectors Name - Import SQL Collector arm name.
- properties Property Map
- The resource-specific properties for this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImportSqlCollectorOperation resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Migrate. 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"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- 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"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- 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"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- 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"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- 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"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- 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
ImportSqlCollectorProperties, ImportSqlCollectorPropertiesArgs
- Discovery
Site stringId - The sql db extended details.
- Discovery
Site stringId - The sql db extended details.
- discovery
Site StringId - The sql db extended details.
- discovery
Site stringId - The sql db extended details.
- discovery_
site_ strid - The sql db extended details.
- discovery
Site StringId - The sql db extended details.
ImportSqlCollectorPropertiesResponse, ImportSqlCollectorPropertiesResponseArgs
- Created
Timestamp string - When was import SQL collector first created.
- Provisioning
State string - The status of the last operation.
- Updated
Timestamp string - When was import SQL collector last updated.
- Discovery
Site stringId - The sql db extended details.
- Created
Timestamp string - When was import SQL collector first created.
- Provisioning
State string - The status of the last operation.
- Updated
Timestamp string - When was import SQL collector last updated.
- Discovery
Site stringId - The sql db extended details.
- created
Timestamp String - When was import SQL collector first created.
- provisioning
State String - The status of the last operation.
- updated
Timestamp String - When was import SQL collector last updated.
- discovery
Site StringId - The sql db extended details.
- created
Timestamp string - When was import SQL collector first created.
- provisioning
State string - The status of the last operation.
- updated
Timestamp string - When was import SQL collector last updated.
- discovery
Site stringId - The sql db extended details.
- created_
timestamp str - When was import SQL collector first created.
- provisioning_
state str - The status of the last operation.
- updated_
timestamp str - When was import SQL collector last updated.
- discovery_
site_ strid - The sql db extended details.
- created
Timestamp String - When was import SQL collector first created.
- provisioning
State String - The status of the last operation.
- updated
Timestamp String - When was import SQL collector last updated.
- discovery
Site StringId - The sql db extended details.
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:migrate:ImportSqlCollectorOperation importCollector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/importSqlCollectors/{importSqlCollectorsName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0