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

tencentcloud.getProtocolTemplates

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

name = tencentcloud.get_protocol_templates(name="test")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  name:
    fn::invoke:
      function: tencentcloud:getProtocolTemplates
      arguments:
        name: test
Copy

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>
Copy
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]
Copy
func GetProtocolTemplates(ctx *Context, args *GetProtocolTemplatesArgs, opts ...InvokeOption) (*GetProtocolTemplatesResult, error)
func GetProtocolTemplatesOutput(ctx *Context, args *GetProtocolTemplatesOutputArgs, opts ...InvokeOption) GetProtocolTemplatesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProtocolTemplatesResult> getProtocolTemplates(GetProtocolTemplatesArgs args, InvokeOptions options)
public static Output<GetProtocolTemplatesResult> getProtocolTemplates(GetProtocolTemplatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getProtocolTemplates:getProtocolTemplates
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
ID of the protocol template to query.
Name This property is required. string
Name of the protocol template to query.
Protocols This property is required. List<string>
Set of the protocols.
Id This property is required. string
ID of the protocol template to query.
Name This property is required. string
Name of the protocol template to query.
Protocols This property is required. []string
Set of the protocols.
id This property is required. String
ID of the protocol template to query.
name This property is required. String
Name of the protocol template to query.
protocols This property is required. List<String>
Set of the protocols.
id This property is required. string
ID of the protocol template to query.
name This property is required. string
Name of the protocol template to query.
protocols This property is required. string[]
Set of the protocols.
id This property is required. str
ID of the protocol template to query.
name This property is required. str
Name of the protocol template to query.
protocols This property is required. Sequence[str]
Set of the protocols.
id This property is required. String
ID of the protocol template to query.
name This property is required. String
Name of the protocol template to query.
protocols This property is required. 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.