Network Security Perimeter Link
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",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"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
})
}
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());
}
}
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}
Properties
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.
The Azure API version of the resource.
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.
Local Inbound profile names to which Inbound is allowed. Use '*' to allow inbound to all profiles.
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.
The provisioning state of the NSP Link resource.
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.
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 NSP Guid with which the link gets created.
Remote NSP location with which the link gets created.