azure-native.managednetworkfabric.NeighborGroup
Explore with Pulumi AI
Defines the Neighbor Group.
Uses 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 * 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",
    },
});
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",
    })
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.Azure Native. Managed Network Fabric. Inputs. Neighbor Group Destination 
- An array of destination IPv4 Addresses or IPv6 Addresses.
- ResourceGroup stringName 
- 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
- NeighborGroup stringName 
- Name of the Neighbor Group.
- Dictionary<string, string>
- Resource tags.
- Destination
NeighborGroup Destination Args 
- An array of destination IPv4 Addresses or IPv6 Addresses.
- ResourceGroup stringName 
- 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
- NeighborGroup stringName 
- Name of the Neighbor Group.
- map[string]string
- Resource tags.
- destination
NeighborGroup Destination 
- An array of destination IPv4 Addresses or IPv6 Addresses.
- resourceGroup StringName 
- 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
- neighborGroup StringName 
- Name of the Neighbor Group.
- Map<String,String>
- Resource tags.
- destination
NeighborGroup Destination 
- An array of destination IPv4 Addresses or IPv6 Addresses.
- resourceGroup stringName 
- 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
- neighborGroup stringName 
- Name of the Neighbor Group.
- {[key: string]: string}
- Resource tags.
- destination
NeighborGroup Destination Args 
- An array of destination IPv4 Addresses or IPv6 Addresses.
- resource_group_ strname 
- 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_ strname 
- Name of the Neighbor Group.
- Mapping[str, str]
- Resource tags.
- destination Property Map
- An array of destination IPv4 Addresses or IPv6 Addresses.
- resourceGroup StringName 
- 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
- neighborGroup StringName 
- Name of the Neighbor Group.
- 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
- NetworkTap List<string>Ids 
- List of NetworkTap IDs where neighbor group is associated.
- NetworkTap List<string>Rule Ids 
- List of Network Tap Rule IDs where neighbor group is associated.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData Pulumi.Azure Native. Managed Network Fabric. 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
- NetworkTap []stringIds 
- List of NetworkTap IDs where neighbor group is associated.
- NetworkTap []stringRule Ids 
- List of Network Tap Rule IDs where neighbor group is associated.
- ProvisioningState string
- The provisioning state of the 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
- networkTap List<String>Ids 
- List of NetworkTap IDs where neighbor group is associated.
- networkTap List<String>Rule Ids 
- List of Network Tap Rule IDs where neighbor group is associated.
- provisioningState String
- The provisioning state of the 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
- networkTap string[]Ids 
- List of NetworkTap IDs where neighbor group is associated.
- networkTap string[]Rule Ids 
- List of Network Tap Rule IDs where neighbor group is associated.
- provisioningState string
- The provisioning state of the 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
- network_tap_ Sequence[str]ids 
- List of NetworkTap IDs where neighbor group is associated.
- network_tap_ Sequence[str]rule_ ids 
- List of Network Tap Rule IDs where neighbor group is associated.
- provisioning_state str
- The provisioning state 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- networkTap List<String>Ids 
- List of NetworkTap IDs where neighbor group is associated.
- networkTap List<String>Rule Ids 
- 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.
- 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: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