azure-native.servicenetworking.AssociationsInterface
Explore with Pulumi AI
Association Subresource of Traffic Controller Azure REST API version: 2023-05-01-preview. Prior API version in Azure Native 1.x: 2022-10-01-preview.
Other available API versions: 2022-10-01-preview, 2023-11-01, 2024-05-01-preview, 2025-01-01.
Example Usage
Put Association
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var associationsInterface = new AzureNative.ServiceNetworking.AssociationsInterface("associationsInterface", new()
    {
        AssociationName = "as1",
        AssociationType = AzureNative.ServiceNetworking.AssociationType.Subnets,
        Location = "NorthCentralUS",
        ResourceGroupName = "rg1",
        Subnet = new AzureNative.ServiceNetworking.Inputs.AssociationSubnetArgs
        {
            Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
        },
        TrafficControllerName = "tc1",
    });
});
package main
import (
	servicenetworking "github.com/pulumi/pulumi-azure-native-sdk/servicenetworking/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterface", &servicenetworking.AssociationsInterfaceArgs{
			AssociationName:   pulumi.String("as1"),
			AssociationType:   pulumi.String(servicenetworking.AssociationTypeSubnets),
			Location:          pulumi.String("NorthCentralUS"),
			ResourceGroupName: pulumi.String("rg1"),
			Subnet: &servicenetworking.AssociationSubnetArgs{
				Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
			},
			TrafficControllerName: pulumi.String("tc1"),
		})
		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.servicenetworking.AssociationsInterface;
import com.pulumi.azurenative.servicenetworking.AssociationsInterfaceArgs;
import com.pulumi.azurenative.servicenetworking.inputs.AssociationSubnetArgs;
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 associationsInterface = new AssociationsInterface("associationsInterface", AssociationsInterfaceArgs.builder()
            .associationName("as1")
            .associationType("subnets")
            .location("NorthCentralUS")
            .resourceGroupName("rg1")
            .subnet(AssociationSubnetArgs.builder()
                .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet")
                .build())
            .trafficControllerName("tc1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const associationsInterface = new azure_native.servicenetworking.AssociationsInterface("associationsInterface", {
    associationName: "as1",
    associationType: azure_native.servicenetworking.AssociationType.Subnets,
    location: "NorthCentralUS",
    resourceGroupName: "rg1",
    subnet: {
        id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
    },
    trafficControllerName: "tc1",
});
import pulumi
import pulumi_azure_native as azure_native
associations_interface = azure_native.servicenetworking.AssociationsInterface("associationsInterface",
    association_name="as1",
    association_type=azure_native.servicenetworking.AssociationType.SUBNETS,
    location="NorthCentralUS",
    resource_group_name="rg1",
    subnet={
        "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
    },
    traffic_controller_name="tc1")
resources:
  associationsInterface:
    type: azure-native:servicenetworking:AssociationsInterface
    properties:
      associationName: as1
      associationType: subnets
      location: NorthCentralUS
      resourceGroupName: rg1
      subnet:
        id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet
      trafficControllerName: tc1
Create AssociationsInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AssociationsInterface(name: string, args: AssociationsInterfaceArgs, opts?: CustomResourceOptions);@overload
def AssociationsInterface(resource_name: str,
                          args: AssociationsInterfaceArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def AssociationsInterface(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          association_type: Optional[Union[str, AssociationType]] = None,
                          resource_group_name: Optional[str] = None,
                          traffic_controller_name: Optional[str] = None,
                          association_name: Optional[str] = None,
                          location: Optional[str] = None,
                          subnet: Optional[AssociationSubnetArgs] = None,
                          tags: Optional[Mapping[str, str]] = None)func NewAssociationsInterface(ctx *Context, name string, args AssociationsInterfaceArgs, opts ...ResourceOption) (*AssociationsInterface, error)public AssociationsInterface(string name, AssociationsInterfaceArgs args, CustomResourceOptions? opts = null)
public AssociationsInterface(String name, AssociationsInterfaceArgs args)
public AssociationsInterface(String name, AssociationsInterfaceArgs args, CustomResourceOptions options)
type: azure-native:servicenetworking:AssociationsInterface
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 AssociationsInterfaceArgs
- 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 AssociationsInterfaceArgs
- 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 AssociationsInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssociationsInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssociationsInterfaceArgs
- 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 associationsInterfaceResource = new AzureNative.ServiceNetworking.AssociationsInterface("associationsInterfaceResource", new()
{
    AssociationType = "string",
    ResourceGroupName = "string",
    TrafficControllerName = "string",
    AssociationName = "string",
    Location = "string",
    Subnet = new AzureNative.ServiceNetworking.Inputs.AssociationSubnetArgs
    {
        Id = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterfaceResource", &servicenetworking.AssociationsInterfaceArgs{
	AssociationType:       pulumi.String("string"),
	ResourceGroupName:     pulumi.String("string"),
	TrafficControllerName: pulumi.String("string"),
	AssociationName:       pulumi.String("string"),
	Location:              pulumi.String("string"),
	Subnet: &servicenetworking.AssociationSubnetArgs{
		Id: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var associationsInterfaceResource = new AssociationsInterface("associationsInterfaceResource", AssociationsInterfaceArgs.builder()
    .associationType("string")
    .resourceGroupName("string")
    .trafficControllerName("string")
    .associationName("string")
    .location("string")
    .subnet(AssociationSubnetArgs.builder()
        .id("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
associations_interface_resource = azure_native.servicenetworking.AssociationsInterface("associationsInterfaceResource",
    association_type="string",
    resource_group_name="string",
    traffic_controller_name="string",
    association_name="string",
    location="string",
    subnet={
        "id": "string",
    },
    tags={
        "string": "string",
    })
const associationsInterfaceResource = new azure_native.servicenetworking.AssociationsInterface("associationsInterfaceResource", {
    associationType: "string",
    resourceGroupName: "string",
    trafficControllerName: "string",
    associationName: "string",
    location: "string",
    subnet: {
        id: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure-native:servicenetworking:AssociationsInterface
properties:
    associationName: string
    associationType: string
    location: string
    resourceGroupName: string
    subnet:
        id: string
    tags:
        string: string
    trafficControllerName: string
AssociationsInterface 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 AssociationsInterface resource accepts the following input properties:
- AssociationType string | Pulumi.Azure Native. Service Networking. Association Type 
- Association Type
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TrafficController stringName 
- traffic controller name for path
- AssociationName string
- Name of Association
- Location string
- The geo-location where the resource lives
- Subnet
Pulumi.Azure Native. Service Networking. Inputs. Association Subnet 
- Association Subnet
- Dictionary<string, string>
- Resource tags.
- AssociationType string | AssociationType 
- Association Type
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- TrafficController stringName 
- traffic controller name for path
- AssociationName string
- Name of Association
- Location string
- The geo-location where the resource lives
- Subnet
AssociationSubnet Args 
- Association Subnet
- map[string]string
- Resource tags.
- associationType String | AssociationType 
- Association Type
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- trafficController StringName 
- traffic controller name for path
- associationName String
- Name of Association
- location String
- The geo-location where the resource lives
- subnet
AssociationSubnet 
- Association Subnet
- Map<String,String>
- Resource tags.
- associationType string | AssociationType 
- Association Type
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- trafficController stringName 
- traffic controller name for path
- associationName string
- Name of Association
- location string
- The geo-location where the resource lives
- subnet
AssociationSubnet 
- Association Subnet
- {[key: string]: string}
- Resource tags.
- association_type str | AssociationType 
- Association Type
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- traffic_controller_ strname 
- traffic controller name for path
- association_name str
- Name of Association
- location str
- The geo-location where the resource lives
- subnet
AssociationSubnet Args 
- Association Subnet
- Mapping[str, str]
- Resource tags.
- associationType String | "subnets"
- Association Type
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- trafficController StringName 
- traffic controller name for path
- associationName String
- Name of Association
- location String
- The geo-location where the resource lives
- subnet Property Map
- Association Subnet
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AssociationsInterface resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning State of Traffic Controller Association Resource
- SystemData Pulumi.Azure Native. Service Networking. 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.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning State of Traffic Controller Association Resource
- SystemData 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.
- name String
- The name of the resource
- provisioningState String
- Provisioning State of Traffic Controller Association Resource
- systemData 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.
- name string
- The name of the resource
- provisioningState string
- Provisioning State of Traffic Controller Association Resource
- systemData 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.
- name str
- The name of the resource
- provisioning_state str
- Provisioning State of Traffic Controller Association 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Provisioning State of Traffic Controller Association Resource
- 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
AssociationSubnet, AssociationSubnetArgs    
- Id string
- Association ID.
- Id string
- Association ID.
- id String
- Association ID.
- id string
- Association ID.
- id str
- Association ID.
- id String
- Association ID.
AssociationSubnetResponse, AssociationSubnetResponseArgs      
- Id string
- Association ID.
- Id string
- Association ID.
- id String
- Association ID.
- id string
- Association ID.
- id str
- Association ID.
- id String
- Association ID.
AssociationType, AssociationTypeArgs    
- Subnets
- subnets
- AssociationType Subnets 
- subnets
- Subnets
- subnets
- Subnets
- subnets
- SUBNETS
- subnets
- "subnets"
- subnets
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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:servicenetworking:AssociationsInterface associatedvnet-1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0