1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkSecurityPerimeter
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.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.network.NetworkSecurityPerimeter

Explore with Pulumi AI

azure-native logo
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.3.0 published on Monday, Apr 28, 2025 by Pulumi

    The Network Security Perimeter resource

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

    Other available API versions: 2021-02-01-preview, 2021-03-01-preview, 2023-07-01-preview, 2023-08-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 for details.

    Example Usage

    Put Network Security Perimeter

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var networkSecurityPerimeter = new AzureNative.Network.NetworkSecurityPerimeter("networkSecurityPerimeter", new()
        {
            NetworkSecurityPerimeterName = "nsp1",
            ResourceGroupName = "rg1",
        });
    
    });
    
    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.NewNetworkSecurityPerimeter(ctx, "networkSecurityPerimeter", &network.NetworkSecurityPerimeterArgs{
    			NetworkSecurityPerimeterName: pulumi.String("nsp1"),
    			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.NetworkSecurityPerimeter;
    import com.pulumi.azurenative.network.NetworkSecurityPerimeterArgs;
    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 networkSecurityPerimeter = new NetworkSecurityPerimeter("networkSecurityPerimeter", NetworkSecurityPerimeterArgs.builder()
                .networkSecurityPerimeterName("nsp1")
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const networkSecurityPerimeter = new azure_native.network.NetworkSecurityPerimeter("networkSecurityPerimeter", {
        networkSecurityPerimeterName: "nsp1",
        resourceGroupName: "rg1",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    network_security_perimeter = azure_native.network.NetworkSecurityPerimeter("networkSecurityPerimeter",
        network_security_perimeter_name="nsp1",
        resource_group_name="rg1")
    
    resources:
      networkSecurityPerimeter:
        type: azure-native:network:NetworkSecurityPerimeter
        properties:
          networkSecurityPerimeterName: nsp1
          resourceGroupName: rg1
    

    Create NetworkSecurityPerimeter Resource

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

    Constructor syntax

    new NetworkSecurityPerimeter(name: string, args: NetworkSecurityPerimeterArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkSecurityPerimeter(resource_name: str,
                                 args: NetworkSecurityPerimeterArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkSecurityPerimeter(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 resource_group_name: Optional[str] = None,
                                 id: Optional[str] = None,
                                 location: Optional[str] = None,
                                 network_security_perimeter_name: Optional[str] = None,
                                 tags: Optional[Mapping[str, str]] = None)
    func NewNetworkSecurityPerimeter(ctx *Context, name string, args NetworkSecurityPerimeterArgs, opts ...ResourceOption) (*NetworkSecurityPerimeter, error)
    public NetworkSecurityPerimeter(string name, NetworkSecurityPerimeterArgs args, CustomResourceOptions? opts = null)
    public NetworkSecurityPerimeter(String name, NetworkSecurityPerimeterArgs args)
    public NetworkSecurityPerimeter(String name, NetworkSecurityPerimeterArgs args, CustomResourceOptions options)
    
    type: azure-native:network:NetworkSecurityPerimeter
    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 NetworkSecurityPerimeterArgs
    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 NetworkSecurityPerimeterArgs
    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 NetworkSecurityPerimeterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkSecurityPerimeterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkSecurityPerimeterArgs
    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 networkSecurityPerimeterResource = new AzureNative.Network.NetworkSecurityPerimeter("networkSecurityPerimeterResource", new()
    {
        ResourceGroupName = "string",
        Id = "string",
        Location = "string",
        NetworkSecurityPerimeterName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := network.NewNetworkSecurityPerimeter(ctx, "networkSecurityPerimeterResource", &network.NetworkSecurityPerimeterArgs{
    	ResourceGroupName:            pulumi.String("string"),
    	Id:                           pulumi.String("string"),
    	Location:                     pulumi.String("string"),
    	NetworkSecurityPerimeterName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var networkSecurityPerimeterResource = new NetworkSecurityPerimeter("networkSecurityPerimeterResource", NetworkSecurityPerimeterArgs.builder()
        .resourceGroupName("string")
        .id("string")
        .location("string")
        .networkSecurityPerimeterName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    network_security_perimeter_resource = azure_native.network.NetworkSecurityPerimeter("networkSecurityPerimeterResource",
        resource_group_name="string",
        id="string",
        location="string",
        network_security_perimeter_name="string",
        tags={
            "string": "string",
        })
    
    const networkSecurityPerimeterResource = new azure_native.network.NetworkSecurityPerimeter("networkSecurityPerimeterResource", {
        resourceGroupName: "string",
        id: "string",
        location: "string",
        networkSecurityPerimeterName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:network:NetworkSecurityPerimeter
    properties:
        id: string
        location: string
        networkSecurityPerimeterName: string
        resourceGroupName: string
        tags:
            string: string
    

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

    ResourceGroupName string
    The name of the resource group.
    Id string
    Resource ID.
    Location string
    Resource location.
    NetworkSecurityPerimeterName string
    The name of the network security perimeter.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group.
    Id string
    Resource ID.
    Location string
    Resource location.
    NetworkSecurityPerimeterName string
    The name of the network security perimeter.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group.
    id String
    Resource ID.
    location String
    Resource location.
    networkSecurityPerimeterName String
    The name of the network security perimeter.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group.
    id string
    Resource ID.
    location string
    Resource location.
    networkSecurityPerimeterName string
    The name of the network security perimeter.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group.
    id str
    Resource ID.
    location str
    Resource location.
    network_security_perimeter_name str
    The name of the network security perimeter.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group.
    id String
    Resource ID.
    location String
    Resource location.
    networkSecurityPerimeterName String
    The name of the network security perimeter.
    tags Map<String>
    Resource tags.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    PerimeterGuid string
    perimeter guid of the network security perimeter.
    ProvisioningState string
    The provisioning state of the scope assignment resource.
    Type string
    Resource type.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    PerimeterGuid string
    perimeter guid of the network security perimeter.
    ProvisioningState string
    The provisioning state of the scope assignment resource.
    Type string
    Resource type.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    perimeterGuid String
    perimeter guid of the network security perimeter.
    provisioningState String
    The provisioning state of the scope assignment resource.
    type String
    Resource type.
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    perimeterGuid string
    perimeter guid of the network security perimeter.
    provisioningState string
    The provisioning state of the scope assignment resource.
    type string
    Resource type.
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    perimeter_guid str
    perimeter guid of the network security perimeter.
    provisioning_state str
    The provisioning state of the scope assignment resource.
    type str
    Resource type.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    perimeterGuid String
    perimeter guid of the network security perimeter.
    provisioningState String
    The provisioning state of the scope assignment resource.
    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:NetworkSecurityPerimeter TestNetworkSecurityPerimeter /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.3.0 published on Monday, Apr 28, 2025 by Pulumi