1. Packages
  2. Packages
  3. Hcloud Provider
  4. API Docs
  5. txtRecord
Viewing docs for Hetzner Cloud v1.39.1
published on Thursday, Jul 16, 2026 by Pulumi
hcloud logo
Viewing docs for Hetzner Cloud v1.39.1
published on Thursday, Jul 16, 2026 by Pulumi

    Format a TXT record by splitting it in quoted strings of 255 characters.

    Signature

    txt_record(record string) string
    

    Using txtRecord

    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 txtRecord(args: TxtRecordArgs, opts?: InvokeOptions): Promise<TxtRecordResult>
    function txtRecordOutput(args: TxtRecordOutputArgs, opts?: InvokeOptions): Output<TxtRecordResult>
    def txt_record(record: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> TxtRecordResult
    def txt_record_output(record: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[TxtRecordResult]
    func TxtRecord(ctx *Context, args *TxtRecordArgs, opts ...InvokeOption) (*TxtRecordResult, error)
    func TxtRecordOutput(ctx *Context, args *TxtRecordOutputArgs, opts ...InvokeOption) TxtRecordResultOutput

    > Note: This function is named TxtRecord in the Go SDK.

    public static class TxtRecord 
    {
        public static Task<TxtRecordResult> InvokeAsync(TxtRecordArgs args, InvokeOptions? opts = null)
        public static Output<TxtRecordResult> Invoke(TxtRecordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<TxtRecordResult> txtRecord(TxtRecordArgs args, InvokeOptions options)
    public static Output<TxtRecordResult> txtRecord(TxtRecordArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hcloud:index/txtRecord:txtRecord
      arguments:
        # arguments dictionary
    data "hcloud_txt_record" "name" {
        # arguments
    }

    The following arguments are supported:

    Record string
    Record value to format.
    Record string
    Record value to format.
    record string
    Record value to format.
    record String
    Record value to format.
    record string
    Record value to format.
    record str
    Record value to format.
    record String
    Record value to format.

    txtRecord Result

    The following output properties are available:

    Package Details

    Repository
    Hetzner Cloud pulumi/pulumi-hcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcloud Terraform Provider.
    hcloud logo
    Viewing docs for Hetzner Cloud v1.39.1
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial