1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DnspodLineGroup
tencentcloud 1.82.68 published on Friday, Feb 6, 2026 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.68 published on Friday, Feb 6, 2026 by tencentcloudstack

    Provides a resource to create a DNSPod line group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.DnspodLineGroup("example", {
        domain: "example.com",
        name: "telecom_group",
        lines: [
            "电信",
            "移动",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DnspodLineGroup("example",
        domain="example.com",
        name="telecom_group",
        lines=[
            "电信",
            "移动",
        ])
    
    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.NewDnspodLineGroup(ctx, "example", &tencentcloud.DnspodLineGroupArgs{
    			Domain: pulumi.String("example.com"),
    			Name:   pulumi.String("telecom_group"),
    			Lines: pulumi.StringArray{
    				pulumi.String("电信"),
    				pulumi.String("移动"),
    			},
    		})
    		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 example = new Tencentcloud.DnspodLineGroup("example", new()
        {
            Domain = "example.com",
            Name = "telecom_group",
            Lines = new[]
            {
                "电信",
                "移动",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DnspodLineGroup;
    import com.pulumi.tencentcloud.DnspodLineGroupArgs;
    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 example = new DnspodLineGroup("example", DnspodLineGroupArgs.builder()
                .domain("example.com")
                .name("telecom_group")
                .lines(            
                    "电信",
                    "移动")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:DnspodLineGroup
        properties:
          domain: example.com
          name: telecom_group
          lines:
            - 电信
            - 移动
    

    Create DnspodLineGroup Resource

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

    Constructor syntax

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

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

    Domain string
    Domain name.
    Lines List<string>
    List of lines in the group. Maximum 120 lines.
    DnspodLineGroupId string
    ID of the resource.
    Name string
    Line group name, length 1-17 characters.
    Domain string
    Domain name.
    Lines []string
    List of lines in the group. Maximum 120 lines.
    DnspodLineGroupId string
    ID of the resource.
    Name string
    Line group name, length 1-17 characters.
    domain String
    Domain name.
    lines List<String>
    List of lines in the group. Maximum 120 lines.
    dnspodLineGroupId String
    ID of the resource.
    name String
    Line group name, length 1-17 characters.
    domain string
    Domain name.
    lines string[]
    List of lines in the group. Maximum 120 lines.
    dnspodLineGroupId string
    ID of the resource.
    name string
    Line group name, length 1-17 characters.
    domain str
    Domain name.
    lines Sequence[str]
    List of lines in the group. Maximum 120 lines.
    dnspod_line_group_id str
    ID of the resource.
    name str
    Line group name, length 1-17 characters.
    domain String
    Domain name.
    lines List<String>
    List of lines in the group. Maximum 120 lines.
    dnspodLineGroupId String
    ID of the resource.
    name String
    Line group name, length 1-17 characters.

    Outputs

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

    CreatedOn string
    Creation time.
    DomainId double
    Domain ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LineGroupId double
    Line group ID.
    UpdatedOn string
    Update time.
    CreatedOn string
    Creation time.
    DomainId float64
    Domain ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LineGroupId float64
    Line group ID.
    UpdatedOn string
    Update time.
    createdOn String
    Creation time.
    domainId Double
    Domain ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lineGroupId Double
    Line group ID.
    updatedOn String
    Update time.
    createdOn string
    Creation time.
    domainId number
    Domain ID.
    id string
    The provider-assigned unique ID for this managed resource.
    lineGroupId number
    Line group ID.
    updatedOn string
    Update time.
    created_on str
    Creation time.
    domain_id float
    Domain ID.
    id str
    The provider-assigned unique ID for this managed resource.
    line_group_id float
    Line group ID.
    updated_on str
    Update time.
    createdOn String
    Creation time.
    domainId Number
    Domain ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lineGroupId Number
    Line group ID.
    updatedOn String
    Update time.

    Look up Existing DnspodLineGroup Resource

    Get an existing DnspodLineGroup 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?: DnspodLineGroupState, opts?: CustomResourceOptions): DnspodLineGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_on: Optional[str] = None,
            dnspod_line_group_id: Optional[str] = None,
            domain: Optional[str] = None,
            domain_id: Optional[float] = None,
            line_group_id: Optional[float] = None,
            lines: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            updated_on: Optional[str] = None) -> DnspodLineGroup
    func GetDnspodLineGroup(ctx *Context, name string, id IDInput, state *DnspodLineGroupState, opts ...ResourceOption) (*DnspodLineGroup, error)
    public static DnspodLineGroup Get(string name, Input<string> id, DnspodLineGroupState? state, CustomResourceOptions? opts = null)
    public static DnspodLineGroup get(String name, Output<String> id, DnspodLineGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DnspodLineGroup    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:
    CreatedOn string
    Creation time.
    DnspodLineGroupId string
    ID of the resource.
    Domain string
    Domain name.
    DomainId double
    Domain ID.
    LineGroupId double
    Line group ID.
    Lines List<string>
    List of lines in the group. Maximum 120 lines.
    Name string
    Line group name, length 1-17 characters.
    UpdatedOn string
    Update time.
    CreatedOn string
    Creation time.
    DnspodLineGroupId string
    ID of the resource.
    Domain string
    Domain name.
    DomainId float64
    Domain ID.
    LineGroupId float64
    Line group ID.
    Lines []string
    List of lines in the group. Maximum 120 lines.
    Name string
    Line group name, length 1-17 characters.
    UpdatedOn string
    Update time.
    createdOn String
    Creation time.
    dnspodLineGroupId String
    ID of the resource.
    domain String
    Domain name.
    domainId Double
    Domain ID.
    lineGroupId Double
    Line group ID.
    lines List<String>
    List of lines in the group. Maximum 120 lines.
    name String
    Line group name, length 1-17 characters.
    updatedOn String
    Update time.
    createdOn string
    Creation time.
    dnspodLineGroupId string
    ID of the resource.
    domain string
    Domain name.
    domainId number
    Domain ID.
    lineGroupId number
    Line group ID.
    lines string[]
    List of lines in the group. Maximum 120 lines.
    name string
    Line group name, length 1-17 characters.
    updatedOn string
    Update time.
    created_on str
    Creation time.
    dnspod_line_group_id str
    ID of the resource.
    domain str
    Domain name.
    domain_id float
    Domain ID.
    line_group_id float
    Line group ID.
    lines Sequence[str]
    List of lines in the group. Maximum 120 lines.
    name str
    Line group name, length 1-17 characters.
    updated_on str
    Update time.
    createdOn String
    Creation time.
    dnspodLineGroupId String
    ID of the resource.
    domain String
    Domain name.
    domainId Number
    Domain ID.
    lineGroupId Number
    Line group ID.
    lines List<String>
    List of lines in the group. Maximum 120 lines.
    name String
    Line group name, length 1-17 characters.
    updatedOn String
    Update time.

    Import

    DNSPod line group can be imported using the id (format: {domain}#{line_group_id}), e.g.

    $ pulumi import tencentcloud:index/dnspodLineGroup:DnspodLineGroup example example.com#123
    

    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.82.68 published on Friday, Feb 6, 2026 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate