1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkSecurityPerimeterLink
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.network.NetworkSecurityPerimeterLink

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

The network security perimeter link resource

Uses Azure REST API version 2024-06-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-06-01-preview.

Example Usage

NspLinksPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var networkSecurityPerimeterLink = new AzureNative.Network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLink", new()
    {
        AutoApprovedRemotePerimeterResourceId = "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
        LinkName = "link1",
        LocalInboundProfiles = new[]
        {
            "*",
        },
        NetworkSecurityPerimeterName = "nsp1",
        RemoteInboundProfiles = new[]
        {
            "*",
        },
        ResourceGroupName = "rg1",
    });

});
Copy
package main

import (
	network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewNetworkSecurityPerimeterLink(ctx, "networkSecurityPerimeterLink", &network.NetworkSecurityPerimeterLinkArgs{
			AutoApprovedRemotePerimeterResourceId: pulumi.String("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2"),
			LinkName:                              pulumi.String("link1"),
			LocalInboundProfiles: pulumi.StringArray{
				pulumi.String("*"),
			},
			NetworkSecurityPerimeterName: pulumi.String("nsp1"),
			RemoteInboundProfiles: pulumi.StringArray{
				pulumi.String("*"),
			},
			ResourceGroupName: pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.NetworkSecurityPerimeterLink;
import com.pulumi.azurenative.network.NetworkSecurityPerimeterLinkArgs;
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 networkSecurityPerimeterLink = new NetworkSecurityPerimeterLink("networkSecurityPerimeterLink", NetworkSecurityPerimeterLinkArgs.builder()
            .autoApprovedRemotePerimeterResourceId("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2")
            .linkName("link1")
            .localInboundProfiles("*")
            .networkSecurityPerimeterName("nsp1")
            .remoteInboundProfiles("*")
            .resourceGroupName("rg1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const networkSecurityPerimeterLink = new azure_native.network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLink", {
    autoApprovedRemotePerimeterResourceId: "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
    linkName: "link1",
    localInboundProfiles: ["*"],
    networkSecurityPerimeterName: "nsp1",
    remoteInboundProfiles: ["*"],
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

network_security_perimeter_link = azure_native.network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLink",
    auto_approved_remote_perimeter_resource_id="/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2",
    link_name="link1",
    local_inbound_profiles=["*"],
    network_security_perimeter_name="nsp1",
    remote_inbound_profiles=["*"],
    resource_group_name="rg1")
Copy
resources:
  networkSecurityPerimeterLink:
    type: azure-native:network:NetworkSecurityPerimeterLink
    properties:
      autoApprovedRemotePerimeterResourceId: /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp2
      linkName: link1
      localInboundProfiles:
        - '*'
      networkSecurityPerimeterName: nsp1
      remoteInboundProfiles:
        - '*'
      resourceGroupName: rg1
Copy

Create NetworkSecurityPerimeterLink Resource

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

Constructor syntax

new NetworkSecurityPerimeterLink(name: string, args: NetworkSecurityPerimeterLinkArgs, opts?: CustomResourceOptions);
@overload
def NetworkSecurityPerimeterLink(resource_name: str,
                                 args: NetworkSecurityPerimeterLinkArgs,
                                 opts: Optional[ResourceOptions] = None)

@overload
def NetworkSecurityPerimeterLink(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 network_security_perimeter_name: Optional[str] = None,
                                 resource_group_name: Optional[str] = None,
                                 auto_approved_remote_perimeter_resource_id: Optional[str] = None,
                                 description: Optional[str] = None,
                                 link_name: Optional[str] = None,
                                 local_inbound_profiles: Optional[Sequence[str]] = None,
                                 remote_inbound_profiles: Optional[Sequence[str]] = None)
func NewNetworkSecurityPerimeterLink(ctx *Context, name string, args NetworkSecurityPerimeterLinkArgs, opts ...ResourceOption) (*NetworkSecurityPerimeterLink, error)
public NetworkSecurityPerimeterLink(string name, NetworkSecurityPerimeterLinkArgs args, CustomResourceOptions? opts = null)
public NetworkSecurityPerimeterLink(String name, NetworkSecurityPerimeterLinkArgs args)
public NetworkSecurityPerimeterLink(String name, NetworkSecurityPerimeterLinkArgs args, CustomResourceOptions options)
type: azure-native:network:NetworkSecurityPerimeterLink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NetworkSecurityPerimeterLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NetworkSecurityPerimeterLinkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkSecurityPerimeterLinkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkSecurityPerimeterLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NetworkSecurityPerimeterLinkArgs
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 networkSecurityPerimeterLinkResource = new AzureNative.Network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLinkResource", new()
{
    NetworkSecurityPerimeterName = "string",
    ResourceGroupName = "string",
    AutoApprovedRemotePerimeterResourceId = "string",
    Description = "string",
    LinkName = "string",
    LocalInboundProfiles = new[]
    {
        "string",
    },
    RemoteInboundProfiles = new[]
    {
        "string",
    },
});
Copy
example, err := network.NewNetworkSecurityPerimeterLink(ctx, "networkSecurityPerimeterLinkResource", &network.NetworkSecurityPerimeterLinkArgs{
	NetworkSecurityPerimeterName:          pulumi.String("string"),
	ResourceGroupName:                     pulumi.String("string"),
	AutoApprovedRemotePerimeterResourceId: pulumi.String("string"),
	Description:                           pulumi.String("string"),
	LinkName:                              pulumi.String("string"),
	LocalInboundProfiles: pulumi.StringArray{
		pulumi.String("string"),
	},
	RemoteInboundProfiles: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var networkSecurityPerimeterLinkResource = new NetworkSecurityPerimeterLink("networkSecurityPerimeterLinkResource", NetworkSecurityPerimeterLinkArgs.builder()
    .networkSecurityPerimeterName("string")
    .resourceGroupName("string")
    .autoApprovedRemotePerimeterResourceId("string")
    .description("string")
    .linkName("string")
    .localInboundProfiles("string")
    .remoteInboundProfiles("string")
    .build());
Copy
network_security_perimeter_link_resource = azure_native.network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLinkResource",
    network_security_perimeter_name="string",
    resource_group_name="string",
    auto_approved_remote_perimeter_resource_id="string",
    description="string",
    link_name="string",
    local_inbound_profiles=["string"],
    remote_inbound_profiles=["string"])
Copy
const networkSecurityPerimeterLinkResource = new azure_native.network.NetworkSecurityPerimeterLink("networkSecurityPerimeterLinkResource", {
    networkSecurityPerimeterName: "string",
    resourceGroupName: "string",
    autoApprovedRemotePerimeterResourceId: "string",
    description: "string",
    linkName: "string",
    localInboundProfiles: ["string"],
    remoteInboundProfiles: ["string"],
});
Copy
type: azure-native:network:NetworkSecurityPerimeterLink
properties:
    autoApprovedRemotePerimeterResourceId: string
    description: string
    linkName: string
    localInboundProfiles:
        - string
    networkSecurityPerimeterName: string
    remoteInboundProfiles:
        - string
    resourceGroupName: string
Copy

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

NetworkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
AutoApprovedRemotePerimeterResourceId Changes to this property will trigger replacement. string
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
Description string
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
LinkName Changes to this property will trigger replacement. string
The name of the NSP link.
LocalInboundProfiles List<string>
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
RemoteInboundProfiles List<string>
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
NetworkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
AutoApprovedRemotePerimeterResourceId Changes to this property will trigger replacement. string
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
Description string
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
LinkName Changes to this property will trigger replacement. string
The name of the NSP link.
LocalInboundProfiles []string
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
RemoteInboundProfiles []string
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network security perimeter.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
autoApprovedRemotePerimeterResourceId Changes to this property will trigger replacement. String
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
description String
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
linkName Changes to this property will trigger replacement. String
The name of the NSP link.
localInboundProfiles List<String>
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
remoteInboundProfiles List<String>
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network security perimeter.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
autoApprovedRemotePerimeterResourceId Changes to this property will trigger replacement. string
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
description string
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
linkName Changes to this property will trigger replacement. string
The name of the NSP link.
localInboundProfiles string[]
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
remoteInboundProfiles string[]
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
network_security_perimeter_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network security perimeter.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
auto_approved_remote_perimeter_resource_id Changes to this property will trigger replacement. str
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
description str
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
link_name Changes to this property will trigger replacement. str
The name of the NSP link.
local_inbound_profiles Sequence[str]
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
remote_inbound_profiles Sequence[str]
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.
networkSecurityPerimeterName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network security perimeter.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
autoApprovedRemotePerimeterResourceId Changes to this property will trigger replacement. String
Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It should be used when the NSP admin have Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP resource.
description String
A message passed to the owner of the remote NSP link resource with this connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.
linkName Changes to this property will trigger replacement. String
The name of the NSP link.
localInboundProfiles List<String>
Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles.
remoteInboundProfiles List<String>
Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval mode.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
The provider-assigned unique ID for this managed resource.
LocalOutboundProfiles List<string>
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
Name string
Resource name.
ProvisioningState string
The provisioning state of the NSP Link resource.
RemoteOutboundProfiles List<string>
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
RemotePerimeterGuid string
Remote NSP Guid with which the link gets created.
RemotePerimeterLocation string
Remote NSP location with which the link gets created.
Status string
The NSP link state.
Type string
Resource type.
AzureApiVersion string
The Azure API version of the resource.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
The provider-assigned unique ID for this managed resource.
LocalOutboundProfiles []string
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
Name string
Resource name.
ProvisioningState string
The provisioning state of the NSP Link resource.
RemoteOutboundProfiles []string
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
RemotePerimeterGuid string
Remote NSP Guid with which the link gets created.
RemotePerimeterLocation string
Remote NSP location with which the link gets created.
Status string
The NSP link state.
Type string
Resource type.
azureApiVersion String
The Azure API version of the resource.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
The provider-assigned unique ID for this managed resource.
localOutboundProfiles List<String>
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
name String
Resource name.
provisioningState String
The provisioning state of the NSP Link resource.
remoteOutboundProfiles List<String>
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
remotePerimeterGuid String
Remote NSP Guid with which the link gets created.
remotePerimeterLocation String
Remote NSP location with which the link gets created.
status String
The NSP link state.
type String
Resource type.
azureApiVersion string
The Azure API version of the resource.
etag string
A unique read-only string that changes whenever the resource is updated.
id string
The provider-assigned unique ID for this managed resource.
localOutboundProfiles string[]
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
name string
Resource name.
provisioningState string
The provisioning state of the NSP Link resource.
remoteOutboundProfiles string[]
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
remotePerimeterGuid string
Remote NSP Guid with which the link gets created.
remotePerimeterLocation string
Remote NSP location with which the link gets created.
status string
The NSP link state.
type string
Resource type.
azure_api_version str
The Azure API version of the resource.
etag str
A unique read-only string that changes whenever the resource is updated.
id str
The provider-assigned unique ID for this managed resource.
local_outbound_profiles Sequence[str]
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
name str
Resource name.
provisioning_state str
The provisioning state of the NSP Link resource.
remote_outbound_profiles Sequence[str]
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
remote_perimeter_guid str
Remote NSP Guid with which the link gets created.
remote_perimeter_location str
Remote NSP location with which the link gets created.
status str
The NSP link state.
type str
Resource type.
azureApiVersion String
The Azure API version of the resource.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
The provider-assigned unique ID for this managed resource.
localOutboundProfiles List<String>
Local Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
name String
Resource name.
provisioningState String
The provisioning state of the NSP Link resource.
remoteOutboundProfiles List<String>
Remote Outbound profile names from which Outbound is allowed. In current version, it is readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later version, user will be able to modify it.
remotePerimeterGuid String
Remote NSP Guid with which the link gets created.
remotePerimeterLocation String
Remote NSP location with which the link gets created.
status String
The NSP link state.
type String
Resource type.

Import

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

$ pulumi import azure-native:network:NetworkSecurityPerimeterLink link1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi