azure-native.network.NspProfile
Explore with Pulumi AI
The network security perimeter profile resource API Version: 2021-02-01-preview.
Example Usage
NspProfilesPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var nspProfile = new AzureNative.Network.NspProfile("nspProfile", new()
{
NetworkSecurityPerimeterName = "nsp1",
ProfileName = "profile1",
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewNspProfile(ctx, "nspProfile", &network.NspProfileArgs{
NetworkSecurityPerimeterName: pulumi.String("nsp1"),
ProfileName: pulumi.String("profile1"),
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.NspProfile;
import com.pulumi.azurenative.network.NspProfileArgs;
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 nspProfile = new NspProfile("nspProfile", NspProfileArgs.builder()
.networkSecurityPerimeterName("nsp1")
.profileName("profile1")
.resourceGroupName("rg1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
nsp_profile = azure_native.network.NspProfile("nspProfile",
network_security_perimeter_name="nsp1",
profile_name="profile1",
resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const nspProfile = new azure_native.network.NspProfile("nspProfile", {
networkSecurityPerimeterName: "nsp1",
profileName: "profile1",
resourceGroupName: "rg1",
});
resources:
nspProfile:
type: azure-native:network:NspProfile
properties:
networkSecurityPerimeterName: nsp1
profileName: profile1
resourceGroupName: rg1
Create NspProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NspProfile(name: string, args: NspProfileArgs, opts?: CustomResourceOptions);
@overload
def NspProfile(resource_name: str,
args: NspProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NspProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_security_perimeter_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
profile_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNspProfile(ctx *Context, name string, args NspProfileArgs, opts ...ResourceOption) (*NspProfile, error)
public NspProfile(string name, NspProfileArgs args, CustomResourceOptions? opts = null)
public NspProfile(String name, NspProfileArgs args)
public NspProfile(String name, NspProfileArgs args, CustomResourceOptions options)
type: azure-native:network:NspProfile
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 NspProfileArgs
- 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 NspProfileArgs
- 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 NspProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NspProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NspProfileArgs
- 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 nspProfileResource = new AzureNative.Network.NspProfile("nspProfileResource", new()
{
NetworkSecurityPerimeterName = "string",
ResourceGroupName = "string",
Id = "string",
Location = "string",
Name = "string",
ProfileName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewNspProfile(ctx, "nspProfileResource", &network.NspProfileArgs{
NetworkSecurityPerimeterName: "string",
ResourceGroupName: "string",
Id: "string",
Location: "string",
Name: "string",
ProfileName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var nspProfileResource = new NspProfile("nspProfileResource", NspProfileArgs.builder()
.networkSecurityPerimeterName("string")
.resourceGroupName("string")
.id("string")
.location("string")
.name("string")
.profileName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
nsp_profile_resource = azure_native.network.NspProfile("nspProfileResource",
network_security_perimeter_name=string,
resource_group_name=string,
id=string,
location=string,
name=string,
profile_name=string,
tags={
string: string,
})
const nspProfileResource = new azure_native.network.NspProfile("nspProfileResource", {
networkSecurityPerimeterName: "string",
resourceGroupName: "string",
id: "string",
location: "string",
name: "string",
profileName: "string",
tags: {
string: "string",
},
});
type: azure-native:network:NspProfile
properties:
id: string
location: string
name: string
networkSecurityPerimeterName: string
profileName: string
resourceGroupName: string
tags:
string: string
NspProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NspProfile 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.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- Profile
Name string - The name of the NSP profile.
- Dictionary<string, string>
- Resource tags.
- Network
Security stringPerimeter Name - The name of the network security perimeter.
- Resource
Group stringName - The name of the resource group.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- Profile
Name string - The name of the NSP profile.
- map[string]string
- Resource tags.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- profile
Name String - The name of the NSP profile.
- Map<String,String>
- Resource tags.
- network
Security stringPerimeter Name - The name of the network security perimeter.
- resource
Group stringName - The name of the resource group.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- profile
Name string - The name of the NSP profile.
- {[key: string]: string}
- Resource tags.
- network_
security_ strperimeter_ name - The name of the network security perimeter.
- resource_
group_ strname - The name of the resource group.
- id str
- Resource ID.
- location str
- Resource location.
- name str
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- profile_
name str - The name of the NSP profile.
- Mapping[str, str]
- Resource tags.
- network
Security StringPerimeter Name - The name of the network security perimeter.
- resource
Group StringName - The name of the resource group.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- The name of the profile resource that is unique within a perimeter. This name can be used to access the resource.
- profile
Name String - The name of the NSP profile.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NspProfile resource produces the following output properties:
- Access
Rules stringVersion - Version number that increases with every update to access rules within the profile.
- Diagnostic
Settings stringVersion - Version number that increases with every update to diagnostic settings within the profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Resource type.
- Access
Rules stringVersion - Version number that increases with every update to access rules within the profile.
- Diagnostic
Settings stringVersion - Version number that increases with every update to diagnostic settings within the profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- Resource type.
- access
Rules StringVersion - Version number that increases with every update to access rules within the profile.
- diagnostic
Settings StringVersion - Version number that increases with every update to diagnostic settings within the profile.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- Resource type.
- access
Rules stringVersion - Version number that increases with every update to access rules within the profile.
- diagnostic
Settings stringVersion - Version number that increases with every update to diagnostic settings within the profile.
- id string
- The provider-assigned unique ID for this managed resource.
- type string
- Resource type.
- access_
rules_ strversion - Version number that increases with every update to access rules within the profile.
- diagnostic_
settings_ strversion - Version number that increases with every update to diagnostic settings within the profile.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- Resource type.
- access
Rules StringVersion - Version number that increases with every update to access rules within the profile.
- diagnostic
Settings StringVersion - Version number that increases with every update to diagnostic settings within the profile.
- id String
- The provider-assigned unique ID for this managed 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:NspProfile profile1 /subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/profile1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0