Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.dns.getDomainTxtGuid
Explore with Pulumi AI
Provides the generation of txt records to realize the retrieval and verification of domain names.
NOTE: Available in v1.80.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const this = alicloud.dns.getDomainTxtGuid({
domainName: "test111.abc",
type: "ADD_SUB_DOMAIN",
});
export const rr = _this.then(_this => _this.rr);
export const value = _this.then(_this => _this.value);
import pulumi
import pulumi_alicloud as alicloud
this = alicloud.dns.get_domain_txt_guid(domain_name="test111.abc",
type="ADD_SUB_DOMAIN")
pulumi.export("rr", this.rr)
pulumi.export("value", this.value)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := dns.GetDomainTxtGuid(ctx, &dns.GetDomainTxtGuidArgs{
DomainName: "test111.abc",
Type: "ADD_SUB_DOMAIN",
}, nil)
if err != nil {
return err
}
ctx.Export("rr", this.Rr)
ctx.Export("value", this.Value)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @this = AliCloud.Dns.GetDomainTxtGuid.Invoke(new()
{
DomainName = "test111.abc",
Type = "ADD_SUB_DOMAIN",
});
return new Dictionary<string, object?>
{
["rr"] = @this.Apply(@this => @this.Apply(getDomainTxtGuidResult => getDomainTxtGuidResult.Rr)),
["value"] = @this.Apply(@this => @this.Apply(getDomainTxtGuidResult => getDomainTxtGuidResult.Value)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.DnsFunctions;
import com.pulumi.alicloud.dns.inputs.GetDomainTxtGuidArgs;
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 this = DnsFunctions.getDomainTxtGuid(GetDomainTxtGuidArgs.builder()
.domainName("test111.abc")
.type("ADD_SUB_DOMAIN")
.build());
ctx.export("rr", this_.rr());
ctx.export("value", this_.value());
}
}
variables:
this:
fn::invoke:
Function: alicloud:dns:getDomainTxtGuid
Arguments:
domainName: test111.abc
type: ADD_SUB_DOMAIN
outputs:
rr: ${this.rr}
value: ${this.value}
Using getDomainTxtGuid
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 getDomainTxtGuid(args: GetDomainTxtGuidArgs, opts?: InvokeOptions): Promise<GetDomainTxtGuidResult>
function getDomainTxtGuidOutput(args: GetDomainTxtGuidOutputArgs, opts?: InvokeOptions): Output<GetDomainTxtGuidResult>
def get_domain_txt_guid(domain_name: Optional[str] = None,
lang: Optional[str] = None,
output_file: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainTxtGuidResult
def get_domain_txt_guid_output(domain_name: Optional[pulumi.Input[str]] = None,
lang: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainTxtGuidResult]
func GetDomainTxtGuid(ctx *Context, args *GetDomainTxtGuidArgs, opts ...InvokeOption) (*GetDomainTxtGuidResult, error)
func GetDomainTxtGuidOutput(ctx *Context, args *GetDomainTxtGuidOutputArgs, opts ...InvokeOption) GetDomainTxtGuidResultOutput
> Note: This function is named GetDomainTxtGuid
in the Go SDK.
public static class GetDomainTxtGuid
{
public static Task<GetDomainTxtGuidResult> InvokeAsync(GetDomainTxtGuidArgs args, InvokeOptions? opts = null)
public static Output<GetDomainTxtGuidResult> Invoke(GetDomainTxtGuidInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainTxtGuidResult> getDomainTxtGuid(GetDomainTxtGuidArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dns/getDomainTxtGuid:getDomainTxtGuid
arguments:
# arguments dictionary
The following arguments are supported:
- Domain
Name string - Verified domain name.
- Type string
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - Lang string
- User language.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Domain
Name string - Verified domain name.
- Type string
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - Lang string
- User language.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- domain
Name String - Verified domain name.
- type String
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - lang String
- User language.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- domain
Name string - Verified domain name.
- type string
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - lang string
- User language.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- domain_
name str - Verified domain name.
- type str
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - lang str
- User language.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- domain
Name String - Verified domain name.
- type String
- Txt verification function. Value:
ADD_SUB_DOMAIN
,RETRIEVAL
. - lang String
- User language.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getDomainTxtGuid Result
The following output properties are available:
- Domain
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Rr string
- Host record.
- Type string
- Value string
- Record the value.
- Lang string
- Output
File string
- Domain
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Rr string
- Host record.
- Type string
- Value string
- Record the value.
- Lang string
- Output
File string
- domain
Name String - id String
- The provider-assigned unique ID for this managed resource.
- rr String
- Host record.
- type String
- value String
- Record the value.
- lang String
- output
File String
- domain
Name string - id string
- The provider-assigned unique ID for this managed resource.
- rr string
- Host record.
- type string
- value string
- Record the value.
- lang string
- output
File string
- domain_
name str - id str
- The provider-assigned unique ID for this managed resource.
- rr str
- Host record.
- type str
- value str
- Record the value.
- lang str
- output_
file str
- domain
Name String - id String
- The provider-assigned unique ID for this managed resource.
- rr String
- Host record.
- type String
- value String
- Record the value.
- lang String
- output
File String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.