1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getTeoWebSecurityTemplates
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Use this data source to query detailed information of TEO web security policy templates

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const templates = tencentcloud.getTeoWebSecurityTemplates({
        zoneIds: ["zone-3fkff38fyw8s"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    templates = tencentcloud.get_teo_web_security_templates(zone_ids=["zone-3fkff38fyw8s"])
    
    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.GetTeoWebSecurityTemplates(ctx, &tencentcloud.GetTeoWebSecurityTemplatesArgs{
    			ZoneIds: []string{
    				"zone-3fkff38fyw8s",
    			},
    		}, 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 templates = Tencentcloud.GetTeoWebSecurityTemplates.Invoke(new()
        {
            ZoneIds = new[]
            {
                "zone-3fkff38fyw8s",
            },
        });
    
    });
    
    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.GetTeoWebSecurityTemplatesArgs;
    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 templates = TencentcloudFunctions.getTeoWebSecurityTemplates(GetTeoWebSecurityTemplatesArgs.builder()
                .zoneIds("zone-3fkff38fyw8s")
                .build());
    
        }
    }
    
    variables:
      templates:
        fn::invoke:
          function: tencentcloud:getTeoWebSecurityTemplates
          arguments:
            zoneIds:
              - zone-3fkff38fyw8s
    
    Example coming soon!
    

    Using getTeoWebSecurityTemplates

    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 getTeoWebSecurityTemplates(args: GetTeoWebSecurityTemplatesArgs, opts?: InvokeOptions): Promise<GetTeoWebSecurityTemplatesResult>
    function getTeoWebSecurityTemplatesOutput(args: GetTeoWebSecurityTemplatesOutputArgs, opts?: InvokeOptions): Output<GetTeoWebSecurityTemplatesResult>
    def get_teo_web_security_templates(id: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       zone_ids: Optional[Sequence[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetTeoWebSecurityTemplatesResult
    def get_teo_web_security_templates_output(id: pulumi.Input[Optional[str]] = None,
                                       result_output_file: pulumi.Input[Optional[str]] = None,
                                       zone_ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetTeoWebSecurityTemplatesResult]
    func GetTeoWebSecurityTemplates(ctx *Context, args *GetTeoWebSecurityTemplatesArgs, opts ...InvokeOption) (*GetTeoWebSecurityTemplatesResult, error)
    func GetTeoWebSecurityTemplatesOutput(ctx *Context, args *GetTeoWebSecurityTemplatesOutputArgs, opts ...InvokeOption) GetTeoWebSecurityTemplatesResultOutput

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

    public static class GetTeoWebSecurityTemplates 
    {
        public static Task<GetTeoWebSecurityTemplatesResult> InvokeAsync(GetTeoWebSecurityTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetTeoWebSecurityTemplatesResult> Invoke(GetTeoWebSecurityTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeoWebSecurityTemplatesResult> getTeoWebSecurityTemplates(GetTeoWebSecurityTemplatesArgs args, InvokeOptions options)
    public static Output<GetTeoWebSecurityTemplatesResult> getTeoWebSecurityTemplates(GetTeoWebSecurityTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTeoWebSecurityTemplates:getTeoWebSecurityTemplates
      arguments:
        # arguments dictionary
    data "tencentcloud_getteowebsecuritytemplates" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneIds List<string>
    Zone ID list. Up to 100 zone IDs per query.
    Id string
    ResultOutputFile string
    Used to save results.
    ZoneIds []string
    Zone ID list. Up to 100 zone IDs per query.
    Id string
    ResultOutputFile string
    Used to save results.
    zone_ids list(string)
    Zone ID list. Up to 100 zone IDs per query.
    id string
    result_output_file string
    Used to save results.
    zoneIds List<String>
    Zone ID list. Up to 100 zone IDs per query.
    id String
    resultOutputFile String
    Used to save results.
    zoneIds string[]
    Zone ID list. Up to 100 zone IDs per query.
    id string
    resultOutputFile string
    Used to save results.
    zone_ids Sequence[str]
    Zone ID list. Up to 100 zone IDs per query.
    id str
    result_output_file str
    Used to save results.
    zoneIds List<String>
    Zone ID list. Up to 100 zone IDs per query.
    id String
    resultOutputFile String
    Used to save results.

    getTeoWebSecurityTemplates Result

    The following output properties are available:

    id string
    security_policy_templates list(object)
    Security policy template list.
    zone_ids list(string)
    result_output_file string
    id String
    securityPolicyTemplates List<Property Map>
    Security policy template list.
    zoneIds List<String>
    resultOutputFile String

    Supporting Types

    GetTeoWebSecurityTemplatesSecurityPolicyTemplate

    BindDomains List<GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain>
    Domain binding information for the policy template.
    TemplateId string
    Policy template ID.
    TemplateName string
    Policy template name.
    ZoneId string
    Zone ID that the policy template belongs to.
    BindDomains []GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain
    Domain binding information for the policy template.
    TemplateId string
    Policy template ID.
    TemplateName string
    Policy template name.
    ZoneId string
    Zone ID that the policy template belongs to.
    bind_domains list(object)
    Domain binding information for the policy template.
    template_id string
    Policy template ID.
    template_name string
    Policy template name.
    zone_id string
    Zone ID that the policy template belongs to.
    bindDomains List<GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain>
    Domain binding information for the policy template.
    templateId String
    Policy template ID.
    templateName String
    Policy template name.
    zoneId String
    Zone ID that the policy template belongs to.
    bindDomains GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain[]
    Domain binding information for the policy template.
    templateId string
    Policy template ID.
    templateName string
    Policy template name.
    zoneId string
    Zone ID that the policy template belongs to.
    bind_domains Sequence[GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain]
    Domain binding information for the policy template.
    template_id str
    Policy template ID.
    template_name str
    Policy template name.
    zone_id str
    Zone ID that the policy template belongs to.
    bindDomains List<Property Map>
    Domain binding information for the policy template.
    templateId String
    Policy template ID.
    templateName String
    Policy template name.
    zoneId String
    Zone ID that the policy template belongs to.

    GetTeoWebSecurityTemplatesSecurityPolicyTemplateBindDomain

    Domain string
    Domain name.
    Status string
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    ZoneId string
    Zone ID that the policy template belongs to.
    Domain string
    Domain name.
    Status string
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    ZoneId string
    Zone ID that the policy template belongs to.
    domain string
    Domain name.
    status string
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    zone_id string
    Zone ID that the policy template belongs to.
    domain String
    Domain name.
    status String
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    zoneId String
    Zone ID that the policy template belongs to.
    domain string
    Domain name.
    status string
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    zoneId string
    Zone ID that the policy template belongs to.
    domain str
    Domain name.
    status str
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    zone_id str
    Zone ID that the policy template belongs to.
    domain String
    Domain name.
    status String
    Binding status. Valid values: process (binding in progress), online (binding succeeded), fail (binding failed).
    zoneId String
    Zone ID that the policy template belongs to.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.