published on Monday, Sep 21, 2026 by tencentcloudstack
published on Monday, Sep 21, 2026 by tencentcloudstack
Provides a resource to manage TEO (EdgeOne) DNS records status config.
NOTE: This resource is currently used to manage default DNS resolution. The same DNS record cannot be used simultaneously with the tencentcloud.TeoDnsRecord resource.
Example Usage
Enable a DNS record
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoDnsRecordsStatus("example", {
zoneId: "zone-3edjdliiw3he",
recordsId: "record-1234567890",
status: "enable",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoDnsRecordsStatus("example",
zone_id="zone-3edjdliiw3he",
records_id="record-1234567890",
status="enable")
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.NewTeoDnsRecordsStatus(ctx, "example", &tencentcloud.TeoDnsRecordsStatusArgs{
ZoneId: pulumi.String("zone-3edjdliiw3he"),
RecordsId: pulumi.String("record-1234567890"),
Status: pulumi.String("enable"),
})
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.TeoDnsRecordsStatus("example", new()
{
ZoneId = "zone-3edjdliiw3he",
RecordsId = "record-1234567890",
Status = "enable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoDnsRecordsStatus;
import com.pulumi.tencentcloud.TeoDnsRecordsStatusArgs;
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 TeoDnsRecordsStatus("example", TeoDnsRecordsStatusArgs.builder()
.zoneId("zone-3edjdliiw3he")
.recordsId("record-1234567890")
.status("enable")
.build());
}
}
resources:
example:
type: tencentcloud:TeoDnsRecordsStatus
properties:
zoneId: zone-3edjdliiw3he
recordsId: record-1234567890
status: enable
Example coming soon!
Disable a DNS record
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoDnsRecordsStatus("example", {
zoneId: "zone-3edjdliiw3he",
recordsId: "record-1234567890",
status: "disable",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoDnsRecordsStatus("example",
zone_id="zone-3edjdliiw3he",
records_id="record-1234567890",
status="disable")
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.NewTeoDnsRecordsStatus(ctx, "example", &tencentcloud.TeoDnsRecordsStatusArgs{
ZoneId: pulumi.String("zone-3edjdliiw3he"),
RecordsId: pulumi.String("record-1234567890"),
Status: pulumi.String("disable"),
})
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.TeoDnsRecordsStatus("example", new()
{
ZoneId = "zone-3edjdliiw3he",
RecordsId = "record-1234567890",
Status = "disable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoDnsRecordsStatus;
import com.pulumi.tencentcloud.TeoDnsRecordsStatusArgs;
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 TeoDnsRecordsStatus("example", TeoDnsRecordsStatusArgs.builder()
.zoneId("zone-3edjdliiw3he")
.recordsId("record-1234567890")
.status("disable")
.build());
}
}
resources:
example:
type: tencentcloud:TeoDnsRecordsStatus
properties:
zoneId: zone-3edjdliiw3he
recordsId: record-1234567890
status: disable
Example coming soon!
Create TeoDnsRecordsStatus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoDnsRecordsStatus(name: string, args: TeoDnsRecordsStatusArgs, opts?: CustomResourceOptions);@overload
def TeoDnsRecordsStatus(resource_name: str,
args: TeoDnsRecordsStatusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoDnsRecordsStatus(resource_name: str,
opts: Optional[ResourceOptions] = None,
records_id: Optional[str] = None,
status: Optional[str] = None,
zone_id: Optional[str] = None,
teo_dns_records_status_id: Optional[str] = None)func NewTeoDnsRecordsStatus(ctx *Context, name string, args TeoDnsRecordsStatusArgs, opts ...ResourceOption) (*TeoDnsRecordsStatus, error)public TeoDnsRecordsStatus(string name, TeoDnsRecordsStatusArgs args, CustomResourceOptions? opts = null)
public TeoDnsRecordsStatus(String name, TeoDnsRecordsStatusArgs args)
public TeoDnsRecordsStatus(String name, TeoDnsRecordsStatusArgs args, CustomResourceOptions options)
type: tencentcloud:TeoDnsRecordsStatus
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_teo_dns_records_status" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeoDnsRecordsStatusArgs
- 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 TeoDnsRecordsStatusArgs
- 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 TeoDnsRecordsStatusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoDnsRecordsStatusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoDnsRecordsStatusArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoDnsRecordsStatus 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 TeoDnsRecordsStatus resource accepts the following input properties:
- Records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - Status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - Zone
Id string - Site ID.
- Teo
Dns stringRecords Status Id - ID of the resource.
- Records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - Status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - Zone
Id string - Site ID.
- Teo
Dns stringRecords Status Id - ID of the resource.
- records_
id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - zone_
id string - Site ID.
- teo_
dns_ stringrecords_ status_ id - ID of the resource.
- records
Id String - DNS record ID, combined with
zone_idas the unique ID of the resource. - status String
- DNS record status. Valid values:
enable(enabled),disable(disabled). - zone
Id String - Site ID.
- teo
Dns StringRecords Status Id - ID of the resource.
- records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - zone
Id string - Site ID.
- teo
Dns stringRecords Status Id - ID of the resource.
- records_
id str - DNS record ID, combined with
zone_idas the unique ID of the resource. - status str
- DNS record status. Valid values:
enable(enabled),disable(disabled). - zone_
id str - Site ID.
- teo_
dns_ strrecords_ status_ id - ID of the resource.
- records
Id String - DNS record ID, combined with
zone_idas the unique ID of the resource. - status String
- DNS record status. Valid values:
enable(enabled),disable(disabled). - zone
Id String - Site ID.
- teo
Dns StringRecords Status Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoDnsRecordsStatus 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 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 TeoDnsRecordsStatus Resource
Get an existing TeoDnsRecordsStatus 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?: TeoDnsRecordsStatusState, opts?: CustomResourceOptions): TeoDnsRecordsStatus@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
records_id: Optional[str] = None,
status: Optional[str] = None,
teo_dns_records_status_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoDnsRecordsStatusfunc GetTeoDnsRecordsStatus(ctx *Context, name string, id IDInput, state *TeoDnsRecordsStatusState, opts ...ResourceOption) (*TeoDnsRecordsStatus, error)public static TeoDnsRecordsStatus Get(string name, Input<string> id, TeoDnsRecordsStatusState? state, CustomResourceOptions? opts = null)public static TeoDnsRecordsStatus get(String name, Output<String> id, TeoDnsRecordsStatusState state, CustomResourceOptions options)resources: _: type: tencentcloud:TeoDnsRecordsStatus get: id: ${id}import {
to = tencentcloud_teo_dns_records_status.example
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.
- Records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - Status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - Teo
Dns stringRecords Status Id - ID of the resource.
- Zone
Id string - Site ID.
- Records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - Status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - Teo
Dns stringRecords Status Id - ID of the resource.
- Zone
Id string - Site ID.
- records_
id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - teo_
dns_ stringrecords_ status_ id - ID of the resource.
- zone_
id string - Site ID.
- records
Id String - DNS record ID, combined with
zone_idas the unique ID of the resource. - status String
- DNS record status. Valid values:
enable(enabled),disable(disabled). - teo
Dns StringRecords Status Id - ID of the resource.
- zone
Id String - Site ID.
- records
Id string - DNS record ID, combined with
zone_idas the unique ID of the resource. - status string
- DNS record status. Valid values:
enable(enabled),disable(disabled). - teo
Dns stringRecords Status Id - ID of the resource.
- zone
Id string - Site ID.
- records_
id str - DNS record ID, combined with
zone_idas the unique ID of the resource. - status str
- DNS record status. Valid values:
enable(enabled),disable(disabled). - teo_
dns_ strrecords_ status_ id - ID of the resource.
- zone_
id str - Site ID.
- records
Id String - DNS record ID, combined with
zone_idas the unique ID of the resource. - status String
- DNS record status. Valid values:
enable(enabled),disable(disabled). - teo
Dns StringRecords Status Id - ID of the resource.
- zone
Id String - Site ID.
Import
TEO (EdgeOne) DNS records status config can be imported using the composite id zone_id#records_id, e.g.
$ pulumi import tencentcloud:index/teoDnsRecordsStatus:TeoDnsRecordsStatus example zone-3edjdliiw3he#record-1234567890
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 Monday, Sep 21, 2026 by tencentcloudstack