1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. IpGroup
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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.network.IpGroup

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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    The IpGroups resource information. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.

    Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.

    Example Usage

    CreateOrUpdate_IpGroups

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var ipGroup = new AzureNative.Network.IpGroup("ipGroup", new()
        {
            IpAddresses = new[]
            {
                "13.64.39.16/32",
                "40.74.146.80/31",
                "40.74.147.32/28",
            },
            IpGroupsName = "ipGroups1",
            Location = "West US",
            ResourceGroupName = "myResourceGroup",
            Tags = 
            {
                { "key1", "value1" },
            },
        });
    
    });
    
    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.NewIpGroup(ctx, "ipGroup", &network.IpGroupArgs{
    			IpAddresses: pulumi.StringArray{
    				pulumi.String("13.64.39.16/32"),
    				pulumi.String("40.74.146.80/31"),
    				pulumi.String("40.74.147.32/28"),
    			},
    			IpGroupsName:      pulumi.String("ipGroups1"),
    			Location:          pulumi.String("West US"),
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			Tags: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    		})
    		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.IpGroup;
    import com.pulumi.azurenative.network.IpGroupArgs;
    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 ipGroup = new IpGroup("ipGroup", IpGroupArgs.builder()
                .ipAddresses(            
                    "13.64.39.16/32",
                    "40.74.146.80/31",
                    "40.74.147.32/28")
                .ipGroupsName("ipGroups1")
                .location("West US")
                .resourceGroupName("myResourceGroup")
                .tags(Map.of("key1", "value1"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    ip_group = azure_native.network.IpGroup("ipGroup",
        ip_addresses=[
            "13.64.39.16/32",
            "40.74.146.80/31",
            "40.74.147.32/28",
        ],
        ip_groups_name="ipGroups1",
        location="West US",
        resource_group_name="myResourceGroup",
        tags={
            "key1": "value1",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const ipGroup = new azure_native.network.IpGroup("ipGroup", {
        ipAddresses: [
            "13.64.39.16/32",
            "40.74.146.80/31",
            "40.74.147.32/28",
        ],
        ipGroupsName: "ipGroups1",
        location: "West US",
        resourceGroupName: "myResourceGroup",
        tags: {
            key1: "value1",
        },
    });
    
    resources:
      ipGroup:
        type: azure-native:network:IpGroup
        properties:
          ipAddresses:
            - 13.64.39.16/32
            - 40.74.146.80/31
            - 40.74.147.32/28
          ipGroupsName: ipGroups1
          location: West US
          resourceGroupName: myResourceGroup
          tags:
            key1: value1
    

    Create IpGroup Resource

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

    Constructor syntax

    new IpGroup(name: string, args: IpGroupArgs, opts?: CustomResourceOptions);
    @overload
    def IpGroup(resource_name: str,
                args: IpGroupArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpGroup(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                id: Optional[str] = None,
                ip_addresses: Optional[Sequence[str]] = None,
                ip_groups_name: Optional[str] = None,
                location: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewIpGroup(ctx *Context, name string, args IpGroupArgs, opts ...ResourceOption) (*IpGroup, error)
    public IpGroup(string name, IpGroupArgs args, CustomResourceOptions? opts = null)
    public IpGroup(String name, IpGroupArgs args)
    public IpGroup(String name, IpGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:network:IpGroup
    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 IpGroupArgs
    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 IpGroupArgs
    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 IpGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpGroupArgs
    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 ipGroupResource = new AzureNative.Network.IpGroup("ipGroupResource", new()
    {
        ResourceGroupName = "string",
        Id = "string",
        IpAddresses = new[]
        {
            "string",
        },
        IpGroupsName = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := network.NewIpGroup(ctx, "ipGroupResource", &network.IpGroupArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Id:                pulumi.String("string"),
    	IpAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IpGroupsName: pulumi.String("string"),
    	Location:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var ipGroupResource = new IpGroup("ipGroupResource", IpGroupArgs.builder()
        .resourceGroupName("string")
        .id("string")
        .ipAddresses("string")
        .ipGroupsName("string")
        .location("string")
        .tags(Map.of("string", "string"))
        .build());
    
    ip_group_resource = azure_native.network.IpGroup("ipGroupResource",
        resource_group_name="string",
        id="string",
        ip_addresses=["string"],
        ip_groups_name="string",
        location="string",
        tags={
            "string": "string",
        })
    
    const ipGroupResource = new azure_native.network.IpGroup("ipGroupResource", {
        resourceGroupName: "string",
        id: "string",
        ipAddresses: ["string"],
        ipGroupsName: "string",
        location: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:network:IpGroup
    properties:
        id: string
        ipAddresses:
            - string
        ipGroupsName: string
        location: string
        resourceGroupName: string
        tags:
            string: string
    

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

    ResourceGroupName string
    The name of the resource group.
    Id string
    Resource ID.
    IpAddresses List<string>
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    IpGroupsName string
    The name of the ipGroups.
    Location string
    Resource location.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group.
    Id string
    Resource ID.
    IpAddresses []string
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    IpGroupsName string
    The name of the ipGroups.
    Location string
    Resource location.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group.
    id String
    Resource ID.
    ipAddresses List<String>
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    ipGroupsName String
    The name of the ipGroups.
    location String
    Resource location.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group.
    id string
    Resource ID.
    ipAddresses string[]
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    ipGroupsName string
    The name of the ipGroups.
    location string
    Resource location.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group.
    id str
    Resource ID.
    ip_addresses Sequence[str]
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    ip_groups_name str
    The name of the ipGroups.
    location str
    Resource location.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group.
    id String
    Resource ID.
    ipAddresses List<String>
    IpAddresses/IpAddressPrefixes in the IpGroups resource.
    ipGroupsName String
    The name of the ipGroups.
    location String
    Resource location.
    tags Map<String>
    Resource tags.

    Outputs

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

    Etag string
    A unique read-only string that changes whenever the resource is updated.
    FirewallPolicies List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    List of references to Firewall Policies resources that this IpGroups is associated with.
    Firewalls List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
    List of references to Firewall resources that this IpGroups is associated with.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state of the IpGroups resource.
    Type string
    Resource type.
    Etag string
    A unique read-only string that changes whenever the resource is updated.
    FirewallPolicies []SubResourceResponse
    List of references to Firewall Policies resources that this IpGroups is associated with.
    Firewalls []SubResourceResponse
    List of references to Firewall resources that this IpGroups is associated with.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state of the IpGroups resource.
    Type string
    Resource type.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    firewallPolicies List<SubResourceResponse>
    List of references to Firewall Policies resources that this IpGroups is associated with.
    firewalls List<SubResourceResponse>
    List of references to Firewall resources that this IpGroups is associated with.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    The provisioning state of the IpGroups resource.
    type String
    Resource type.
    etag string
    A unique read-only string that changes whenever the resource is updated.
    firewallPolicies SubResourceResponse[]
    List of references to Firewall Policies resources that this IpGroups is associated with.
    firewalls SubResourceResponse[]
    List of references to Firewall resources that this IpGroups is associated with.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    provisioningState string
    The provisioning state of the IpGroups resource.
    type string
    Resource type.
    etag str
    A unique read-only string that changes whenever the resource is updated.
    firewall_policies Sequence[SubResourceResponse]
    List of references to Firewall Policies resources that this IpGroups is associated with.
    firewalls Sequence[SubResourceResponse]
    List of references to Firewall resources that this IpGroups is associated with.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    provisioning_state str
    The provisioning state of the IpGroups resource.
    type str
    Resource type.
    etag String
    A unique read-only string that changes whenever the resource is updated.
    firewallPolicies List<Property Map>
    List of references to Firewall Policies resources that this IpGroups is associated with.
    firewalls List<Property Map>
    List of references to Firewall resources that this IpGroups is associated with.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    The provisioning state of the IpGroups resource.
    type String
    Resource type.

    Supporting Types

    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:IpGroup ipGroups1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName} 
    

    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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi