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

tencentcloud.getDayuCcHttpPolicies

Explore with Pulumi AI

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

    Use this data source to query dayu CC http policies

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const idTest = tencentcloud.getDayuCcHttpPolicies({
        resourceType: tencentcloud_dayu_cc_http_policy.test_policy.resource_type,
        resourceId: tencentcloud_dayu_cc_http_policy.test_policy.resource_id,
        policyId: tencentcloud_dayu_cc_http_policy.test_policy.policy_id,
    });
    const nameTest = tencentcloud.getDayuCcHttpPolicies({
        resourceType: tencentcloud_dayu_cc_http_policy.test_policy.resource_type,
        resourceId: tencentcloud_dayu_cc_http_policy.test_policy.resource_id,
        name: tencentcloud_dayu_cc_http_policy.test_policy.name,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    id_test = tencentcloud.get_dayu_cc_http_policies(resource_type=tencentcloud_dayu_cc_http_policy["test_policy"]["resource_type"],
        resource_id=tencentcloud_dayu_cc_http_policy["test_policy"]["resource_id"],
        policy_id=tencentcloud_dayu_cc_http_policy["test_policy"]["policy_id"])
    name_test = tencentcloud.get_dayu_cc_http_policies(resource_type=tencentcloud_dayu_cc_http_policy["test_policy"]["resource_type"],
        resource_id=tencentcloud_dayu_cc_http_policy["test_policy"]["resource_id"],
        name=tencentcloud_dayu_cc_http_policy["test_policy"]["name"])
    
    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.GetDayuCcHttpPolicies(ctx, &tencentcloud.GetDayuCcHttpPoliciesArgs{
    			ResourceType: tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
    			ResourceId:   tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
    			PolicyId:     pulumi.StringRef(tencentcloud_dayu_cc_http_policy.Test_policy.Policy_id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetDayuCcHttpPolicies(ctx, &tencentcloud.GetDayuCcHttpPoliciesArgs{
    			ResourceType: tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
    			ResourceId:   tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
    			Name:         pulumi.StringRef(tencentcloud_dayu_cc_http_policy.Test_policy.Name),
    		}, 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 idTest = Tencentcloud.GetDayuCcHttpPolicies.Invoke(new()
        {
            ResourceType = tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
            ResourceId = tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
            PolicyId = tencentcloud_dayu_cc_http_policy.Test_policy.Policy_id,
        });
    
        var nameTest = Tencentcloud.GetDayuCcHttpPolicies.Invoke(new()
        {
            ResourceType = tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
            ResourceId = tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
            Name = tencentcloud_dayu_cc_http_policy.Test_policy.Name,
        });
    
    });
    
    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.GetDayuCcHttpPoliciesArgs;
    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 idTest = TencentcloudFunctions.getDayuCcHttpPolicies(GetDayuCcHttpPoliciesArgs.builder()
                .resourceType(tencentcloud_dayu_cc_http_policy.test_policy().resource_type())
                .resourceId(tencentcloud_dayu_cc_http_policy.test_policy().resource_id())
                .policyId(tencentcloud_dayu_cc_http_policy.test_policy().policy_id())
                .build());
    
            final var nameTest = TencentcloudFunctions.getDayuCcHttpPolicies(GetDayuCcHttpPoliciesArgs.builder()
                .resourceType(tencentcloud_dayu_cc_http_policy.test_policy().resource_type())
                .resourceId(tencentcloud_dayu_cc_http_policy.test_policy().resource_id())
                .name(tencentcloud_dayu_cc_http_policy.test_policy().name())
                .build());
    
        }
    }
    
    variables:
      idTest:
        fn::invoke:
          function: tencentcloud:getDayuCcHttpPolicies
          arguments:
            resourceType: ${tencentcloud_dayu_cc_http_policy.test_policy.resource_type}
            resourceId: ${tencentcloud_dayu_cc_http_policy.test_policy.resource_id}
            policyId: ${tencentcloud_dayu_cc_http_policy.test_policy.policy_id}
      nameTest:
        fn::invoke:
          function: tencentcloud:getDayuCcHttpPolicies
          arguments:
            resourceType: ${tencentcloud_dayu_cc_http_policy.test_policy.resource_type}
            resourceId: ${tencentcloud_dayu_cc_http_policy.test_policy.resource_id}
            name: ${tencentcloud_dayu_cc_http_policy.test_policy.name}
    

    Using getDayuCcHttpPolicies

    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 getDayuCcHttpPolicies(args: GetDayuCcHttpPoliciesArgs, opts?: InvokeOptions): Promise<GetDayuCcHttpPoliciesResult>
    function getDayuCcHttpPoliciesOutput(args: GetDayuCcHttpPoliciesOutputArgs, opts?: InvokeOptions): Output<GetDayuCcHttpPoliciesResult>
    def get_dayu_cc_http_policies(id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  policy_id: Optional[str] = None,
                                  resource_id: Optional[str] = None,
                                  resource_type: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDayuCcHttpPoliciesResult
    def get_dayu_cc_http_policies_output(id: Optional[pulumi.Input[str]] = None,
                                  name: Optional[pulumi.Input[str]] = None,
                                  policy_id: Optional[pulumi.Input[str]] = None,
                                  resource_id: Optional[pulumi.Input[str]] = None,
                                  resource_type: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDayuCcHttpPoliciesResult]
    func GetDayuCcHttpPolicies(ctx *Context, args *GetDayuCcHttpPoliciesArgs, opts ...InvokeOption) (*GetDayuCcHttpPoliciesResult, error)
    func GetDayuCcHttpPoliciesOutput(ctx *Context, args *GetDayuCcHttpPoliciesOutputArgs, opts ...InvokeOption) GetDayuCcHttpPoliciesResultOutput

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

    public static class GetDayuCcHttpPolicies 
    {
        public static Task<GetDayuCcHttpPoliciesResult> InvokeAsync(GetDayuCcHttpPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetDayuCcHttpPoliciesResult> Invoke(GetDayuCcHttpPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDayuCcHttpPoliciesResult> getDayuCcHttpPolicies(GetDayuCcHttpPoliciesArgs args, InvokeOptions options)
    public static Output<GetDayuCcHttpPoliciesResult> getDayuCcHttpPolicies(GetDayuCcHttpPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuCcHttpPolicies:getDayuCcHttpPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceId string
    ID of the resource that the CC http policy works for.
    ResourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    Id string
    Name string
    Name of the CC http policy to be queried.
    PolicyId string
    Id of the CC http policy to be queried.
    ResultOutputFile string
    Used to save results.
    ResourceId string
    ID of the resource that the CC http policy works for.
    ResourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    Id string
    Name string
    Name of the CC http policy to be queried.
    PolicyId string
    Id of the CC http policy to be queried.
    ResultOutputFile string
    Used to save results.
    resourceId String
    ID of the resource that the CC http policy works for.
    resourceType String
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    id String
    name String
    Name of the CC http policy to be queried.
    policyId String
    Id of the CC http policy to be queried.
    resultOutputFile String
    Used to save results.
    resourceId string
    ID of the resource that the CC http policy works for.
    resourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    id string
    name string
    Name of the CC http policy to be queried.
    policyId string
    Id of the CC http policy to be queried.
    resultOutputFile string
    Used to save results.
    resource_id str
    ID of the resource that the CC http policy works for.
    resource_type str
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    id str
    name str
    Name of the CC http policy to be queried.
    policy_id str
    Id of the CC http policy to be queried.
    result_output_file str
    Used to save results.
    resourceId String
    ID of the resource that the CC http policy works for.
    resourceType String
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    id String
    name String
    Name of the CC http policy to be queried.
    policyId String
    Id of the CC http policy to be queried.
    resultOutputFile String
    Used to save results.

    getDayuCcHttpPolicies Result

    The following output properties are available:

    Id string
    Lists List<GetDayuCcHttpPoliciesList>
    A list of CC http policies. Each element contains the following attributes:
    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for.
    Name string
    Name of the CC self-define http policy.
    PolicyId string
    ID of the CC self-define http policy.
    ResultOutputFile string
    Id string
    Lists []GetDayuCcHttpPoliciesList
    A list of CC http policies. Each element contains the following attributes:
    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for.
    Name string
    Name of the CC self-define http policy.
    PolicyId string
    ID of the CC self-define http policy.
    ResultOutputFile string
    id String
    lists List<GetDayuCcHttpPoliciesList>
    A list of CC http policies. Each element contains the following attributes:
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for.
    name String
    Name of the CC self-define http policy.
    policyId String
    ID of the CC self-define http policy.
    resultOutputFile String
    id string
    lists GetDayuCcHttpPoliciesList[]
    A list of CC http policies. Each element contains the following attributes:
    resourceId string
    ID of the resource that the CC self-define http policy works for.
    resourceType string
    Type of the resource that the CC self-define http policy works for.
    name string
    Name of the CC self-define http policy.
    policyId string
    ID of the CC self-define http policy.
    resultOutputFile string
    id str
    lists Sequence[GetDayuCcHttpPoliciesList]
    A list of CC http policies. Each element contains the following attributes:
    resource_id str
    ID of the resource that the CC self-define http policy works for.
    resource_type str
    Type of the resource that the CC self-define http policy works for.
    name str
    Name of the CC self-define http policy.
    policy_id str
    ID of the CC self-define http policy.
    result_output_file str
    id String
    lists List<Property Map>
    A list of CC http policies. Each element contains the following attributes:
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for.
    name String
    Name of the CC self-define http policy.
    policyId String
    ID of the CC self-define http policy.
    resultOutputFile String

    Supporting Types

    GetDayuCcHttpPoliciesList

    Action string
    Action mode.
    CreateTime string
    Create time of the CC self-define http policy.
    Frequency double
    Max frequency per minute.
    IpLists List<string>
    IP of the CC self-define http policy.
    Name string
    Name of the CC http policy to be queried.
    PolicyId string
    Id of the CC http policy to be queried.
    ResourceId string
    ID of the resource that the CC http policy works for.
    ResourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    RuleLists List<GetDayuCcHttpPoliciesListRuleList>
    Smode string
    Match mode.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    Action string
    Action mode.
    CreateTime string
    Create time of the CC self-define http policy.
    Frequency float64
    Max frequency per minute.
    IpLists []string
    IP of the CC self-define http policy.
    Name string
    Name of the CC http policy to be queried.
    PolicyId string
    Id of the CC http policy to be queried.
    ResourceId string
    ID of the resource that the CC http policy works for.
    ResourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    RuleLists []GetDayuCcHttpPoliciesListRuleList
    Smode string
    Match mode.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    action String
    Action mode.
    createTime String
    Create time of the CC self-define http policy.
    frequency Double
    Max frequency per minute.
    ipLists List<String>
    IP of the CC self-define http policy.
    name String
    Name of the CC http policy to be queried.
    policyId String
    Id of the CC http policy to be queried.
    resourceId String
    ID of the resource that the CC http policy works for.
    resourceType String
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists List<GetDayuCcHttpPoliciesListRuleList>
    smode String
    Match mode.
    switch_ Boolean
    Indicate the CC self-define http policy takes effect or not.
    action string
    Action mode.
    createTime string
    Create time of the CC self-define http policy.
    frequency number
    Max frequency per minute.
    ipLists string[]
    IP of the CC self-define http policy.
    name string
    Name of the CC http policy to be queried.
    policyId string
    Id of the CC http policy to be queried.
    resourceId string
    ID of the resource that the CC http policy works for.
    resourceType string
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists GetDayuCcHttpPoliciesListRuleList[]
    smode string
    Match mode.
    switch boolean
    Indicate the CC self-define http policy takes effect or not.
    action str
    Action mode.
    create_time str
    Create time of the CC self-define http policy.
    frequency float
    Max frequency per minute.
    ip_lists Sequence[str]
    IP of the CC self-define http policy.
    name str
    Name of the CC http policy to be queried.
    policy_id str
    Id of the CC http policy to be queried.
    resource_id str
    ID of the resource that the CC http policy works for.
    resource_type str
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    rule_lists Sequence[GetDayuCcHttpPoliciesListRuleList]
    smode str
    Match mode.
    switch bool
    Indicate the CC self-define http policy takes effect or not.
    action String
    Action mode.
    createTime String
    Create time of the CC self-define http policy.
    frequency Number
    Max frequency per minute.
    ipLists List<String>
    IP of the CC self-define http policy.
    name String
    Name of the CC http policy to be queried.
    policyId String
    Id of the CC http policy to be queried.
    resourceId String
    ID of the resource that the CC http policy works for.
    resourceType String
    Type of the resource that the CC http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists List<Property Map>
    smode String
    Match mode.
    switch Boolean
    Indicate the CC self-define http policy takes effect or not.

    GetDayuCcHttpPoliciesListRuleList

    Operator string
    Skey string
    Value string
    Operator string
    Skey string
    Value string
    operator String
    skey String
    value String
    operator string
    skey string
    value string
    operator str
    skey str
    value str
    operator String
    skey String
    value String

    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