1. Packages
  2. Azure Native
  3. API Docs
  4. managednetworkfabric
  5. NeighborGroup
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.managednetworkfabric.NeighborGroup

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Defines the Neighbor Group. Azure REST API version: 2023-06-15.

    Example Usage

    NeighborGroups_Create_MaximumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var neighborGroup = new AzureNative.ManagedNetworkFabric.NeighborGroup("neighborGroup", new()
        {
            Annotation = "annotation",
            Destination = new AzureNative.ManagedNetworkFabric.Inputs.NeighborGroupDestinationArgs
            {
                Ipv4Addresses = new[]
                {
                    "10.10.10.10",
                    "20.10.10.10",
                    "30.10.10.10",
                    "40.10.10.10",
                    "50.10.10.10",
                    "60.10.10.10",
                    "70.10.10.10",
                    "80.10.10.10",
                    "90.10.10.10",
                },
                Ipv6Addresses = new[]
                {
                    "2F::/100",
                },
            },
            Location = "eastus",
            NeighborGroupName = "example-neighborGroup",
            ResourceGroupName = "example-rg",
            Tags = 
            {
                { "key8107", "1234" },
            },
        });
    
    });
    
    package main
    
    import (
    	managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := managednetworkfabric.NewNeighborGroup(ctx, "neighborGroup", &managednetworkfabric.NeighborGroupArgs{
    			Annotation: pulumi.String("annotation"),
    			Destination: &managednetworkfabric.NeighborGroupDestinationArgs{
    				Ipv4Addresses: pulumi.StringArray{
    					pulumi.String("10.10.10.10"),
    					pulumi.String("20.10.10.10"),
    					pulumi.String("30.10.10.10"),
    					pulumi.String("40.10.10.10"),
    					pulumi.String("50.10.10.10"),
    					pulumi.String("60.10.10.10"),
    					pulumi.String("70.10.10.10"),
    					pulumi.String("80.10.10.10"),
    					pulumi.String("90.10.10.10"),
    				},
    				Ipv6Addresses: pulumi.StringArray{
    					pulumi.String("2F::/100"),
    				},
    			},
    			Location:          pulumi.String("eastus"),
    			NeighborGroupName: pulumi.String("example-neighborGroup"),
    			ResourceGroupName: pulumi.String("example-rg"),
    			Tags: pulumi.StringMap{
    				"key8107": pulumi.String("1234"),
    			},
    		})
    		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.managednetworkfabric.NeighborGroup;
    import com.pulumi.azurenative.managednetworkfabric.NeighborGroupArgs;
    import com.pulumi.azurenative.managednetworkfabric.inputs.NeighborGroupDestinationArgs;
    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 neighborGroup = new NeighborGroup("neighborGroup", NeighborGroupArgs.builder()
                .annotation("annotation")
                .destination(NeighborGroupDestinationArgs.builder()
                    .ipv4Addresses(                
                        "10.10.10.10",
                        "20.10.10.10",
                        "30.10.10.10",
                        "40.10.10.10",
                        "50.10.10.10",
                        "60.10.10.10",
                        "70.10.10.10",
                        "80.10.10.10",
                        "90.10.10.10")
                    .ipv6Addresses("2F::/100")
                    .build())
                .location("eastus")
                .neighborGroupName("example-neighborGroup")
                .resourceGroupName("example-rg")
                .tags(Map.of("key8107", "1234"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    neighbor_group = azure_native.managednetworkfabric.NeighborGroup("neighborGroup",
        annotation="annotation",
        destination={
            "ipv4_addresses": [
                "10.10.10.10",
                "20.10.10.10",
                "30.10.10.10",
                "40.10.10.10",
                "50.10.10.10",
                "60.10.10.10",
                "70.10.10.10",
                "80.10.10.10",
                "90.10.10.10",
            ],
            "ipv6_addresses": ["2F::/100"],
        },
        location="eastus",
        neighbor_group_name="example-neighborGroup",
        resource_group_name="example-rg",
        tags={
            "key8107": "1234",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const neighborGroup = new azure_native.managednetworkfabric.NeighborGroup("neighborGroup", {
        annotation: "annotation",
        destination: {
            ipv4Addresses: [
                "10.10.10.10",
                "20.10.10.10",
                "30.10.10.10",
                "40.10.10.10",
                "50.10.10.10",
                "60.10.10.10",
                "70.10.10.10",
                "80.10.10.10",
                "90.10.10.10",
            ],
            ipv6Addresses: ["2F::/100"],
        },
        location: "eastus",
        neighborGroupName: "example-neighborGroup",
        resourceGroupName: "example-rg",
        tags: {
            key8107: "1234",
        },
    });
    
    resources:
      neighborGroup:
        type: azure-native:managednetworkfabric:NeighborGroup
        properties:
          annotation: annotation
          destination:
            ipv4Addresses:
              - 10.10.10.10
              - 20.10.10.10
              - 30.10.10.10
              - 40.10.10.10
              - 50.10.10.10
              - 60.10.10.10
              - 70.10.10.10
              - 80.10.10.10
              - 90.10.10.10
            ipv6Addresses:
              - 2F::/100
          location: eastus
          neighborGroupName: example-neighborGroup
          resourceGroupName: example-rg
          tags:
            key8107: '1234'
    

    Create NeighborGroup Resource

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

    Constructor syntax

    new NeighborGroup(name: string, args: NeighborGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NeighborGroup(resource_name: str,
                      args: NeighborGroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def NeighborGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      destination: Optional[NeighborGroupDestinationArgs] = None,
                      resource_group_name: Optional[str] = None,
                      annotation: Optional[str] = None,
                      location: Optional[str] = None,
                      neighbor_group_name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewNeighborGroup(ctx *Context, name string, args NeighborGroupArgs, opts ...ResourceOption) (*NeighborGroup, error)
    public NeighborGroup(string name, NeighborGroupArgs args, CustomResourceOptions? opts = null)
    public NeighborGroup(String name, NeighborGroupArgs args)
    public NeighborGroup(String name, NeighborGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:managednetworkfabric:NeighborGroup
    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 NeighborGroupArgs
    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 NeighborGroupArgs
    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 NeighborGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NeighborGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NeighborGroupArgs
    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 neighborGroupResource = new AzureNative.ManagedNetworkFabric.NeighborGroup("neighborGroupResource", new()
    {
        Destination = new AzureNative.ManagedNetworkFabric.Inputs.NeighborGroupDestinationArgs
        {
            Ipv4Addresses = new[]
            {
                "string",
            },
            Ipv6Addresses = new[]
            {
                "string",
            },
        },
        ResourceGroupName = "string",
        Annotation = "string",
        Location = "string",
        NeighborGroupName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := managednetworkfabric.NewNeighborGroup(ctx, "neighborGroupResource", &managednetworkfabric.NeighborGroupArgs{
    	Destination: &managednetworkfabric.NeighborGroupDestinationArgs{
    		Ipv4Addresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Ipv6Addresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ResourceGroupName: pulumi.String("string"),
    	Annotation:        pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	NeighborGroupName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var neighborGroupResource = new NeighborGroup("neighborGroupResource", NeighborGroupArgs.builder()
        .destination(NeighborGroupDestinationArgs.builder()
            .ipv4Addresses("string")
            .ipv6Addresses("string")
            .build())
        .resourceGroupName("string")
        .annotation("string")
        .location("string")
        .neighborGroupName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    neighbor_group_resource = azure_native.managednetworkfabric.NeighborGroup("neighborGroupResource",
        destination={
            "ipv4_addresses": ["string"],
            "ipv6_addresses": ["string"],
        },
        resource_group_name="string",
        annotation="string",
        location="string",
        neighbor_group_name="string",
        tags={
            "string": "string",
        })
    
    const neighborGroupResource = new azure_native.managednetworkfabric.NeighborGroup("neighborGroupResource", {
        destination: {
            ipv4Addresses: ["string"],
            ipv6Addresses: ["string"],
        },
        resourceGroupName: "string",
        annotation: "string",
        location: "string",
        neighborGroupName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:managednetworkfabric:NeighborGroup
    properties:
        annotation: string
        destination:
            ipv4Addresses:
                - string
            ipv6Addresses:
                - string
        location: string
        neighborGroupName: string
        resourceGroupName: string
        tags:
            string: string
    

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

    Destination Pulumi.AzureNative.ManagedNetworkFabric.Inputs.NeighborGroupDestination
    An array of destination IPv4 Addresses or IPv6 Addresses.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Annotation string
    Switch configuration description.
    Location string
    The geo-location where the resource lives
    NeighborGroupName string
    Name of the Neighbor Group.
    Tags Dictionary<string, string>
    Resource tags.
    Destination NeighborGroupDestinationArgs
    An array of destination IPv4 Addresses or IPv6 Addresses.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Annotation string
    Switch configuration description.
    Location string
    The geo-location where the resource lives
    NeighborGroupName string
    Name of the Neighbor Group.
    Tags map[string]string
    Resource tags.
    destination NeighborGroupDestination
    An array of destination IPv4 Addresses or IPv6 Addresses.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    annotation String
    Switch configuration description.
    location String
    The geo-location where the resource lives
    neighborGroupName String
    Name of the Neighbor Group.
    tags Map<String,String>
    Resource tags.
    destination NeighborGroupDestination
    An array of destination IPv4 Addresses or IPv6 Addresses.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    annotation string
    Switch configuration description.
    location string
    The geo-location where the resource lives
    neighborGroupName string
    Name of the Neighbor Group.
    tags {[key: string]: string}
    Resource tags.
    destination NeighborGroupDestinationArgs
    An array of destination IPv4 Addresses or IPv6 Addresses.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    annotation str
    Switch configuration description.
    location str
    The geo-location where the resource lives
    neighbor_group_name str
    Name of the Neighbor Group.
    tags Mapping[str, str]
    Resource tags.
    destination Property Map
    An array of destination IPv4 Addresses or IPv6 Addresses.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    annotation String
    Switch configuration description.
    location String
    The geo-location where the resource lives
    neighborGroupName String
    Name of the Neighbor Group.
    tags Map<String>
    Resource tags.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    NetworkTapIds List<string>
    List of NetworkTap IDs where neighbor group is associated.
    NetworkTapRuleIds List<string>
    List of Network Tap Rule IDs where neighbor group is associated.
    ProvisioningState string
    The provisioning state of the resource.
    SystemData Pulumi.AzureNative.ManagedNetworkFabric.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.
    Name string
    The name of the resource
    NetworkTapIds []string
    List of NetworkTap IDs where neighbor group is associated.
    NetworkTapRuleIds []string
    List of Network Tap Rule IDs where neighbor group is associated.
    ProvisioningState string
    The provisioning state of the resource.
    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.
    name String
    The name of the resource
    networkTapIds List<String>
    List of NetworkTap IDs where neighbor group is associated.
    networkTapRuleIds List<String>
    List of Network Tap Rule IDs where neighbor group is associated.
    provisioningState String
    The provisioning state of the resource.
    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.
    name string
    The name of the resource
    networkTapIds string[]
    List of NetworkTap IDs where neighbor group is associated.
    networkTapRuleIds string[]
    List of Network Tap Rule IDs where neighbor group is associated.
    provisioningState string
    The provisioning state of the resource.
    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.
    name str
    The name of the resource
    network_tap_ids Sequence[str]
    List of NetworkTap IDs where neighbor group is associated.
    network_tap_rule_ids Sequence[str]
    List of Network Tap Rule IDs where neighbor group is associated.
    provisioning_state str
    The provisioning state of the resource.
    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.
    name String
    The name of the resource
    networkTapIds List<String>
    List of NetworkTap IDs where neighbor group is associated.
    networkTapRuleIds List<String>
    List of Network Tap Rule IDs where neighbor group is associated.
    provisioningState String
    The provisioning state of the 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

    NeighborGroupDestination, NeighborGroupDestinationArgs

    Ipv4Addresses List<string>
    Array of IPv4 Addresses.
    Ipv6Addresses List<string>
    Array of IPv6 Addresses.
    Ipv4Addresses []string
    Array of IPv4 Addresses.
    Ipv6Addresses []string
    Array of IPv6 Addresses.
    ipv4Addresses List<String>
    Array of IPv4 Addresses.
    ipv6Addresses List<String>
    Array of IPv6 Addresses.
    ipv4Addresses string[]
    Array of IPv4 Addresses.
    ipv6Addresses string[]
    Array of IPv6 Addresses.
    ipv4_addresses Sequence[str]
    Array of IPv4 Addresses.
    ipv6_addresses Sequence[str]
    Array of IPv6 Addresses.
    ipv4Addresses List<String>
    Array of IPv4 Addresses.
    ipv6Addresses List<String>
    Array of IPv6 Addresses.

    NeighborGroupDestinationResponse, NeighborGroupDestinationResponseArgs

    Ipv4Addresses List<string>
    Array of IPv4 Addresses.
    Ipv6Addresses List<string>
    Array of IPv6 Addresses.
    Ipv4Addresses []string
    Array of IPv4 Addresses.
    Ipv6Addresses []string
    Array of IPv6 Addresses.
    ipv4Addresses List<String>
    Array of IPv4 Addresses.
    ipv6Addresses List<String>
    Array of IPv6 Addresses.
    ipv4Addresses string[]
    Array of IPv4 Addresses.
    ipv6Addresses string[]
    Array of IPv6 Addresses.
    ipv4_addresses Sequence[str]
    Array of IPv4 Addresses.
    ipv6_addresses Sequence[str]
    Array of IPv6 Addresses.
    ipv4Addresses List<String>
    Array of IPv4 Addresses.
    ipv6Addresses List<String>
    Array of IPv6 Addresses.

    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:managednetworkfabric:NeighborGroup example-neighborGroup /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName} 
    

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi