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

tencentcloud.getDayuCcHttpsPolicies

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 https policies

    Example Usage

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

    Using getDayuCcHttpsPolicies

    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 getDayuCcHttpsPolicies(args: GetDayuCcHttpsPoliciesArgs, opts?: InvokeOptions): Promise<GetDayuCcHttpsPoliciesResult>
    function getDayuCcHttpsPoliciesOutput(args: GetDayuCcHttpsPoliciesOutputArgs, opts?: InvokeOptions): Output<GetDayuCcHttpsPoliciesResult>
    def get_dayu_cc_https_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) -> GetDayuCcHttpsPoliciesResult
    def get_dayu_cc_https_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[GetDayuCcHttpsPoliciesResult]
    func GetDayuCcHttpsPolicies(ctx *Context, args *GetDayuCcHttpsPoliciesArgs, opts ...InvokeOption) (*GetDayuCcHttpsPoliciesResult, error)
    func GetDayuCcHttpsPoliciesOutput(ctx *Context, args *GetDayuCcHttpsPoliciesOutputArgs, opts ...InvokeOption) GetDayuCcHttpsPoliciesResultOutput

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

    public static class GetDayuCcHttpsPolicies 
    {
        public static Task<GetDayuCcHttpsPoliciesResult> InvokeAsync(GetDayuCcHttpsPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetDayuCcHttpsPoliciesResult> Invoke(GetDayuCcHttpsPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDayuCcHttpsPoliciesResult> getDayuCcHttpsPolicies(GetDayuCcHttpsPoliciesArgs args, InvokeOptions options)
    public static Output<GetDayuCcHttpsPoliciesResult> getDayuCcHttpsPolicies(GetDayuCcHttpsPoliciesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuCcHttpsPolicies:getDayuCcHttpsPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceId string
    Id of the resource that the CC https policy works for.
    ResourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    Id string
    Name string
    Name of the CC https policy to be queried.
    PolicyId string
    Id of the CC https policy to be queried.
    ResultOutputFile string
    Used to save results.
    ResourceId string
    Id of the resource that the CC https policy works for.
    ResourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    Id string
    Name string
    Name of the CC https policy to be queried.
    PolicyId string
    Id of the CC https policy to be queried.
    ResultOutputFile string
    Used to save results.
    resourceId String
    Id of the resource that the CC https policy works for.
    resourceType String
    Type of the resource that the CC https policy works for, valid value is bgpip.
    id String
    name String
    Name of the CC https policy to be queried.
    policyId String
    Id of the CC https policy to be queried.
    resultOutputFile String
    Used to save results.
    resourceId string
    Id of the resource that the CC https policy works for.
    resourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    id string
    name string
    Name of the CC https policy to be queried.
    policyId string
    Id of the CC https policy to be queried.
    resultOutputFile string
    Used to save results.
    resource_id str
    Id of the resource that the CC https policy works for.
    resource_type str
    Type of the resource that the CC https policy works for, valid value is bgpip.
    id str
    name str
    Name of the CC https policy to be queried.
    policy_id str
    Id of the CC https policy to be queried.
    result_output_file str
    Used to save results.
    resourceId String
    Id of the resource that the CC https policy works for.
    resourceType String
    Type of the resource that the CC https policy works for, valid value is bgpip.
    id String
    name String
    Name of the CC https policy to be queried.
    policyId String
    Id of the CC https policy to be queried.
    resultOutputFile String
    Used to save results.

    getDayuCcHttpsPolicies Result

    The following output properties are available:

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

    Supporting Types

    GetDayuCcHttpsPoliciesList

    Action string
    Action mode.
    CreateTime string
    Create time of the CC self-define https policy.
    Domain string
    Domain that the CC self-define https policy works for.
    IpLists List<string>
    Ip of the CC self-define https policy.
    Name string
    Name of the CC https policy to be queried.
    PolicyId string
    Id of the CC https policy to be queried.
    ResourceId string
    Id of the resource that the CC https policy works for.
    ResourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    RuleId string
    Rule id of the domain that the CC self-define https policy works for.
    RuleLists List<GetDayuCcHttpsPoliciesListRuleList>
    Switch bool
    Indicate the CC self-define https policy takes effect or not.
    Action string
    Action mode.
    CreateTime string
    Create time of the CC self-define https policy.
    Domain string
    Domain that the CC self-define https policy works for.
    IpLists []string
    Ip of the CC self-define https policy.
    Name string
    Name of the CC https policy to be queried.
    PolicyId string
    Id of the CC https policy to be queried.
    ResourceId string
    Id of the resource that the CC https policy works for.
    ResourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    RuleId string
    Rule id of the domain that the CC self-define https policy works for.
    RuleLists []GetDayuCcHttpsPoliciesListRuleList
    Switch bool
    Indicate the CC self-define https policy takes effect or not.
    action String
    Action mode.
    createTime String
    Create time of the CC self-define https policy.
    domain String
    Domain that the CC self-define https policy works for.
    ipLists List<String>
    Ip of the CC self-define https policy.
    name String
    Name of the CC https policy to be queried.
    policyId String
    Id of the CC https policy to be queried.
    resourceId String
    Id of the resource that the CC https policy works for.
    resourceType String
    Type of the resource that the CC https policy works for, valid value is bgpip.
    ruleId String
    Rule id of the domain that the CC self-define https policy works for.
    ruleLists List<GetDayuCcHttpsPoliciesListRuleList>
    switch_ Boolean
    Indicate the CC self-define https policy takes effect or not.
    action string
    Action mode.
    createTime string
    Create time of the CC self-define https policy.
    domain string
    Domain that the CC self-define https policy works for.
    ipLists string[]
    Ip of the CC self-define https policy.
    name string
    Name of the CC https policy to be queried.
    policyId string
    Id of the CC https policy to be queried.
    resourceId string
    Id of the resource that the CC https policy works for.
    resourceType string
    Type of the resource that the CC https policy works for, valid value is bgpip.
    ruleId string
    Rule id of the domain that the CC self-define https policy works for.
    ruleLists GetDayuCcHttpsPoliciesListRuleList[]
    switch boolean
    Indicate the CC self-define https policy takes effect or not.
    action str
    Action mode.
    create_time str
    Create time of the CC self-define https policy.
    domain str
    Domain that the CC self-define https policy works for.
    ip_lists Sequence[str]
    Ip of the CC self-define https policy.
    name str
    Name of the CC https policy to be queried.
    policy_id str
    Id of the CC https policy to be queried.
    resource_id str
    Id of the resource that the CC https policy works for.
    resource_type str
    Type of the resource that the CC https policy works for, valid value is bgpip.
    rule_id str
    Rule id of the domain that the CC self-define https policy works for.
    rule_lists Sequence[GetDayuCcHttpsPoliciesListRuleList]
    switch bool
    Indicate the CC self-define https policy takes effect or not.
    action String
    Action mode.
    createTime String
    Create time of the CC self-define https policy.
    domain String
    Domain that the CC self-define https policy works for.
    ipLists List<String>
    Ip of the CC self-define https policy.
    name String
    Name of the CC https policy to be queried.
    policyId String
    Id of the CC https policy to be queried.
    resourceId String
    Id of the resource that the CC https policy works for.
    resourceType String
    Type of the resource that the CC https policy works for, valid value is bgpip.
    ruleId String
    Rule id of the domain that the CC self-define https policy works for.
    ruleLists List<Property Map>
    switch Boolean
    Indicate the CC self-define https policy takes effect or not.

    GetDayuCcHttpsPoliciesListRuleList

    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