1. Packages
  2. Azure Native
  3. API Docs
  4. servicebus
  5. NamespaceIpFilterRule
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.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.servicebus.NamespaceIpFilterRule

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.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Single item in a List or Get IpFilterRules operation Azure REST API version: 2018-01-01-preview. Prior API version in Azure Native 1.x: 2018-01-01-preview.

    Example Usage

    NameSpaceIpFilterRuleCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var namespaceIpFilterRule = new AzureNative.ServiceBus.NamespaceIpFilterRule("namespaceIpFilterRule", new()
        {
            Action = AzureNative.ServiceBus.IPAction.Accept,
            FilterName = "sdk-IPFilterRules-7337",
            IpFilterRuleName = "sdk-IPFilterRules-7337",
            IpMask = "13.78.143.246/32",
            NamespaceName = "sdk-Namespace-5232",
            ResourceGroupName = "ResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicebus.NewNamespaceIpFilterRule(ctx, "namespaceIpFilterRule", &servicebus.NamespaceIpFilterRuleArgs{
    			Action:            pulumi.String(servicebus.IPActionAccept),
    			FilterName:        pulumi.String("sdk-IPFilterRules-7337"),
    			IpFilterRuleName:  pulumi.String("sdk-IPFilterRules-7337"),
    			IpMask:            pulumi.String("13.78.143.246/32"),
    			NamespaceName:     pulumi.String("sdk-Namespace-5232"),
    			ResourceGroupName: pulumi.String("ResourceGroup"),
    		})
    		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.servicebus.NamespaceIpFilterRule;
    import com.pulumi.azurenative.servicebus.NamespaceIpFilterRuleArgs;
    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 namespaceIpFilterRule = new NamespaceIpFilterRule("namespaceIpFilterRule", NamespaceIpFilterRuleArgs.builder()
                .action("Accept")
                .filterName("sdk-IPFilterRules-7337")
                .ipFilterRuleName("sdk-IPFilterRules-7337")
                .ipMask("13.78.143.246/32")
                .namespaceName("sdk-Namespace-5232")
                .resourceGroupName("ResourceGroup")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    namespace_ip_filter_rule = azure_native.servicebus.NamespaceIpFilterRule("namespaceIpFilterRule",
        action=azure_native.servicebus.IPAction.ACCEPT,
        filter_name="sdk-IPFilterRules-7337",
        ip_filter_rule_name="sdk-IPFilterRules-7337",
        ip_mask="13.78.143.246/32",
        namespace_name="sdk-Namespace-5232",
        resource_group_name="ResourceGroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const namespaceIpFilterRule = new azure_native.servicebus.NamespaceIpFilterRule("namespaceIpFilterRule", {
        action: azure_native.servicebus.IPAction.Accept,
        filterName: "sdk-IPFilterRules-7337",
        ipFilterRuleName: "sdk-IPFilterRules-7337",
        ipMask: "13.78.143.246/32",
        namespaceName: "sdk-Namespace-5232",
        resourceGroupName: "ResourceGroup",
    });
    
    resources:
      namespaceIpFilterRule:
        type: azure-native:servicebus:NamespaceIpFilterRule
        properties:
          action: Accept
          filterName: sdk-IPFilterRules-7337
          ipFilterRuleName: sdk-IPFilterRules-7337
          ipMask: 13.78.143.246/32
          namespaceName: sdk-Namespace-5232
          resourceGroupName: ResourceGroup
    

    Create NamespaceIpFilterRule Resource

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

    Constructor syntax

    new NamespaceIpFilterRule(name: string, args: NamespaceIpFilterRuleArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceIpFilterRule(resource_name: str,
                              args: NamespaceIpFilterRuleArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def NamespaceIpFilterRule(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              namespace_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              action: Optional[Union[str, IPAction]] = None,
                              filter_name: Optional[str] = None,
                              ip_filter_rule_name: Optional[str] = None,
                              ip_mask: Optional[str] = None)
    func NewNamespaceIpFilterRule(ctx *Context, name string, args NamespaceIpFilterRuleArgs, opts ...ResourceOption) (*NamespaceIpFilterRule, error)
    public NamespaceIpFilterRule(string name, NamespaceIpFilterRuleArgs args, CustomResourceOptions? opts = null)
    public NamespaceIpFilterRule(String name, NamespaceIpFilterRuleArgs args)
    public NamespaceIpFilterRule(String name, NamespaceIpFilterRuleArgs args, CustomResourceOptions options)
    
    type: azure-native:servicebus:NamespaceIpFilterRule
    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 NamespaceIpFilterRuleArgs
    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 NamespaceIpFilterRuleArgs
    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 NamespaceIpFilterRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceIpFilterRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceIpFilterRuleArgs
    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 azure_nativeNamespaceIpFilterRuleResource = new AzureNative.ServiceBus.NamespaceIpFilterRule("azure-nativeNamespaceIpFilterRuleResource", new()
    {
        NamespaceName = "string",
        ResourceGroupName = "string",
        Action = "string",
        FilterName = "string",
        IpFilterRuleName = "string",
        IpMask = "string",
    });
    
    example, err := servicebus.NewNamespaceIpFilterRule(ctx, "azure-nativeNamespaceIpFilterRuleResource", &servicebus.NamespaceIpFilterRuleArgs{
    NamespaceName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    Action: pulumi.String("string"),
    FilterName: pulumi.String("string"),
    IpFilterRuleName: pulumi.String("string"),
    IpMask: pulumi.String("string"),
    })
    
    var azure_nativeNamespaceIpFilterRuleResource = new NamespaceIpFilterRule("azure-nativeNamespaceIpFilterRuleResource", NamespaceIpFilterRuleArgs.builder()
        .namespaceName("string")
        .resourceGroupName("string")
        .action("string")
        .filterName("string")
        .ipFilterRuleName("string")
        .ipMask("string")
        .build());
    
    azure_native_namespace_ip_filter_rule_resource = azure_native.servicebus.NamespaceIpFilterRule("azure-nativeNamespaceIpFilterRuleResource",
        namespace_name="string",
        resource_group_name="string",
        action="string",
        filter_name="string",
        ip_filter_rule_name="string",
        ip_mask="string")
    
    const azure_nativeNamespaceIpFilterRuleResource = new azure_native.servicebus.NamespaceIpFilterRule("azure-nativeNamespaceIpFilterRuleResource", {
        namespaceName: "string",
        resourceGroupName: "string",
        action: "string",
        filterName: "string",
        ipFilterRuleName: "string",
        ipMask: "string",
    });
    
    type: azure-native:servicebus:NamespaceIpFilterRule
    properties:
        action: string
        filterName: string
        ipFilterRuleName: string
        ipMask: string
        namespaceName: string
        resourceGroupName: string
    

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

    NamespaceName string
    The namespace name
    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Action string | Pulumi.AzureNative.ServiceBus.IPAction
    The IP Filter Action
    FilterName string
    IP Filter name
    IpFilterRuleName string
    The IP Filter Rule name.
    IpMask string
    IP Mask
    NamespaceName string
    The namespace name
    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Action string | IPAction
    The IP Filter Action
    FilterName string
    IP Filter name
    IpFilterRuleName string
    The IP Filter Rule name.
    IpMask string
    IP Mask
    namespaceName String
    The namespace name
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    action String | IPAction
    The IP Filter Action
    filterName String
    IP Filter name
    ipFilterRuleName String
    The IP Filter Rule name.
    ipMask String
    IP Mask
    namespaceName string
    The namespace name
    resourceGroupName string
    Name of the Resource group within the Azure subscription.
    action string | IPAction
    The IP Filter Action
    filterName string
    IP Filter name
    ipFilterRuleName string
    The IP Filter Rule name.
    ipMask string
    IP Mask
    namespace_name str
    The namespace name
    resource_group_name str
    Name of the Resource group within the Azure subscription.
    action str | IPAction
    The IP Filter Action
    filter_name str
    IP Filter name
    ip_filter_rule_name str
    The IP Filter Rule name.
    ip_mask str
    IP Mask
    namespaceName String
    The namespace name
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    action String | "Accept" | "Reject"
    The IP Filter Action
    filterName String
    IP Filter name
    ipFilterRuleName String
    The IP Filter Rule name.
    ipMask String
    IP Mask

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Type string
    Resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Type string
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    type String
    Resource type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    type string
    Resource type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    type str
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    type String
    Resource type

    Supporting Types

    IPAction, IPActionArgs

    Accept
    Accept
    Reject
    Reject
    IPActionAccept
    Accept
    IPActionReject
    Reject
    Accept
    Accept
    Reject
    Reject
    Accept
    Accept
    Reject
    Reject
    ACCEPT
    Accept
    REJECT
    Reject
    "Accept"
    Accept
    "Reject"
    Reject

    Import

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

    $ pulumi import azure-native:servicebus:NamespaceIpFilterRule sdk-IPFilterRules-7337 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName} 
    

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi