1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TeoSecurityIpGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TeoSecurityIpGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a teo teo_security_ip_group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const teoSecurityIpGroup = new tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup", {
        ipGroup: {
            contents: [
                "10.1.1.1",
                "10.1.1.2",
                "10.1.1.3",
            ],
            name: "bbbbb",
        },
        zoneId: "zone-2qtuhspy7cr6",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    teo_security_ip_group = tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup",
        ip_group={
            "contents": [
                "10.1.1.1",
                "10.1.1.2",
                "10.1.1.3",
            ],
            "name": "bbbbb",
        },
        zone_id="zone-2qtuhspy7cr6")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTeoSecurityIpGroup(ctx, "teoSecurityIpGroup", &tencentcloud.TeoSecurityIpGroupArgs{
    			IpGroup: &tencentcloud.TeoSecurityIpGroupIpGroupArgs{
    				Contents: pulumi.StringArray{
    					pulumi.String("10.1.1.1"),
    					pulumi.String("10.1.1.2"),
    					pulumi.String("10.1.1.3"),
    				},
    				Name: pulumi.String("bbbbb"),
    			},
    			ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var teoSecurityIpGroup = new Tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup", new()
        {
            IpGroup = new Tencentcloud.Inputs.TeoSecurityIpGroupIpGroupArgs
            {
                Contents = new[]
                {
                    "10.1.1.1",
                    "10.1.1.2",
                    "10.1.1.3",
                },
                Name = "bbbbb",
            },
            ZoneId = "zone-2qtuhspy7cr6",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoSecurityIpGroup;
    import com.pulumi.tencentcloud.TeoSecurityIpGroupArgs;
    import com.pulumi.tencentcloud.inputs.TeoSecurityIpGroupIpGroupArgs;
    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 teoSecurityIpGroup = new TeoSecurityIpGroup("teoSecurityIpGroup", TeoSecurityIpGroupArgs.builder()
                .ipGroup(TeoSecurityIpGroupIpGroupArgs.builder()
                    .contents(                
                        "10.1.1.1",
                        "10.1.1.2",
                        "10.1.1.3")
                    .name("bbbbb")
                    .build())
                .zoneId("zone-2qtuhspy7cr6")
                .build());
    
        }
    }
    
    resources:
      teoSecurityIpGroup:
        type: tencentcloud:TeoSecurityIpGroup
        properties:
          ipGroup:
            contents:
              - 10.1.1.1
              - 10.1.1.2
              - 10.1.1.3
            name: bbbbb
          zoneId: zone-2qtuhspy7cr6
    

    Create TeoSecurityIpGroup Resource

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

    Constructor syntax

    new TeoSecurityIpGroup(name: string, args: TeoSecurityIpGroupArgs, opts?: CustomResourceOptions);
    @overload
    def TeoSecurityIpGroup(resource_name: str,
                           args: TeoSecurityIpGroupArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoSecurityIpGroup(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           ip_group: Optional[TeoSecurityIpGroupIpGroupArgs] = None,
                           zone_id: Optional[str] = None,
                           teo_security_ip_group_id: Optional[str] = None)
    func NewTeoSecurityIpGroup(ctx *Context, name string, args TeoSecurityIpGroupArgs, opts ...ResourceOption) (*TeoSecurityIpGroup, error)
    public TeoSecurityIpGroup(string name, TeoSecurityIpGroupArgs args, CustomResourceOptions? opts = null)
    public TeoSecurityIpGroup(String name, TeoSecurityIpGroupArgs args)
    public TeoSecurityIpGroup(String name, TeoSecurityIpGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoSecurityIpGroup
    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 TeoSecurityIpGroupArgs
    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 TeoSecurityIpGroupArgs
    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 TeoSecurityIpGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoSecurityIpGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoSecurityIpGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    IpGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    ZoneId string
    Site ID.
    TeoSecurityIpGroupId string
    ID of the resource.
    IpGroup TeoSecurityIpGroupIpGroupArgs
    IP group information, replace all when modifying.
    ZoneId string
    Site ID.
    TeoSecurityIpGroupId string
    ID of the resource.
    ipGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    zoneId String
    Site ID.
    teoSecurityIpGroupId String
    ID of the resource.
    ipGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    zoneId string
    Site ID.
    teoSecurityIpGroupId string
    ID of the resource.
    ip_group TeoSecurityIpGroupIpGroupArgs
    IP group information, replace all when modifying.
    zone_id str
    Site ID.
    teo_security_ip_group_id str
    ID of the resource.
    ipGroup Property Map
    IP group information, replace all when modifying.
    zoneId String
    Site ID.
    teoSecurityIpGroupId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TeoSecurityIpGroup Resource

    Get an existing TeoSecurityIpGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeoSecurityIpGroupState, opts?: CustomResourceOptions): TeoSecurityIpGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ip_group: Optional[TeoSecurityIpGroupIpGroupArgs] = None,
            teo_security_ip_group_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoSecurityIpGroup
    func GetTeoSecurityIpGroup(ctx *Context, name string, id IDInput, state *TeoSecurityIpGroupState, opts ...ResourceOption) (*TeoSecurityIpGroup, error)
    public static TeoSecurityIpGroup Get(string name, Input<string> id, TeoSecurityIpGroupState? state, CustomResourceOptions? opts = null)
    public static TeoSecurityIpGroup get(String name, Output<String> id, TeoSecurityIpGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoSecurityIpGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    IpGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    TeoSecurityIpGroupId string
    ID of the resource.
    ZoneId string
    Site ID.
    IpGroup TeoSecurityIpGroupIpGroupArgs
    IP group information, replace all when modifying.
    TeoSecurityIpGroupId string
    ID of the resource.
    ZoneId string
    Site ID.
    ipGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    teoSecurityIpGroupId String
    ID of the resource.
    zoneId String
    Site ID.
    ipGroup TeoSecurityIpGroupIpGroup
    IP group information, replace all when modifying.
    teoSecurityIpGroupId string
    ID of the resource.
    zoneId string
    Site ID.
    ip_group TeoSecurityIpGroupIpGroupArgs
    IP group information, replace all when modifying.
    teo_security_ip_group_id str
    ID of the resource.
    zone_id str
    Site ID.
    ipGroup Property Map
    IP group information, replace all when modifying.
    teoSecurityIpGroupId String
    ID of the resource.
    zoneId String
    Site ID.

    Supporting Types

    TeoSecurityIpGroupIpGroup, TeoSecurityIpGroupIpGroupArgs

    Contents List<string>
    IP group content. Only supports IP and IP mask.
    Name string
    Group name.
    GroupId double
    Group ID.
    Contents []string
    IP group content. Only supports IP and IP mask.
    Name string
    Group name.
    GroupId float64
    Group ID.
    contents List<String>
    IP group content. Only supports IP and IP mask.
    name String
    Group name.
    groupId Double
    Group ID.
    contents string[]
    IP group content. Only supports IP and IP mask.
    name string
    Group name.
    groupId number
    Group ID.
    contents Sequence[str]
    IP group content. Only supports IP and IP mask.
    name str
    Group name.
    group_id float
    Group ID.
    contents List<String>
    IP group content. Only supports IP and IP mask.
    name String
    Group name.
    groupId Number
    Group ID.

    Import

    teo teo_security_ip_group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/teoSecurityIpGroup:TeoSecurityIpGroup teo_security_ip_group zone_id#group_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack