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

tencentcloud.DnspodDomainInstance

Explore with Pulumi AI

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

    Provide a resource to create a DnsPod Domain instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.DnspodDomainInstance("foo", {
        domain: "hello.com",
        remark: "this is demo",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.DnspodDomainInstance("foo",
        domain="hello.com",
        remark="this is demo")
    
    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.NewDnspodDomainInstance(ctx, "foo", &tencentcloud.DnspodDomainInstanceArgs{
    			Domain: pulumi.String("hello.com"),
    			Remark: pulumi.String("this is demo"),
    		})
    		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 foo = new Tencentcloud.DnspodDomainInstance("foo", new()
        {
            Domain = "hello.com",
            Remark = "this is demo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DnspodDomainInstance;
    import com.pulumi.tencentcloud.DnspodDomainInstanceArgs;
    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 foo = new DnspodDomainInstance("foo", DnspodDomainInstanceArgs.builder()
                .domain("hello.com")
                .remark("this is demo")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:DnspodDomainInstance
        properties:
          domain: hello.com
          remark: this is demo
    

    Create DnspodDomainInstance Resource

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

    Constructor syntax

    new DnspodDomainInstance(name: string, args: DnspodDomainInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def DnspodDomainInstance(resource_name: str,
                             args: DnspodDomainInstanceArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnspodDomainInstance(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             domain: Optional[str] = None,
                             dnspod_domain_instance_id: Optional[str] = None,
                             group_id: Optional[float] = None,
                             is_mark: Optional[str] = None,
                             remark: Optional[str] = None,
                             status: Optional[str] = None)
    func NewDnspodDomainInstance(ctx *Context, name string, args DnspodDomainInstanceArgs, opts ...ResourceOption) (*DnspodDomainInstance, error)
    public DnspodDomainInstance(string name, DnspodDomainInstanceArgs args, CustomResourceOptions? opts = null)
    public DnspodDomainInstance(String name, DnspodDomainInstanceArgs args)
    public DnspodDomainInstance(String name, DnspodDomainInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DnspodDomainInstance
    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 DnspodDomainInstanceArgs
    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 DnspodDomainInstanceArgs
    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 DnspodDomainInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnspodDomainInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnspodDomainInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    The Domain.
    DnspodDomainInstanceId string
    ID of the resource.
    GroupId double
    The Group Id of Domain.
    IsMark string
    Whether to Mark the Domain.
    Remark string
    The remark of Domain.
    Status string
    The status of Domain.
    Domain string
    The Domain.
    DnspodDomainInstanceId string
    ID of the resource.
    GroupId float64
    The Group Id of Domain.
    IsMark string
    Whether to Mark the Domain.
    Remark string
    The remark of Domain.
    Status string
    The status of Domain.
    domain String
    The Domain.
    dnspodDomainInstanceId String
    ID of the resource.
    groupId Double
    The Group Id of Domain.
    isMark String
    Whether to Mark the Domain.
    remark String
    The remark of Domain.
    status String
    The status of Domain.
    domain string
    The Domain.
    dnspodDomainInstanceId string
    ID of the resource.
    groupId number
    The Group Id of Domain.
    isMark string
    Whether to Mark the Domain.
    remark string
    The remark of Domain.
    status string
    The status of Domain.
    domain str
    The Domain.
    dnspod_domain_instance_id str
    ID of the resource.
    group_id float
    The Group Id of Domain.
    is_mark str
    Whether to Mark the Domain.
    remark str
    The remark of Domain.
    status str
    The status of Domain.
    domain String
    The Domain.
    dnspodDomainInstanceId String
    ID of the resource.
    groupId Number
    The Group Id of Domain.
    isMark String
    Whether to Mark the Domain.
    remark String
    The remark of Domain.
    status String
    The status of Domain.

    Outputs

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

    CreateTime string
    Create time of the domain.
    DomainId double
    ID of the domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    SlaveDns string
    Is secondary DNS enabled.
    CreateTime string
    Create time of the domain.
    DomainId float64
    ID of the domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    SlaveDns string
    Is secondary DNS enabled.
    createTime String
    Create time of the domain.
    domainId Double
    ID of the domain.
    id String
    The provider-assigned unique ID for this managed resource.
    slaveDns String
    Is secondary DNS enabled.
    createTime string
    Create time of the domain.
    domainId number
    ID of the domain.
    id string
    The provider-assigned unique ID for this managed resource.
    slaveDns string
    Is secondary DNS enabled.
    create_time str
    Create time of the domain.
    domain_id float
    ID of the domain.
    id str
    The provider-assigned unique ID for this managed resource.
    slave_dns str
    Is secondary DNS enabled.
    createTime String
    Create time of the domain.
    domainId Number
    ID of the domain.
    id String
    The provider-assigned unique ID for this managed resource.
    slaveDns String
    Is secondary DNS enabled.

    Look up Existing DnspodDomainInstance Resource

    Get an existing DnspodDomainInstance 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?: DnspodDomainInstanceState, opts?: CustomResourceOptions): DnspodDomainInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            dnspod_domain_instance_id: Optional[str] = None,
            domain: Optional[str] = None,
            domain_id: Optional[float] = None,
            group_id: Optional[float] = None,
            is_mark: Optional[str] = None,
            remark: Optional[str] = None,
            slave_dns: Optional[str] = None,
            status: Optional[str] = None) -> DnspodDomainInstance
    func GetDnspodDomainInstance(ctx *Context, name string, id IDInput, state *DnspodDomainInstanceState, opts ...ResourceOption) (*DnspodDomainInstance, error)
    public static DnspodDomainInstance Get(string name, Input<string> id, DnspodDomainInstanceState? state, CustomResourceOptions? opts = null)
    public static DnspodDomainInstance get(String name, Output<String> id, DnspodDomainInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DnspodDomainInstance    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:
    CreateTime string
    Create time of the domain.
    DnspodDomainInstanceId string
    ID of the resource.
    Domain string
    The Domain.
    DomainId double
    ID of the domain.
    GroupId double
    The Group Id of Domain.
    IsMark string
    Whether to Mark the Domain.
    Remark string
    The remark of Domain.
    SlaveDns string
    Is secondary DNS enabled.
    Status string
    The status of Domain.
    CreateTime string
    Create time of the domain.
    DnspodDomainInstanceId string
    ID of the resource.
    Domain string
    The Domain.
    DomainId float64
    ID of the domain.
    GroupId float64
    The Group Id of Domain.
    IsMark string
    Whether to Mark the Domain.
    Remark string
    The remark of Domain.
    SlaveDns string
    Is secondary DNS enabled.
    Status string
    The status of Domain.
    createTime String
    Create time of the domain.
    dnspodDomainInstanceId String
    ID of the resource.
    domain String
    The Domain.
    domainId Double
    ID of the domain.
    groupId Double
    The Group Id of Domain.
    isMark String
    Whether to Mark the Domain.
    remark String
    The remark of Domain.
    slaveDns String
    Is secondary DNS enabled.
    status String
    The status of Domain.
    createTime string
    Create time of the domain.
    dnspodDomainInstanceId string
    ID of the resource.
    domain string
    The Domain.
    domainId number
    ID of the domain.
    groupId number
    The Group Id of Domain.
    isMark string
    Whether to Mark the Domain.
    remark string
    The remark of Domain.
    slaveDns string
    Is secondary DNS enabled.
    status string
    The status of Domain.
    create_time str
    Create time of the domain.
    dnspod_domain_instance_id str
    ID of the resource.
    domain str
    The Domain.
    domain_id float
    ID of the domain.
    group_id float
    The Group Id of Domain.
    is_mark str
    Whether to Mark the Domain.
    remark str
    The remark of Domain.
    slave_dns str
    Is secondary DNS enabled.
    status str
    The status of Domain.
    createTime String
    Create time of the domain.
    dnspodDomainInstanceId String
    ID of the resource.
    domain String
    The Domain.
    domainId Number
    ID of the domain.
    groupId Number
    The Group Id of Domain.
    isMark String
    Whether to Mark the Domain.
    remark String
    The remark of Domain.
    slaveDns String
    Is secondary DNS enabled.
    status String
    The status of Domain.

    Import

    DnsPod Domain instance can be imported, e.g.

    $ pulumi import tencentcloud:index/dnspodDomainInstance:DnspodDomainInstance foo domain
    

    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