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

tencentcloud.getCdnDomainVerifier

Explore with Pulumi AI

tencentcloud logo
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.
    AutoVerify bool
    Specify whether to keep first create result instead of re-create again.
    FailedReason string
    Indicates failed reason of verification.
    FreezeRecord bool
    Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
    Id string
    ResultOutputFile string
    Used for save result json.
    VerifyType string
    Specify verify type, values: dns (default), file.
    Domain string
    Specify domain name, e.g. www.examplexxx123.com.
    AutoVerify bool
    Specify whether to keep first create result instead of re-create again.
    FailedReason string
    Indicates failed reason of verification.
    FreezeRecord bool
    Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
    Id string
    ResultOutputFile string
    Used for save result json.
    VerifyType string
    Specify verify type, values: dns (default), file.
    domain String
    Specify domain name, e.g. www.examplexxx123.com.
    autoVerify Boolean
    Specify whether to keep first create result instead of re-create again.
    failedReason String
    Indicates failed reason of verification.
    freezeRecord Boolean
    Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
    id String
    resultOutputFile String
    Used for save result json.
    verifyType String
    Specify verify type, values: dns (default), file.
    domain string
    Specify domain name, e.g. www.examplexxx123.com.
    autoVerify boolean
    Specify whether to keep first create result instead of re-create again.
    failedReason string
    Indicates failed reason of verification.
    freezeRecord boolean
    Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
    id string
    resultOutputFile string
    Used for save result json.
    verifyType 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_file str
    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.
    autoVerify Boolean
    Specify whether to keep first create result instead of re-create again.
    failedReason String
    Indicates failed reason of verification.
    freezeRecord Boolean
    Specify whether the verification record needs to be freeze instead of refresh every 8 hours, this used for domain verification.
    id String
    resultOutputFile String
    Used for save result json.
    verifyType String
    Specify verify type, values: dns (default), file.

    getCdnDomainVerifier Result

    The following output properties are available:

    Domain string
    FileVerifyDomains List<string>
    List of file verified domains.
    FileVerifyName string
    Name of file verifications.
    FileVerifyUrl string
    File verify URL guidance.
    Id string
    Record string
    Resolution record value.
    RecordType string
    Type of resolution.
    SubDomain string
    Sub-domain resolution.
    VerifyResult bool
    Verify result.
    AutoVerify bool
    FailedReason string
    FreezeRecord bool
    ResultOutputFile string
    VerifyType string
    Domain string
    FileVerifyDomains []string
    List of file verified domains.
    FileVerifyName string
    Name of file verifications.
    FileVerifyUrl string
    File verify URL guidance.
    Id string
    Record string
    Resolution record value.
    RecordType string
    Type of resolution.
    SubDomain string
    Sub-domain resolution.
    VerifyResult bool
    Verify result.
    AutoVerify bool
    FailedReason string
    FreezeRecord bool
    ResultOutputFile string
    VerifyType string
    domain String
    fileVerifyDomains List<String>
    List of file verified domains.
    fileVerifyName String
    Name of file verifications.
    fileVerifyUrl String
    File verify URL guidance.
    id String
    record String
    Resolution record value.
    recordType String
    Type of resolution.
    subDomain String
    Sub-domain resolution.
    verifyResult Boolean
    Verify result.
    autoVerify Boolean
    failedReason String
    freezeRecord Boolean
    resultOutputFile String
    verifyType String
    domain string
    fileVerifyDomains string[]
    List of file verified domains.
    fileVerifyName string
    Name of file verifications.
    fileVerifyUrl string
    File verify URL guidance.
    id string
    record string
    Resolution record value.
    recordType string
    Type of resolution.
    subDomain string
    Sub-domain resolution.
    verifyResult boolean
    Verify result.
    autoVerify boolean
    failedReason string
    freezeRecord boolean
    resultOutputFile string
    verifyType string
    domain str
    file_verify_domains Sequence[str]
    List of file verified domains.
    file_verify_name str
    Name of file verifications.
    file_verify_url str
    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_file str
    verify_type str
    domain String
    fileVerifyDomains List<String>
    List of file verified domains.
    fileVerifyName String
    Name of file verifications.
    fileVerifyUrl String
    File verify URL guidance.
    id String
    record String
    Resolution record value.
    recordType String
    Type of resolution.
    subDomain String
    Sub-domain resolution.
    verifyResult Boolean
    Verify result.
    autoVerify Boolean
    failedReason String
    freezeRecord Boolean
    resultOutputFile String
    verifyType String

    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