1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NspAssociation
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

azure-native.network.NspAssociation

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

    The NSP resource association resource Azure REST API version: 2021-02-01-preview. Prior API version in Azure Native 1.x: 2021-02-01-preview

    Example Usage

    NspAssociationPut

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var nspAssociation = new AzureNative.Network.NspAssociation("nspAssociation", new()
        {
            AccessMode = "Enforced",
            AssociationName = "association1",
            NetworkSecurityPerimeterName = "nsp1",
            PrivateLinkResource = new AzureNative.Network.Inputs.SubResourceArgs
            {
                Id = "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
            },
            Profile = new AzureNative.Network.Inputs.SubResourceArgs
            {
                Id = "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
            },
            ResourceGroupName = "rg1",
        });
    
    });
    
    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.NewNspAssociation(ctx, "nspAssociation", &network.NspAssociationArgs{
    			AccessMode:                   pulumi.String("Enforced"),
    			AssociationName:              pulumi.String("association1"),
    			NetworkSecurityPerimeterName: pulumi.String("nsp1"),
    			PrivateLinkResource: &network.SubResourceArgs{
    				Id: pulumi.String("/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}"),
    			},
    			Profile: &network.SubResourceArgs{
    				Id: pulumi.String("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"),
    			},
    			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.NspAssociation;
    import com.pulumi.azurenative.network.NspAssociationArgs;
    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 nspAssociation = new NspAssociation("nspAssociation", NspAssociationArgs.builder()        
                .accessMode("Enforced")
                .associationName("association1")
                .networkSecurityPerimeterName("nsp1")
                .privateLinkResource(Map.of("id", "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}"))
                .profile(Map.of("id", "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}"))
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    nsp_association = azure_native.network.NspAssociation("nspAssociation",
        access_mode="Enforced",
        association_name="association1",
        network_security_perimeter_name="nsp1",
        private_link_resource=azure_native.network.SubResourceArgs(
            id="/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
        ),
        profile=azure_native.network.SubResourceArgs(
            id="/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
        ),
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const nspAssociation = new azure_native.network.NspAssociation("nspAssociation", {
        accessMode: "Enforced",
        associationName: "association1",
        networkSecurityPerimeterName: "nsp1",
        privateLinkResource: {
            id: "/subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}",
        },
        profile: {
            id: "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}",
        },
        resourceGroupName: "rg1",
    });
    
    resources:
      nspAssociation:
        type: azure-native:network:NspAssociation
        properties:
          accessMode: Enforced
          associationName: association1
          networkSecurityPerimeterName: nsp1
          privateLinkResource:
            id: /subscriptions/{paasSubscriptionId}/resourceGroups/{paasResourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}
          profile:
            id: /subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityPerimeters/nsp1/profiles/{profileName}
          resourceGroupName: rg1
    

    Create NspAssociation Resource

    new NspAssociation(name: string, args: NspAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def NspAssociation(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       access_mode: Optional[Union[str, AssociationAccessMode]] = None,
                       association_name: Optional[str] = None,
                       id: Optional[str] = None,
                       location: Optional[str] = None,
                       name: Optional[str] = None,
                       network_security_perimeter_name: Optional[str] = None,
                       private_link_resource: Optional[SubResourceArgs] = None,
                       profile: Optional[SubResourceArgs] = None,
                       resource_group_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    @overload
    def NspAssociation(resource_name: str,
                       args: NspAssociationArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewNspAssociation(ctx *Context, name string, args NspAssociationArgs, opts ...ResourceOption) (*NspAssociation, error)
    public NspAssociation(string name, NspAssociationArgs args, CustomResourceOptions? opts = null)
    public NspAssociation(String name, NspAssociationArgs args)
    public NspAssociation(String name, NspAssociationArgs args, CustomResourceOptions options)
    
    type: azure-native:network:NspAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NspAssociationArgs
    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 NspAssociationArgs
    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 NspAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NspAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NspAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    NetworkSecurityPerimeterName string

    The name of the network security perimeter.

    ResourceGroupName string

    The name of the resource group.

    AccessMode string | Pulumi.AzureNative.Network.AssociationAccessMode

    Access mode on the association.

    AssociationName string

    The name of the NSP association.

    Id string

    Resource ID.

    Location string

    Resource location.

    Name string

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    PrivateLinkResource Pulumi.AzureNative.Network.Inputs.SubResource

    The PaaS resource to be associated.

    Profile Pulumi.AzureNative.Network.Inputs.SubResource

    Profile id to which the PaaS resource is associated.

    Tags Dictionary<string, string>

    Resource tags.

    NetworkSecurityPerimeterName string

    The name of the network security perimeter.

    ResourceGroupName string

    The name of the resource group.

    AccessMode string | AssociationAccessMode

    Access mode on the association.

    AssociationName string

    The name of the NSP association.

    Id string

    Resource ID.

    Location string

    Resource location.

    Name string

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    PrivateLinkResource SubResourceArgs

    The PaaS resource to be associated.

    Profile SubResourceArgs

    Profile id to which the PaaS resource is associated.

    Tags map[string]string

    Resource tags.

    networkSecurityPerimeterName String

    The name of the network security perimeter.

    resourceGroupName String

    The name of the resource group.

    accessMode String | AssociationAccessMode

    Access mode on the association.

    associationName String

    The name of the NSP association.

    id String

    Resource ID.

    location String

    Resource location.

    name String

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    privateLinkResource SubResource

    The PaaS resource to be associated.

    profile SubResource

    Profile id to which the PaaS resource is associated.

    tags Map<String,String>

    Resource tags.

    networkSecurityPerimeterName string

    The name of the network security perimeter.

    resourceGroupName string

    The name of the resource group.

    accessMode string | AssociationAccessMode

    Access mode on the association.

    associationName string

    The name of the NSP association.

    id string

    Resource ID.

    location string

    Resource location.

    name string

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    privateLinkResource SubResource

    The PaaS resource to be associated.

    profile SubResource

    Profile id to which the PaaS resource is associated.

    tags {[key: string]: string}

    Resource tags.

    network_security_perimeter_name str

    The name of the network security perimeter.

    resource_group_name str

    The name of the resource group.

    access_mode str | AssociationAccessMode

    Access mode on the association.

    association_name str

    The name of the NSP association.

    id str

    Resource ID.

    location str

    Resource location.

    name str

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    private_link_resource SubResourceArgs

    The PaaS resource to be associated.

    profile SubResourceArgs

    Profile id to which the PaaS resource is associated.

    tags Mapping[str, str]

    Resource tags.

    networkSecurityPerimeterName String

    The name of the network security perimeter.

    resourceGroupName String

    The name of the resource group.

    accessMode String | "Learning" | "Enforced" | "Audit"

    Access mode on the association.

    associationName String

    The name of the NSP association.

    id String

    Resource ID.

    location String

    Resource location.

    name String

    The name of the resource that is unique within a resource group. This name can be used to access the resource.

    privateLinkResource Property Map

    The PaaS resource to be associated.

    profile Property Map

    Profile id to which the PaaS resource is associated.

    tags Map<String>

    Resource tags.

    Outputs

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

    HasProvisioningIssues string

    Specifies if there are provisioning issues

    Id string

    The provider-assigned unique ID for this managed resource.

    ProvisioningState string

    The provisioning state of the resource association resource.

    Type string

    Resource type.

    HasProvisioningIssues string

    Specifies if there are provisioning issues

    Id string

    The provider-assigned unique ID for this managed resource.

    ProvisioningState string

    The provisioning state of the resource association resource.

    Type string

    Resource type.

    hasProvisioningIssues String

    Specifies if there are provisioning issues

    id String

    The provider-assigned unique ID for this managed resource.

    provisioningState String

    The provisioning state of the resource association resource.

    type String

    Resource type.

    hasProvisioningIssues string

    Specifies if there are provisioning issues

    id string

    The provider-assigned unique ID for this managed resource.

    provisioningState string

    The provisioning state of the resource association resource.

    type string

    Resource type.

    has_provisioning_issues str

    Specifies if there are provisioning issues

    id str

    The provider-assigned unique ID for this managed resource.

    provisioning_state str

    The provisioning state of the resource association resource.

    type str

    Resource type.

    hasProvisioningIssues String

    Specifies if there are provisioning issues

    id String

    The provider-assigned unique ID for this managed resource.

    provisioningState String

    The provisioning state of the resource association resource.

    type String

    Resource type.

    Supporting Types

    AssociationAccessMode, AssociationAccessModeArgs

    Learning
    Learning
    Enforced
    Enforced
    Audit
    Audit
    AssociationAccessModeLearning
    Learning
    AssociationAccessModeEnforced
    Enforced
    AssociationAccessModeAudit
    Audit
    Learning
    Learning
    Enforced
    Enforced
    Audit
    Audit
    Learning
    Learning
    Enforced
    Enforced
    Audit
    Audit
    LEARNING
    Learning
    ENFORCED
    Enforced
    AUDIT
    Audit
    "Learning"
    Learning
    "Enforced"
    Enforced
    "Audit"
    Audit

    SubResource, SubResourceArgs

    Id string

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    Id string

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    id String

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    id string

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    id str

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    id String

    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    SubResourceResponse, SubResourceResponseArgs

    Id string

    Resource ID.

    Id string

    Resource ID.

    id String

    Resource ID.

    id string

    Resource ID.

    id str

    Resource ID.

    id String

    Resource ID.

    Import

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

    $ pulumi import azure-native:network:NspAssociation association1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName} 
    

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi