Nsp Link Args
data class NspLinkArgs(val autoApprovedRemotePerimeterResourceId: Output<String>? = null, val description: Output<String>? = null, val linkName: Output<String>? = null, val localInboundProfiles: Output<List<String>>? = null, val networkSecurityPerimeterName: Output<String>? = null, val remoteInboundProfiles: Output<List<String>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<NspLinkArgs>
The network security perimeter link resource Azure REST API version: 2021-02-01-preview. Other available API versions: 2023-07-01-preview, 2023-08-01-preview.
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",
NetworkSecurityPerimeterName = "nsp1",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
"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"),
NetworkSecurityPerimeterName: pulumi.String("nsp1"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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")
.networkSecurityPerimeterName("nsp1")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun NspLinkArgs(autoApprovedRemotePerimeterResourceId: Output<String>? = null, description: Output<String>? = null, linkName: Output<String>? = null, localInboundProfiles: Output<List<String>>? = null, networkSecurityPerimeterName: Output<String>? = null, remoteInboundProfiles: Output<List<String>>? = null, resourceGroupName: Output<String>? = null)