1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkSecurityPerimeterLoggingConfiguration
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.NetworkSecurityPerimeterLoggingConfiguration

Explore with Pulumi AI

The NSP logging configuration

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

NspLoggingConfigurationPut

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

return await Deployment.RunAsync(() => 
{
    var networkSecurityPerimeterLoggingConfiguration = new AzureNative.Network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfiguration", new()
    {
        LoggingConfigurationName = "instance",
        NetworkSecurityPerimeterName = "nsp1",
        Properties = new AzureNative.Network.Inputs.NspLoggingConfigurationPropertiesArgs
        {
            EnabledLogCategories = new[]
            {
                "NspPublicInboundPerimeterRulesDenied",
                "NspPublicOutboundPerimeterRulesDenied",
            },
        },
        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.NewNetworkSecurityPerimeterLoggingConfiguration(ctx, "networkSecurityPerimeterLoggingConfiguration", &network.NetworkSecurityPerimeterLoggingConfigurationArgs{
			LoggingConfigurationName:     pulumi.String("instance"),
			NetworkSecurityPerimeterName: pulumi.String("nsp1"),
			Properties: &network.NspLoggingConfigurationPropertiesArgs{
				EnabledLogCategories: pulumi.StringArray{
					pulumi.String("NspPublicInboundPerimeterRulesDenied"),
					pulumi.String("NspPublicOutboundPerimeterRulesDenied"),
				},
			},
			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.NetworkSecurityPerimeterLoggingConfiguration;
import com.pulumi.azurenative.network.NetworkSecurityPerimeterLoggingConfigurationArgs;
import com.pulumi.azurenative.network.inputs.NspLoggingConfigurationPropertiesArgs;
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 networkSecurityPerimeterLoggingConfiguration = new NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfiguration", NetworkSecurityPerimeterLoggingConfigurationArgs.builder()
            .loggingConfigurationName("instance")
            .networkSecurityPerimeterName("nsp1")
            .properties(NspLoggingConfigurationPropertiesArgs.builder()
                .enabledLogCategories(                
                    "NspPublicInboundPerimeterRulesDenied",
                    "NspPublicOutboundPerimeterRulesDenied")
                .build())
            .resourceGroupName("rg1")
            .build());

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

const networkSecurityPerimeterLoggingConfiguration = new azure_native.network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfiguration", {
    loggingConfigurationName: "instance",
    networkSecurityPerimeterName: "nsp1",
    properties: {
        enabledLogCategories: [
            "NspPublicInboundPerimeterRulesDenied",
            "NspPublicOutboundPerimeterRulesDenied",
        ],
    },
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

network_security_perimeter_logging_configuration = azure_native.network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfiguration",
    logging_configuration_name="instance",
    network_security_perimeter_name="nsp1",
    properties={
        "enabled_log_categories": [
            "NspPublicInboundPerimeterRulesDenied",
            "NspPublicOutboundPerimeterRulesDenied",
        ],
    },
    resource_group_name="rg1")
Copy
resources:
  networkSecurityPerimeterLoggingConfiguration:
    type: azure-native:network:NetworkSecurityPerimeterLoggingConfiguration
    properties:
      loggingConfigurationName: instance
      networkSecurityPerimeterName: nsp1
      properties:
        enabledLogCategories:
          - NspPublicInboundPerimeterRulesDenied
          - NspPublicOutboundPerimeterRulesDenied
      resourceGroupName: rg1
Copy

Create NetworkSecurityPerimeterLoggingConfiguration Resource

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

Constructor syntax

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

@overload
def NetworkSecurityPerimeterLoggingConfiguration(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 network_security_perimeter_name: Optional[str] = None,
                                                 resource_group_name: Optional[str] = None,
                                                 logging_configuration_name: Optional[str] = None,
                                                 properties: Optional[NspLoggingConfigurationPropertiesArgs] = None)
func NewNetworkSecurityPerimeterLoggingConfiguration(ctx *Context, name string, args NetworkSecurityPerimeterLoggingConfigurationArgs, opts ...ResourceOption) (*NetworkSecurityPerimeterLoggingConfiguration, error)
public NetworkSecurityPerimeterLoggingConfiguration(string name, NetworkSecurityPerimeterLoggingConfigurationArgs args, CustomResourceOptions? opts = null)
public NetworkSecurityPerimeterLoggingConfiguration(String name, NetworkSecurityPerimeterLoggingConfigurationArgs args)
public NetworkSecurityPerimeterLoggingConfiguration(String name, NetworkSecurityPerimeterLoggingConfigurationArgs args, CustomResourceOptions options)
type: azure-native:network:NetworkSecurityPerimeterLoggingConfiguration
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. NetworkSecurityPerimeterLoggingConfigurationArgs
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. NetworkSecurityPerimeterLoggingConfigurationArgs
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. NetworkSecurityPerimeterLoggingConfigurationArgs
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. NetworkSecurityPerimeterLoggingConfigurationArgs
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. NetworkSecurityPerimeterLoggingConfigurationArgs
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 networkSecurityPerimeterLoggingConfigurationResource = new AzureNative.Network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource", new()
{
    NetworkSecurityPerimeterName = "string",
    ResourceGroupName = "string",
    LoggingConfigurationName = "string",
    Properties = new AzureNative.Network.Inputs.NspLoggingConfigurationPropertiesArgs
    {
        EnabledLogCategories = new[]
        {
            "string",
        },
        Version = "string",
    },
});
Copy
example, err := network.NewNetworkSecurityPerimeterLoggingConfiguration(ctx, "networkSecurityPerimeterLoggingConfigurationResource", &network.NetworkSecurityPerimeterLoggingConfigurationArgs{
	NetworkSecurityPerimeterName: pulumi.String("string"),
	ResourceGroupName:            pulumi.String("string"),
	LoggingConfigurationName:     pulumi.String("string"),
	Properties: &network.NspLoggingConfigurationPropertiesArgs{
		EnabledLogCategories: pulumi.StringArray{
			pulumi.String("string"),
		},
		Version: pulumi.String("string"),
	},
})
Copy
var networkSecurityPerimeterLoggingConfigurationResource = new NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource", NetworkSecurityPerimeterLoggingConfigurationArgs.builder()
    .networkSecurityPerimeterName("string")
    .resourceGroupName("string")
    .loggingConfigurationName("string")
    .properties(NspLoggingConfigurationPropertiesArgs.builder()
        .enabledLogCategories("string")
        .version("string")
        .build())
    .build());
Copy
network_security_perimeter_logging_configuration_resource = azure_native.network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource",
    network_security_perimeter_name="string",
    resource_group_name="string",
    logging_configuration_name="string",
    properties={
        "enabled_log_categories": ["string"],
        "version": "string",
    })
Copy
const networkSecurityPerimeterLoggingConfigurationResource = new azure_native.network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource", {
    networkSecurityPerimeterName: "string",
    resourceGroupName: "string",
    loggingConfigurationName: "string",
    properties: {
        enabledLogCategories: ["string"],
        version: "string",
    },
});
Copy
type: azure-native:network:NetworkSecurityPerimeterLoggingConfiguration
properties:
    loggingConfigurationName: string
    networkSecurityPerimeterName: string
    properties:
        enabledLogCategories:
            - string
        version: string
    resourceGroupName: string
Copy

NetworkSecurityPerimeterLoggingConfiguration 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 NetworkSecurityPerimeterLoggingConfiguration 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.
LoggingConfigurationName Changes to this property will trigger replacement. string
The name of the NSP logging configuration. Accepts 'instance' as name.
Properties Pulumi.AzureNative.Network.Inputs.NspLoggingConfigurationProperties
Properties of the NSP logging configuration.
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.
LoggingConfigurationName Changes to this property will trigger replacement. string
The name of the NSP logging configuration. Accepts 'instance' as name.
Properties NspLoggingConfigurationPropertiesArgs
Properties of the NSP logging configuration.
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.
loggingConfigurationName Changes to this property will trigger replacement. String
The name of the NSP logging configuration. Accepts 'instance' as name.
properties NspLoggingConfigurationProperties
Properties of the NSP logging configuration.
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.
loggingConfigurationName Changes to this property will trigger replacement. string
The name of the NSP logging configuration. Accepts 'instance' as name.
properties NspLoggingConfigurationProperties
Properties of the NSP logging configuration.
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.
logging_configuration_name Changes to this property will trigger replacement. str
The name of the NSP logging configuration. Accepts 'instance' as name.
properties NspLoggingConfigurationPropertiesArgs
Properties of the NSP logging configuration.
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.
loggingConfigurationName Changes to this property will trigger replacement. String
The name of the NSP logging configuration. Accepts 'instance' as name.
properties Property Map
Properties of the NSP logging configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the NetworkSecurityPerimeterLoggingConfiguration 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.
Name string
Resource name.
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.
Name string
Resource name.
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.
name String
Resource name.
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.
name string
Resource name.
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.
name str
Resource name.
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.
name String
Resource name.
type String
Resource type.

Supporting Types

NspLoggingConfigurationProperties
, NspLoggingConfigurationPropertiesArgs

EnabledLogCategories List<string>
The log categories to enable in the NSP logging configuration.
Version string
The version of the NSP logging configuration.
EnabledLogCategories []string
The log categories to enable in the NSP logging configuration.
Version string
The version of the NSP logging configuration.
enabledLogCategories List<String>
The log categories to enable in the NSP logging configuration.
version String
The version of the NSP logging configuration.
enabledLogCategories string[]
The log categories to enable in the NSP logging configuration.
version string
The version of the NSP logging configuration.
enabled_log_categories Sequence[str]
The log categories to enable in the NSP logging configuration.
version str
The version of the NSP logging configuration.
enabledLogCategories List<String>
The log categories to enable in the NSP logging configuration.
version String
The version of the NSP logging configuration.

NspLoggingConfigurationPropertiesResponse
, NspLoggingConfigurationPropertiesResponseArgs

EnabledLogCategories List<string>
The log categories to enable in the NSP logging configuration.
Version string
The version of the NSP logging configuration.
EnabledLogCategories []string
The log categories to enable in the NSP logging configuration.
Version string
The version of the NSP logging configuration.
enabledLogCategories List<String>
The log categories to enable in the NSP logging configuration.
version String
The version of the NSP logging configuration.
enabledLogCategories string[]
The log categories to enable in the NSP logging configuration.
version string
The version of the NSP logging configuration.
enabled_log_categories Sequence[str]
The log categories to enable in the NSP logging configuration.
version str
The version of the NSP logging configuration.
enabledLogCategories List<String>
The log categories to enable in the NSP logging configuration.
version String
The version of the NSP logging configuration.

Import

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

$ pulumi import azure-native:network:NetworkSecurityPerimeterLoggingConfiguration instance /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations/{loggingConfigurationName} 
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