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

tencentcloud.getAddressTemplates

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of address templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getAddressTemplates({
        name: "test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_address_templates(name="test")
    
    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.GetAddressTemplates(ctx, &tencentcloud.GetAddressTemplatesArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		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 name = Tencentcloud.GetAddressTemplates.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    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.GetAddressTemplatesArgs;
    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 name = TencentcloudFunctions.getAddressTemplates(GetAddressTemplatesArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getAddressTemplates
          arguments:
            name: test
    

    Using getAddressTemplates

    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 getAddressTemplates(args: GetAddressTemplatesArgs, opts?: InvokeOptions): Promise<GetAddressTemplatesResult>
    function getAddressTemplatesOutput(args: GetAddressTemplatesOutputArgs, opts?: InvokeOptions): Output<GetAddressTemplatesResult>
    def get_address_templates(id: Optional[str] = None,
                              name: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetAddressTemplatesResult
    def get_address_templates_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetAddressTemplatesResult]
    func GetAddressTemplates(ctx *Context, args *GetAddressTemplatesArgs, opts ...InvokeOption) (*GetAddressTemplatesResult, error)
    func GetAddressTemplatesOutput(ctx *Context, args *GetAddressTemplatesOutputArgs, opts ...InvokeOption) GetAddressTemplatesResultOutput

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

    public static class GetAddressTemplates 
    {
        public static Task<GetAddressTemplatesResult> InvokeAsync(GetAddressTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetAddressTemplatesResult> Invoke(GetAddressTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAddressTemplatesResult> getAddressTemplates(GetAddressTemplatesArgs args, InvokeOptions options)
    public static Output<GetAddressTemplatesResult> getAddressTemplates(GetAddressTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getAddressTemplates:getAddressTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the address template to query.
    Name string
    Name of the address template to query.
    ResultOutputFile string
    Used to save results.
    Id string
    ID of the address template to query.
    Name string
    Name of the address template to query.
    ResultOutputFile string
    Used to save results.
    id String
    ID of the address template to query.
    name String
    Name of the address template to query.
    resultOutputFile String
    Used to save results.
    id string
    ID of the address template to query.
    name string
    Name of the address template to query.
    resultOutputFile string
    Used to save results.
    id str
    ID of the address template to query.
    name str
    Name of the address template to query.
    result_output_file str
    Used to save results.
    id String
    ID of the address template to query.
    name String
    Name of the address template to query.
    resultOutputFile String
    Used to save results.

    getAddressTemplates Result

    The following output properties are available:

    TemplateLists List<GetAddressTemplatesTemplateList>
    Information list of the dedicated address templates.
    Id string
    ID of the address template.
    Name string
    Name of address template.
    ResultOutputFile string
    TemplateLists []GetAddressTemplatesTemplateList
    Information list of the dedicated address templates.
    Id string
    ID of the address template.
    Name string
    Name of address template.
    ResultOutputFile string
    templateLists List<GetAddressTemplatesTemplateList>
    Information list of the dedicated address templates.
    id String
    ID of the address template.
    name String
    Name of address template.
    resultOutputFile String
    templateLists GetAddressTemplatesTemplateList[]
    Information list of the dedicated address templates.
    id string
    ID of the address template.
    name string
    Name of address template.
    resultOutputFile string
    template_lists Sequence[GetAddressTemplatesTemplateList]
    Information list of the dedicated address templates.
    id str
    ID of the address template.
    name str
    Name of address template.
    result_output_file str
    templateLists List<Property Map>
    Information list of the dedicated address templates.
    id String
    ID of the address template.
    name String
    Name of address template.
    resultOutputFile String

    Supporting Types

    GetAddressTemplatesTemplateList

    Addresses List<string>
    Set of the addresses.
    Id string
    ID of the address template to query.
    Name string
    Name of the address template to query.
    Addresses []string
    Set of the addresses.
    Id string
    ID of the address template to query.
    Name string
    Name of the address template to query.
    addresses List<String>
    Set of the addresses.
    id String
    ID of the address template to query.
    name String
    Name of the address template to query.
    addresses string[]
    Set of the addresses.
    id string
    ID of the address template to query.
    name string
    Name of the address template to query.
    addresses Sequence[str]
    Set of the addresses.
    id str
    ID of the address template to query.
    name str
    Name of the address template to query.
    addresses List<String>
    Set of the addresses.
    id String
    ID of the address template to query.
    name String
    Name of the address template to query.

    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