tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCdnDomainVerifier
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Provides a resource to check or create a cdn Domain Verify Record
NOTE:
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const vr = tencentcloud.getCdnDomainVerifier({
domain: "www.examplexxx123.com",
autoVerify: true,
freezeRecord: true,
});
const recordValue = data.tencentcloud_cdn_domain_verifier.record;
const recordType = data.tencentcloud_cdn_domain_verifier.record_type;
import pulumi
import pulumi_tencentcloud as tencentcloud
vr = tencentcloud.get_cdn_domain_verifier(domain="www.examplexxx123.com",
auto_verify=True,
freeze_record=True)
record_value = data["tencentcloud_cdn_domain_verifier"]["record"]
record_type = data["tencentcloud_cdn_domain_verifier"]["record_type"]
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.GetCdnDomainVerifier(ctx, &tencentcloud.GetCdnDomainVerifierArgs{
Domain: "www.examplexxx123.com",
AutoVerify: pulumi.BoolRef(true),
FreezeRecord: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
_ := data.Tencentcloud_cdn_domain_verifier.Record
_ := data.Tencentcloud_cdn_domain_verifier.Record_type
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var vr = Tencentcloud.GetCdnDomainVerifier.Invoke(new()
{
Domain = "www.examplexxx123.com",
AutoVerify = true,
FreezeRecord = true,
});
var recordValue = data.Tencentcloud_cdn_domain_verifier.Record;
var recordType = data.Tencentcloud_cdn_domain_verifier.Record_type;
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCdnDomainVerifierArgs;
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) {
final var vr = TencentcloudFunctions.getCdnDomainVerifier(GetCdnDomainVerifierArgs.builder()
.domain("www.examplexxx123.com")
.autoVerify(true)
.freezeRecord(true)
.build());
final var recordValue = data.tencentcloud_cdn_domain_verifier().record();
final var recordType = data.tencentcloud_cdn_domain_verifier().record_type();
}
}
variables:
vr:
fn::invoke:
function: tencentcloud:getCdnDomainVerifier
arguments:
domain: www.examplexxx123.com
autoVerify: true
freezeRecord: true
recordValue: ${data.tencentcloud_cdn_domain_verifier.record}
recordType: ${data.tencentcloud_cdn_domain_verifier.record_type}
Using getCdnDomainVerifier
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCdnDomainVerifier(args: GetCdnDomainVerifierArgs, opts?: InvokeOptions): Promise<GetCdnDomainVerifierResult>
function getCdnDomainVerifierOutput(args: GetCdnDomainVerifierOutputArgs, opts?: InvokeOptions): Output<GetCdnDomainVerifierResult>
def get_cdn_domain_verifier(auto_verify: Optional[bool] = None,
domain: Optional[str] = None,
failed_reason: Optional[str] = None,
freeze_record: Optional[bool] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
verify_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnDomainVerifierResult
def get_cdn_domain_verifier_output(auto_verify: Optional[pulumi.Input[bool]] = None,
domain: Optional[pulumi.Input[str]] = None,
failed_reason: Optional[pulumi.Input[str]] = None,
freeze_record: Optional[pulumi.Input[bool]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
verify_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdnDomainVerifierResult]
func GetCdnDomainVerifier(ctx *Context, args *GetCdnDomainVerifierArgs, opts ...InvokeOption) (*GetCdnDomainVerifierResult, error)
func GetCdnDomainVerifierOutput(ctx *Context, args *GetCdnDomainVerifierOutputArgs, opts ...InvokeOption) GetCdnDomainVerifierResultOutput
> Note: This function is named GetCdnDomainVerifier
in the Go SDK.
public static class GetCdnDomainVerifier
{
public static Task<GetCdnDomainVerifierResult> InvokeAsync(GetCdnDomainVerifierArgs args, InvokeOptions? opts = null)
public static Output<GetCdnDomainVerifierResult> Invoke(GetCdnDomainVerifierInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCdnDomainVerifierResult> getCdnDomainVerifier(GetCdnDomainVerifierArgs args, InvokeOptions options)
public static Output<GetCdnDomainVerifierResult> getCdnDomainVerifier(GetCdnDomainVerifierArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCdnDomainVerifier:getCdnDomainVerifier
arguments:
# arguments dictionary
The following arguments are supported:
- Domain string
- Specify domain name, e.g.
www.examplexxx123.com
. - Auto
Verify bool - Specify whether to keep first create result instead of re-create again.
- Failed
Reason string - Indicates failed reason of verification.
- Freeze
Record bool - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- Id string
- Result
Output stringFile - Used for save result json.
- Verify
Type string - Specify verify type, values:
dns
(default),file
.
- Domain string
- Specify domain name, e.g.
www.examplexxx123.com
. - Auto
Verify bool - Specify whether to keep first create result instead of re-create again.
- Failed
Reason string - Indicates failed reason of verification.
- Freeze
Record bool - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- Id string
- Result
Output stringFile - Used for save result json.
- Verify
Type string - Specify verify type, values:
dns
(default),file
.
- domain String
- Specify domain name, e.g.
www.examplexxx123.com
. - auto
Verify Boolean - Specify whether to keep first create result instead of re-create again.
- failed
Reason String - Indicates failed reason of verification.
- freeze
Record Boolean - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- id String
- result
Output StringFile - Used for save result json.
- verify
Type String - Specify verify type, values:
dns
(default),file
.
- domain string
- Specify domain name, e.g.
www.examplexxx123.com
. - auto
Verify boolean - Specify whether to keep first create result instead of re-create again.
- failed
Reason string - Indicates failed reason of verification.
- freeze
Record boolean - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- id string
- result
Output stringFile - Used for save result json.
- verify
Type string - Specify verify type, values:
dns
(default),file
.
- domain str
- Specify domain name, e.g.
www.examplexxx123.com
. - auto_
verify bool - Specify whether to keep first create result instead of re-create again.
- failed_
reason str - Indicates failed reason of verification.
- freeze_
record bool - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- id str
- result_
output_ strfile - Used for save result json.
- verify_
type str - Specify verify type, values:
dns
(default),file
.
- domain String
- Specify domain name, e.g.
www.examplexxx123.com
. - auto
Verify Boolean - Specify whether to keep first create result instead of re-create again.
- failed
Reason String - Indicates failed reason of verification.
- freeze
Record Boolean - Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
- id String
- result
Output StringFile - Used for save result json.
- verify
Type String - Specify verify type, values:
dns
(default),file
.
getCdnDomainVerifier Result
The following output properties are available:
- Domain string
- File
Verify List<string>Domains - List of file verified domains.
- File
Verify stringName - Name of file verifications.
- File
Verify stringUrl - File verify URL guidance.
- Id string
- Record string
- Resolution record value.
- Record
Type string - Type of resolution.
- Sub
Domain string - Sub-domain resolution.
- Verify
Result bool - Verify result.
- Auto
Verify bool - Failed
Reason string - Freeze
Record bool - Result
Output stringFile - Verify
Type string
- Domain string
- File
Verify []stringDomains - List of file verified domains.
- File
Verify stringName - Name of file verifications.
- File
Verify stringUrl - File verify URL guidance.
- Id string
- Record string
- Resolution record value.
- Record
Type string - Type of resolution.
- Sub
Domain string - Sub-domain resolution.
- Verify
Result bool - Verify result.
- Auto
Verify bool - Failed
Reason string - Freeze
Record bool - Result
Output stringFile - Verify
Type string
- domain String
- file
Verify List<String>Domains - List of file verified domains.
- file
Verify StringName - Name of file verifications.
- file
Verify StringUrl - File verify URL guidance.
- id String
- record String
- Resolution record value.
- record
Type String - Type of resolution.
- sub
Domain String - Sub-domain resolution.
- verify
Result Boolean - Verify result.
- auto
Verify Boolean - failed
Reason String - freeze
Record Boolean - result
Output StringFile - verify
Type String
- domain string
- file
Verify string[]Domains - List of file verified domains.
- file
Verify stringName - Name of file verifications.
- file
Verify stringUrl - File verify URL guidance.
- id string
- record string
- Resolution record value.
- record
Type string - Type of resolution.
- sub
Domain string - Sub-domain resolution.
- verify
Result boolean - Verify result.
- auto
Verify boolean - failed
Reason string - freeze
Record boolean - result
Output stringFile - verify
Type string
- domain str
- file_
verify_ Sequence[str]domains - List of file verified domains.
- file_
verify_ strname - Name of file verifications.
- file_
verify_ strurl - File verify URL guidance.
- id str
- record str
- Resolution record value.
- record_
type str - Type of resolution.
- sub_
domain str - Sub-domain resolution.
- verify_
result bool - Verify result.
- auto_
verify bool - failed_
reason str - freeze_
record bool - result_
output_ strfile - verify_
type str
- domain String
- file
Verify List<String>Domains - List of file verified domains.
- file
Verify StringName - Name of file verifications.
- file
Verify StringUrl - File verify URL guidance.
- id String
- record String
- Resolution record value.
- record
Type String - Type of resolution.
- sub
Domain String - Sub-domain resolution.
- verify
Result Boolean - Verify result.
- auto
Verify Boolean - failed
Reason String - freeze
Record Boolean - result
Output StringFile - verify
Type String
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack