Nsp Link Args
The network security perimeter link resource Uses Azure REST API version 2023-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-02-01-preview. Other available API versions: 2021-02-01-preview, 2023-07-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
NspLinksPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var nspLink = new AzureNative.Network.NspLink("nspLink", 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.NewNspLink(ctx, "nspLink", &network.NspLinkArgs{
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.NspLink;
import com.pulumi.azurenative.network.NspLinkArgs;
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 nspLink = new NspLink("nspLink", NspLinkArgs.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:NspLink link1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}
Constructors
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.
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.
The name of the network security perimeter.
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.
The name of the resource group.