published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 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",
});
export const domainStatus = foo.status;
export const recordCount = foo.recordCount;
export const domainGrade = foo.grade;
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.DnspodDomainInstance("foo",
domain="hello.com",
remark="this is demo")
pulumi.export("domainStatus", foo.status)
pulumi.export("recordCount", foo.record_count)
pulumi.export("domainGrade", foo.grade)
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 {
foo, err := tencentcloud.NewDnspodDomainInstance(ctx, "foo", &tencentcloud.DnspodDomainInstanceArgs{
Domain: pulumi.String("hello.com"),
Remark: pulumi.String("this is demo"),
})
if err != nil {
return err
}
ctx.Export("domainStatus", foo.Status)
ctx.Export("recordCount", foo.RecordCount)
ctx.Export("domainGrade", foo.Grade)
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",
});
return new Dictionary<string, object?>
{
["domainStatus"] = foo.Status,
["recordCount"] = foo.RecordCount,
["domainGrade"] = foo.Grade,
};
});
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());
ctx.export("domainStatus", foo.status());
ctx.export("recordCount", foo.recordCount());
ctx.export("domainGrade", foo.grade());
}
}
resources:
foo:
type: tencentcloud:DnspodDomainInstance
properties:
domain: hello.com
remark: this is demo
outputs:
# Access computed fields
domainStatus: ${foo.status}
recordCount: ${foo.recordCount}
domainGrade: ${foo.grade}
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:
Outputs
All input properties are implicitly available as output properties. Additionally, the DnspodDomainInstance resource produces the following output properties:
- Create
Time string - Create time of the domain.
- Domain
Id double - ID of the domain.
- Grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Count double - Number of DNS records under this domain.
- Slave
Dns string - Is secondary DNS enabled.
- Updated
On string - Last modification time of the domain.
- Create
Time string - Create time of the domain.
- Domain
Id float64 - ID of the domain.
- Grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Count float64 - Number of DNS records under this domain.
- Slave
Dns string - Is secondary DNS enabled.
- Updated
On string - Last modification time of the domain.
- create
Time String - Create time of the domain.
- domain
Id Double - ID of the domain.
- grade String
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- id String
- The provider-assigned unique ID for this managed resource.
- record
Count Double - Number of DNS records under this domain.
- slave
Dns String - Is secondary DNS enabled.
- updated
On String - Last modification time of the domain.
- create
Time string - Create time of the domain.
- domain
Id number - ID of the domain.
- grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- id string
- The provider-assigned unique ID for this managed resource.
- record
Count number - Number of DNS records under this domain.
- slave
Dns string - Is secondary DNS enabled.
- updated
On string - Last modification time of the domain.
- create_
time str - Create time of the domain.
- domain_
id float - ID of the domain.
- grade str
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- id str
- The provider-assigned unique ID for this managed resource.
- record_
count float - Number of DNS records under this domain.
- slave_
dns str - Is secondary DNS enabled.
- updated_
on str - Last modification time of the domain.
- create
Time String - Create time of the domain.
- domain
Id Number - ID of the domain.
- grade String
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- id String
- The provider-assigned unique ID for this managed resource.
- record
Count Number - Number of DNS records under this domain.
- slave
Dns String - Is secondary DNS enabled.
- updated
On String - Last modification time of the domain.
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,
grade: Optional[str] = None,
group_id: Optional[float] = None,
is_mark: Optional[str] = None,
record_count: Optional[float] = None,
remark: Optional[str] = None,
slave_dns: Optional[str] = None,
status: Optional[str] = None,
updated_on: Optional[str] = None) -> DnspodDomainInstancefunc 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.
- Create
Time string - Create time of the domain.
- Dnspod
Domain stringInstance Id - ID of the resource.
- Domain string
- The Domain.
- Domain
Id double - ID of the domain.
- Grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- Group
Id double - The Group Id of Domain.
- Is
Mark string - Whether to Mark the Domain.
- Record
Count double - Number of DNS records under this domain.
- Remark string
- The remark of Domain.
- Slave
Dns string - Is secondary DNS enabled.
- Status string
- The status of Domain.
- Updated
On string - Last modification time of the domain.
- Create
Time string - Create time of the domain.
- Dnspod
Domain stringInstance Id - ID of the resource.
- Domain string
- The Domain.
- Domain
Id float64 - ID of the domain.
- Grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- Group
Id float64 - The Group Id of Domain.
- Is
Mark string - Whether to Mark the Domain.
- Record
Count float64 - Number of DNS records under this domain.
- Remark string
- The remark of Domain.
- Slave
Dns string - Is secondary DNS enabled.
- Status string
- The status of Domain.
- Updated
On string - Last modification time of the domain.
- create
Time String - Create time of the domain.
- dnspod
Domain StringInstance Id - ID of the resource.
- domain String
- The Domain.
- domain
Id Double - ID of the domain.
- grade String
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- group
Id Double - The Group Id of Domain.
- is
Mark String - Whether to Mark the Domain.
- record
Count Double - Number of DNS records under this domain.
- remark String
- The remark of Domain.
- slave
Dns String - Is secondary DNS enabled.
- status String
- The status of Domain.
- updated
On String - Last modification time of the domain.
- create
Time string - Create time of the domain.
- dnspod
Domain stringInstance Id - ID of the resource.
- domain string
- The Domain.
- domain
Id number - ID of the domain.
- grade string
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- group
Id number - The Group Id of Domain.
- is
Mark string - Whether to Mark the Domain.
- record
Count number - Number of DNS records under this domain.
- remark string
- The remark of Domain.
- slave
Dns string - Is secondary DNS enabled.
- status string
- The status of Domain.
- updated
On string - Last modification time of the domain.
- create_
time str - Create time of the domain.
- dnspod_
domain_ strinstance_ id - ID of the resource.
- domain str
- The Domain.
- domain_
id float - ID of the domain.
- grade str
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- group_
id float - The Group Id of Domain.
- is_
mark str - Whether to Mark the Domain.
- record_
count float - Number of DNS records under this domain.
- remark str
- The remark of Domain.
- slave_
dns str - Is secondary DNS enabled.
- status str
- The status of Domain.
- updated_
on str - Last modification time of the domain.
- create
Time String - Create time of the domain.
- dnspod
Domain StringInstance Id - ID of the resource.
- domain String
- The Domain.
- domain
Id Number - ID of the domain.
- grade String
- The DNS plan/package grade of the domain (e.g., DP_Free, DP_Plus).
- group
Id Number - The Group Id of Domain.
- is
Mark String - Whether to Mark the Domain.
- record
Count Number - Number of DNS records under this domain.
- remark String
- The remark of Domain.
- slave
Dns String - Is secondary DNS enabled.
- status String
- The status of Domain.
- updated
On String - Last modification time of the 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
tencentcloudTerraform Provider.
published on Friday, Mar 6, 2026 by tencentcloudstack
