1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDayuCcHttpsPolicies
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getDayuCcHttpsPolicies

Explore with Pulumi AI

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,
});
Copy
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"])
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.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
	})
}
Copy
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,
    });

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

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetDayuCcHttpsPolicies(ctx *Context, args *GetDayuCcHttpsPoliciesArgs, opts ...InvokeOption) (*GetDayuCcHttpsPoliciesResult, error)
func GetDayuCcHttpsPoliciesOutput(ctx *Context, args *GetDayuCcHttpsPoliciesOutputArgs, opts ...InvokeOption) GetDayuCcHttpsPoliciesResultOutput
Copy

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

The following arguments are supported:

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

GetDayuCcHttpsPoliciesListRuleList

Operator This property is required. string
Skey This property is required. string
Value This property is required. string
Operator This property is required. string
Skey This property is required. string
Value This property is required. string
operator This property is required. String
skey This property is required. String
value This property is required. String
operator This property is required. string
skey This property is required. string
value This property is required. string
operator This property is required. str
skey This property is required. str
value This property is required. str
operator This property is required. String
skey This property is required. String
value This property is required. String

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.