tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDayuCcHttpPolicies
Explore with Pulumi AI
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:
- Resource
Id string - ID of the resource that the CC http policy works for.
- Resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Id string
- Name string
- Name of the CC http policy to be queried.
- Policy
Id string - Id of the CC http policy to be queried.
- Result
Output stringFile - Used to save results.
- Resource
Id string - ID of the resource that the CC http policy works for.
- Resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Id string
- Name string
- Name of the CC http policy to be queried.
- Policy
Id string - Id of the CC http policy to be queried.
- Result
Output stringFile - Used to save results.
- resource
Id String - ID of the resource that the CC http policy works for.
- resource
Type String - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id String
- name String
- Name of the CC http policy to be queried.
- policy
Id String - Id of the CC http policy to be queried.
- result
Output StringFile - Used to save results.
- resource
Id string - ID of the resource that the CC http policy works for.
- resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id string
- name string
- Name of the CC http policy to be queried.
- policy
Id string - Id of the CC http policy to be queried.
- result
Output stringFile - 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
andnet
. - 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_ strfile - Used to save results.
- resource
Id String - ID of the resource that the CC http policy works for.
- resource
Type String - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - id String
- name String
- Name of the CC http policy to be queried.
- policy
Id String - Id of the CC http policy to be queried.
- result
Output StringFile - Used to save results.
getDayuCcHttpPolicies Result
The following output properties are available:
- Id string
- Lists
List<Get
Dayu Cc Http Policies List> - A list of CC http policies. Each element contains the following attributes:
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for.
- Name string
- Name of the CC self-define http policy.
- Policy
Id string - ID of the CC self-define http policy.
- Result
Output stringFile
- Id string
- Lists
[]Get
Dayu Cc Http Policies List - A list of CC http policies. Each element contains the following attributes:
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for.
- Name string
- Name of the CC self-define http policy.
- Policy
Id string - ID of the CC self-define http policy.
- Result
Output stringFile
- id String
- lists
List<Get
Dayu Cc Http Policies List> - A list of CC http policies. Each element contains the following attributes:
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for.
- name String
- Name of the CC self-define http policy.
- policy
Id String - ID of the CC self-define http policy.
- result
Output StringFile
- id string
- lists
Get
Dayu Cc Http Policies List[] - A list of CC http policies. Each element contains the following attributes:
- resource
Id string - ID of the resource that the CC self-define http policy works for.
- resource
Type string - Type of the resource that the CC self-define http policy works for.
- name string
- Name of the CC self-define http policy.
- policy
Id string - ID of the CC self-define http policy.
- result
Output stringFile
- id str
- lists
Sequence[Get
Dayu Cc Http Policies List] - 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_ strfile
- id String
- lists List<Property Map>
- A list of CC http policies. Each element contains the following attributes:
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for.
- name String
- Name of the CC self-define http policy.
- policy
Id String - ID of the CC self-define http policy.
- result
Output StringFile
Supporting Types
GetDayuCcHttpPoliciesList
- Action string
- Action mode.
- Create
Time string - Create time of the CC self-define http policy.
- Frequency double
- Max frequency per minute.
- Ip
Lists List<string> - IP of the CC self-define http policy.
- Name string
- Name of the CC http policy to be queried.
- Policy
Id string - Id of the CC http policy to be queried.
- Resource
Id string - ID of the resource that the CC http policy works for.
- Resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Rule
Lists List<GetDayu Cc Http Policies List Rule List> - Smode string
- Match mode.
- Switch bool
- Indicate the CC self-define http policy takes effect or not.
- Action string
- Action mode.
- Create
Time string - Create time of the CC self-define http policy.
- Frequency float64
- Max frequency per minute.
- Ip
Lists []string - IP of the CC self-define http policy.
- Name string
- Name of the CC http policy to be queried.
- Policy
Id string - Id of the CC http policy to be queried.
- Resource
Id string - ID of the resource that the CC http policy works for.
- Resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Rule
Lists []GetDayu Cc Http Policies List Rule List - Smode string
- Match mode.
- Switch bool
- Indicate the CC self-define http policy takes effect or not.
- action String
- Action mode.
- create
Time String - Create time of the CC self-define http policy.
- frequency Double
- Max frequency per minute.
- ip
Lists List<String> - IP of the CC self-define http policy.
- name String
- Name of the CC http policy to be queried.
- policy
Id String - Id of the CC http policy to be queried.
- resource
Id String - ID of the resource that the CC http policy works for.
- resource
Type String - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists List<GetDayu Cc Http Policies List Rule List> - smode String
- Match mode.
- switch_ Boolean
- Indicate the CC self-define http policy takes effect or not.
- action string
- Action mode.
- create
Time string - Create time of the CC self-define http policy.
- frequency number
- Max frequency per minute.
- ip
Lists string[] - IP of the CC self-define http policy.
- name string
- Name of the CC http policy to be queried.
- policy
Id string - Id of the CC http policy to be queried.
- resource
Id string - ID of the resource that the CC http policy works for.
- resource
Type string - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists GetDayu Cc Http Policies List Rule List[] - 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
andnet
. - rule_
lists Sequence[GetDayu Cc Http Policies List Rule List] - smode str
- Match mode.
- switch bool
- Indicate the CC self-define http policy takes effect or not.
- action String
- Action mode.
- create
Time String - Create time of the CC self-define http policy.
- frequency Number
- Max frequency per minute.
- ip
Lists List<String> - IP of the CC self-define http policy.
- name String
- Name of the CC http policy to be queried.
- policy
Id String - Id of the CC http policy to be queried.
- resource
Id String - ID of the resource that the CC http policy works for.
- resource
Type String - Type of the resource that the CC http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists List<Property Map> - smode String
- Match mode.
- switch Boolean
- Indicate the CC self-define http policy takes effect or not.
GetDayuCcHttpPoliciesListRuleList
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack