azure-native.network.NetworkSecurityPerimeterLoggingConfiguration
Explore with Pulumi AI
The NSP logging configuration
Uses Azure REST 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",
});
});
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.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
})
}
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());
}
}
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",
});
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")
resources:
networkSecurityPerimeterLoggingConfiguration:
type: azure-native:network:NetworkSecurityPerimeterLoggingConfiguration
properties:
loggingConfigurationName: instance
networkSecurityPerimeterName: nsp1
properties:
enabledLogCategories:
- NspPublicInboundPerimeterRulesDenied
- NspPublicOutboundPerimeterRulesDenied
resourceGroupName: rg1
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 string
- The unique name of the resource.
- args NetworkSecurityPerimeterLoggingConfigurationArgs
- 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 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 string
- The unique name of the resource.
- args NetworkSecurityPerimeterLoggingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkSecurityPerimeterLoggingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
var networkSecurityPerimeterLoggingConfigurationResource = new NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource", NetworkSecurityPerimeterLoggingConfigurationArgs.builder()
.networkSecurityPerimeterName("string")
.resourceGroupName("string")
.loggingConfigurationName("string")
.properties(NspLoggingConfigurationPropertiesArgs.builder()
.enabledLogCategories("string")
.version("string")
.build())
.build());
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",
})
const networkSecurityPerimeterLoggingConfigurationResource = new azure_native.network.NetworkSecurityPerimeterLoggingConfiguration("networkSecurityPerimeterLoggingConfigurationResource", {
networkSecurityPerimeterName: "string",
resourceGroupName: "string",
loggingConfigurationName: "string",
properties: {
enabledLogCategories: ["string"],
version: "string",
},
});
type: azure-native:network:NetworkSecurityPerimeterLoggingConfiguration
properties:
loggingConfigurationName: string
networkSecurityPerimeterName: string
properties:
enabledLogCategories:
- string
version: string
resourceGroupName: string
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:
- Network
Security stringPerimeter Name - The name of the network security perimeter.
- Resource
Group stringName - The name of the resource group.
- Logging
Configuration stringName - The name of the NSP logging configuration. Accepts 'instance' as name.
- Properties
Pulumi.
Azure Native. Network. Inputs. Nsp Logging Configuration Properties - Properties of the NSP logging configuration.
- Network
Security stringPerimeter Name - The name of the network security perimeter.
- Resource
Group stringName - The name of the resource group.
- Logging
Configuration stringName - The name of the NSP logging configuration. Accepts 'instance' as name.
- Properties
Nsp
Logging Configuration Properties Args - Properties of the NSP logging configuration.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- logging
Configuration StringName - The name of the NSP logging configuration. Accepts 'instance' as name.
- properties
Nsp
Logging Configuration Properties - Properties of the NSP logging configuration.
- network
Security stringPerimeter Name - The name of the network security perimeter.
- resource
Group stringName - The name of the resource group.
- logging
Configuration stringName - The name of the NSP logging configuration. Accepts 'instance' as name.
- properties
Nsp
Logging Configuration Properties - Properties of the NSP logging configuration.
- network_
security_ strperimeter_ name - The name of the network security perimeter.
- resource_
group_ strname - The name of the resource group.
- logging_
configuration_ strname - The name of the NSP logging configuration. Accepts 'instance' as name.
- properties
Nsp
Logging Configuration Properties Args - Properties of the NSP logging configuration.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- logging
Configuration StringName - 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:
Supporting Types
NspLoggingConfigurationProperties, NspLoggingConfigurationPropertiesArgs
- Enabled
Log List<string>Categories - The log categories to enable in the NSP logging configuration.
- Version string
- The version of the NSP logging configuration.
- Enabled
Log []stringCategories - The log categories to enable in the NSP logging configuration.
- Version string
- The version of the NSP logging configuration.
- enabled
Log List<String>Categories - The log categories to enable in the NSP logging configuration.
- version String
- The version of the NSP logging configuration.
- enabled
Log string[]Categories - The log categories to enable in the NSP logging configuration.
- version string
- The version of the NSP logging configuration.
- enabled_
log_ Sequence[str]categories - The log categories to enable in the NSP logging configuration.
- version str
- The version of the NSP logging configuration.
- enabled
Log List<String>Categories - The log categories to enable in the NSP logging configuration.
- version String
- The version of the NSP logging configuration.
NspLoggingConfigurationPropertiesResponse, NspLoggingConfigurationPropertiesResponseArgs
- Enabled
Log List<string>Categories - The log categories to enable in the NSP logging configuration.
- Version string
- The version of the NSP logging configuration.
- Enabled
Log []stringCategories - The log categories to enable in the NSP logging configuration.
- Version string
- The version of the NSP logging configuration.
- enabled
Log List<String>Categories - The log categories to enable in the NSP logging configuration.
- version String
- The version of the NSP logging configuration.
- enabled
Log string[]Categories - The log categories to enable in the NSP logging configuration.
- version string
- The version of the NSP logging configuration.
- enabled_
log_ Sequence[str]categories - The log categories to enable in the NSP logging configuration.
- version str
- The version of the NSP logging configuration.
- enabled
Log List<String>Categories - 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0