1. Packages
  2. Azure Native
  3. API Docs
  4. workloads
  5. Connector
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.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.workloads.Connector

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.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Define the connector resource. Azure REST API version: 2023-10-01-preview.

    Example Usage

    Create a connector resource.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var connector = new AzureNative.Workloads.Connector("connector", new()
        {
            ConnectorName = "C1",
            Location = "westcentralus",
            ResourceGroupName = "test-rg",
            SourceResourceId = "/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workloads.NewConnector(ctx, "connector", &workloads.ConnectorArgs{
    			ConnectorName:     pulumi.String("C1"),
    			Location:          pulumi.String("westcentralus"),
    			ResourceGroupName: pulumi.String("test-rg"),
    			SourceResourceId:  pulumi.String("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"),
    			Tags:              nil,
    		})
    		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.workloads.Connector;
    import com.pulumi.azurenative.workloads.ConnectorArgs;
    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 connector = new Connector("connector", ConnectorArgs.builder()
                .connectorName("C1")
                .location("westcentralus")
                .resourceGroupName("test-rg")
                .sourceResourceId("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    connector = azure_native.workloads.Connector("connector",
        connector_name="C1",
        location="westcentralus",
        resource_group_name="test-rg",
        source_resource_id="/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const connector = new azure_native.workloads.Connector("connector", {
        connectorName: "C1",
        location: "westcentralus",
        resourceGroupName: "test-rg",
        sourceResourceId: "/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00",
        tags: {},
    });
    
    resources:
      connector:
        type: azure-native:workloads:Connector
        properties:
          connectorName: C1
          location: westcentralus
          resourceGroupName: test-rg
          sourceResourceId: /subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00
          tags: {}
    

    Create Connector Resource

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

    Constructor syntax

    new Connector(name: string, args: ConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def Connector(resource_name: str,
                  args: ConnectorArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Connector(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  source_resource_id: Optional[str] = None,
                  connector_name: Optional[str] = None,
                  identity: Optional[UserAssignedServiceIdentityArgs] = None,
                  location: Optional[str] = None,
                  managed_resource_group_configuration: Optional[ManagedRGConfigurationArgs] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewConnector(ctx *Context, name string, args ConnectorArgs, opts ...ResourceOption) (*Connector, error)
    public Connector(string name, ConnectorArgs args, CustomResourceOptions? opts = null)
    public Connector(String name, ConnectorArgs args)
    public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
    
    type: azure-native:workloads:Connector
    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 ConnectorArgs
    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 ConnectorArgs
    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 ConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectorArgs
    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 exampleconnectorResourceResourceFromWorkloads = new AzureNative.Workloads.Connector("exampleconnectorResourceResourceFromWorkloads", new()
    {
        ResourceGroupName = "string",
        SourceResourceId = "string",
        ConnectorName = "string",
        Identity = new AzureNative.Workloads.Inputs.UserAssignedServiceIdentityArgs
        {
            Type = "string",
            UserAssignedIdentities = new[]
            {
                "string",
            },
        },
        Location = "string",
        ManagedResourceGroupConfiguration = new AzureNative.Workloads.Inputs.ManagedRGConfigurationArgs
        {
            Name = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := workloads.NewConnector(ctx, "exampleconnectorResourceResourceFromWorkloads", &workloads.ConnectorArgs{
    ResourceGroupName: pulumi.String("string"),
    SourceResourceId: pulumi.String("string"),
    ConnectorName: pulumi.String("string"),
    Identity: &workloads.UserAssignedServiceIdentityArgs{
    Type: pulumi.String("string"),
    UserAssignedIdentities: pulumi.StringArray{
    pulumi.String("string"),
    },
    },
    Location: pulumi.String("string"),
    ManagedResourceGroupConfiguration: &workloads.ManagedRGConfigurationArgs{
    Name: pulumi.String("string"),
    },
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var exampleconnectorResourceResourceFromWorkloads = new Connector("exampleconnectorResourceResourceFromWorkloads", ConnectorArgs.builder()
        .resourceGroupName("string")
        .sourceResourceId("string")
        .connectorName("string")
        .identity(UserAssignedServiceIdentityArgs.builder()
            .type("string")
            .userAssignedIdentities("string")
            .build())
        .location("string")
        .managedResourceGroupConfiguration(ManagedRGConfigurationArgs.builder()
            .name("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    exampleconnector_resource_resource_from_workloads = azure_native.workloads.Connector("exampleconnectorResourceResourceFromWorkloads",
        resource_group_name="string",
        source_resource_id="string",
        connector_name="string",
        identity=azure_native.workloads.UserAssignedServiceIdentityArgs(
            type="string",
            user_assigned_identities=["string"],
        ),
        location="string",
        managed_resource_group_configuration=azure_native.workloads.ManagedRGConfigurationArgs(
            name="string",
        ),
        tags={
            "string": "string",
        })
    
    const exampleconnectorResourceResourceFromWorkloads = new azure_native.workloads.Connector("exampleconnectorResourceResourceFromWorkloads", {
        resourceGroupName: "string",
        sourceResourceId: "string",
        connectorName: "string",
        identity: {
            type: "string",
            userAssignedIdentities: ["string"],
        },
        location: "string",
        managedResourceGroupConfiguration: {
            name: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:workloads:Connector
    properties:
        connectorName: string
        identity:
            type: string
            userAssignedIdentities:
                - string
        location: string
        managedResourceGroupConfiguration:
            name: string
        resourceGroupName: string
        sourceResourceId: string
        tags:
            string: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceResourceId string
    Defines the ID of the connector's source resource.
    ConnectorName string
    The name of the connector resource
    Identity Pulumi.AzureNative.Workloads.Inputs.UserAssignedServiceIdentity
    Managed service identity (user assigned identities)
    Location string
    The geo-location where the resource lives
    ManagedResourceGroupConfiguration Pulumi.AzureNative.Workloads.Inputs.ManagedRGConfiguration
    Managed resource group configuration
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceResourceId string
    Defines the ID of the connector's source resource.
    ConnectorName string
    The name of the connector resource
    Identity UserAssignedServiceIdentityArgs
    Managed service identity (user assigned identities)
    Location string
    The geo-location where the resource lives
    ManagedResourceGroupConfiguration ManagedRGConfigurationArgs
    Managed resource group configuration
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceResourceId String
    Defines the ID of the connector's source resource.
    connectorName String
    The name of the connector resource
    identity UserAssignedServiceIdentity
    Managed service identity (user assigned identities)
    location String
    The geo-location where the resource lives
    managedResourceGroupConfiguration ManagedRGConfiguration
    Managed resource group configuration
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sourceResourceId string
    Defines the ID of the connector's source resource.
    connectorName string
    The name of the connector resource
    identity UserAssignedServiceIdentity
    Managed service identity (user assigned identities)
    location string
    The geo-location where the resource lives
    managedResourceGroupConfiguration ManagedRGConfiguration
    Managed resource group configuration
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    source_resource_id str
    Defines the ID of the connector's source resource.
    connector_name str
    The name of the connector resource
    identity UserAssignedServiceIdentityArgs
    Managed service identity (user assigned identities)
    location str
    The geo-location where the resource lives
    managed_resource_group_configuration ManagedRGConfigurationArgs
    Managed resource group configuration
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceResourceId String
    Defines the ID of the connector's source resource.
    connectorName String
    The name of the connector resource
    identity Property Map
    Managed service identity (user assigned identities)
    location String
    The geo-location where the resource lives
    managedResourceGroupConfiguration Property Map
    Managed resource group configuration
    tags Map<String>
    Resource tags.

    Outputs

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

    Errors Pulumi.AzureNative.Workloads.Outputs.ConnectorErrorDefinitionResponse
    Indicates any errors on the connector resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Defines the provisioning states.
    SystemData Pulumi.AzureNative.Workloads.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"
    Errors ConnectorErrorDefinitionResponse
    Indicates any errors on the connector resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Defines the provisioning states.
    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"
    errors ConnectorErrorDefinitionResponse
    Indicates any errors on the connector resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Defines the provisioning states.
    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"
    errors ConnectorErrorDefinitionResponse
    Indicates any errors on the connector resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Defines the provisioning states.
    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"
    errors ConnectorErrorDefinitionResponse
    Indicates any errors on the connector resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Defines the provisioning states.
    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"
    errors Property Map
    Indicates any errors on the connector resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Defines the provisioning states.
    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

    ConnectorErrorDefinitionResponse, ConnectorErrorDefinitionResponseArgs

    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details List<Pulumi.AzureNative.Workloads.Inputs.ConnectorErrorDefinitionResponse>
    Internal error details.
    Message string
    Description of the error.
    Code string
    Service specific error code which serves as the substatus for the HTTP error code.
    Details []ConnectorErrorDefinitionResponse
    Internal error details.
    Message string
    Description of the error.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<ConnectorErrorDefinitionResponse>
    Internal error details.
    message String
    Description of the error.
    code string
    Service specific error code which serves as the substatus for the HTTP error code.
    details ConnectorErrorDefinitionResponse[]
    Internal error details.
    message string
    Description of the error.
    code str
    Service specific error code which serves as the substatus for the HTTP error code.
    details Sequence[ConnectorErrorDefinitionResponse]
    Internal error details.
    message str
    Description of the error.
    code String
    Service specific error code which serves as the substatus for the HTTP error code.
    details List<Property Map>
    Internal error details.
    message String
    Description of the error.

    ManagedRGConfiguration, ManagedRGConfigurationArgs

    Name string
    Managed resource group name
    Name string
    Managed resource group name
    name String
    Managed resource group name
    name string
    Managed resource group name
    name str
    Managed resource group name
    name String
    Managed resource group name

    ManagedRGConfigurationResponse, ManagedRGConfigurationResponseArgs

    Name string
    Managed resource group name
    Name string
    Managed resource group name
    name String
    Managed resource group name
    name string
    Managed resource group name
    name str
    Managed resource group name
    name String
    Managed resource group name

    ManagedServiceIdentityType, ManagedServiceIdentityTypeArgs

    None
    None
    UserAssigned
    UserAssigned
    ManagedServiceIdentityTypeNone
    None
    ManagedServiceIdentityTypeUserAssigned
    UserAssigned
    None
    None
    UserAssigned
    UserAssigned
    None
    None
    UserAssigned
    UserAssigned
    NONE
    None
    USER_ASSIGNED
    UserAssigned
    "None"
    None
    "UserAssigned"
    UserAssigned

    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.

    UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs

    ClientId string
    The client ID of the assigned identity.
    PrincipalId string
    The principal ID of the assigned identity.
    ClientId string
    The client ID of the assigned identity.
    PrincipalId string
    The principal ID of the assigned identity.
    clientId String
    The client ID of the assigned identity.
    principalId String
    The principal ID of the assigned identity.
    clientId string
    The client ID of the assigned identity.
    principalId string
    The principal ID of the assigned identity.
    client_id str
    The client ID of the assigned identity.
    principal_id str
    The principal ID of the assigned identity.
    clientId String
    The client ID of the assigned identity.
    principalId String
    The principal ID of the assigned identity.

    UserAssignedServiceIdentity, UserAssignedServiceIdentityArgs

    Type string | Pulumi.AzureNative.Workloads.ManagedServiceIdentityType
    Type of manage identity
    UserAssignedIdentities List<string>
    User assigned identities dictionary
    Type string | ManagedServiceIdentityType
    Type of manage identity
    UserAssignedIdentities []string
    User assigned identities dictionary
    type String | ManagedServiceIdentityType
    Type of manage identity
    userAssignedIdentities List<String>
    User assigned identities dictionary
    type string | ManagedServiceIdentityType
    Type of manage identity
    userAssignedIdentities string[]
    User assigned identities dictionary
    type str | ManagedServiceIdentityType
    Type of manage identity
    user_assigned_identities Sequence[str]
    User assigned identities dictionary
    type String | "None" | "UserAssigned"
    Type of manage identity
    userAssignedIdentities List<String>
    User assigned identities dictionary

    UserAssignedServiceIdentityResponse, UserAssignedServiceIdentityResponseArgs

    Type string
    Type of manage identity
    UserAssignedIdentities Dictionary<string, Pulumi.AzureNative.Workloads.Inputs.UserAssignedIdentityResponse>
    User assigned identities dictionary
    Type string
    Type of manage identity
    UserAssignedIdentities map[string]UserAssignedIdentityResponse
    User assigned identities dictionary
    type String
    Type of manage identity
    userAssignedIdentities Map<String,UserAssignedIdentityResponse>
    User assigned identities dictionary
    type string
    Type of manage identity
    userAssignedIdentities {[key: string]: UserAssignedIdentityResponse}
    User assigned identities dictionary
    type str
    Type of manage identity
    user_assigned_identities Mapping[str, UserAssignedIdentityResponse]
    User assigned identities dictionary
    type String
    Type of manage identity
    userAssignedIdentities Map<Property Map>
    User assigned identities dictionary

    Import

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

    $ pulumi import azure-native:workloads:Connector C1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/connectors/{connectorName} 
    

    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.47.1 published on Monday, Jun 24, 2024 by Pulumi