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

tencentcloud.getProtocolTemplates

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 protocol templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getProtocolTemplates({
        name: "test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_protocol_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.GetProtocolTemplates(ctx, &tencentcloud.GetProtocolTemplatesArgs{
    			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.GetProtocolTemplates.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.GetProtocolTemplatesArgs;
    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.getProtocolTemplates(GetProtocolTemplatesArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getProtocolTemplates
          arguments:
            name: test
    

    Using getProtocolTemplates

    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 getProtocolTemplates(args: GetProtocolTemplatesArgs, opts?: InvokeOptions): Promise<GetProtocolTemplatesResult>
    function getProtocolTemplatesOutput(args: GetProtocolTemplatesOutputArgs, opts?: InvokeOptions): Output<GetProtocolTemplatesResult>
    def get_protocol_templates(id: Optional[str] = None,
                               name: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetProtocolTemplatesResult
    def get_protocol_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[GetProtocolTemplatesResult]
    func GetProtocolTemplates(ctx *Context, args *GetProtocolTemplatesArgs, opts ...InvokeOption) (*GetProtocolTemplatesResult, error)
    func GetProtocolTemplatesOutput(ctx *Context, args *GetProtocolTemplatesOutputArgs, opts ...InvokeOption) GetProtocolTemplatesResultOutput

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

    public static class GetProtocolTemplates 
    {
        public static Task<GetProtocolTemplatesResult> InvokeAsync(GetProtocolTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetProtocolTemplatesResult> Invoke(GetProtocolTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProtocolTemplatesResult> getProtocolTemplates(GetProtocolTemplatesArgs args, InvokeOptions options)
    public static Output<GetProtocolTemplatesResult> getProtocolTemplates(GetProtocolTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getProtocolTemplates:getProtocolTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getProtocolTemplates Result

    The following output properties are available:

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

    Supporting Types

    GetProtocolTemplatesTemplateList

    Id string
    ID of the protocol template to query.
    Name string
    Name of the protocol template to query.
    Protocols List<string>
    Set of the protocols.
    Id string
    ID of the protocol template to query.
    Name string
    Name of the protocol template to query.
    Protocols []string
    Set of the protocols.
    id String
    ID of the protocol template to query.
    name String
    Name of the protocol template to query.
    protocols List<String>
    Set of the protocols.
    id string
    ID of the protocol template to query.
    name string
    Name of the protocol template to query.
    protocols string[]
    Set of the protocols.
    id str
    ID of the protocol template to query.
    name str
    Name of the protocol template to query.
    protocols Sequence[str]
    Set of the protocols.
    id String
    ID of the protocol template to query.
    name String
    Name of the protocol template to query.
    protocols List<String>
    Set of the protocols.

    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