tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDayuL7Rules
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query dayu layer 7 rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const domainTest = tencentcloud.getDayuL7Rules({
resourceType: tencentcloud_dayu_l7_rule.test_rule.resource_type,
resourceId: tencentcloud_dayu_l7_rule.test_rule.resource_id,
domain: tencentcloud_dayu_l7_rule.test_rule.domain,
});
const idTest = tencentcloud.getDayuL7Rules({
resourceType: tencentcloud_dayu_l7_rule.test_rule.resource_type,
resourceId: tencentcloud_dayu_l7_rule.test_rule.resource_id,
ruleId: tencentcloud_dayu_l7_rule.test_rule.rule_id,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
domain_test = tencentcloud.get_dayu_l7_rules(resource_type=tencentcloud_dayu_l7_rule["test_rule"]["resource_type"],
resource_id=tencentcloud_dayu_l7_rule["test_rule"]["resource_id"],
domain=tencentcloud_dayu_l7_rule["test_rule"]["domain"])
id_test = tencentcloud.get_dayu_l7_rules(resource_type=tencentcloud_dayu_l7_rule["test_rule"]["resource_type"],
resource_id=tencentcloud_dayu_l7_rule["test_rule"]["resource_id"],
rule_id=tencentcloud_dayu_l7_rule["test_rule"]["rule_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.GetDayuL7Rules(ctx, &tencentcloud.GetDayuL7RulesArgs{
ResourceType: tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
ResourceId: tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
Domain: pulumi.StringRef(tencentcloud_dayu_l7_rule.Test_rule.Domain),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetDayuL7Rules(ctx, &tencentcloud.GetDayuL7RulesArgs{
ResourceType: tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
ResourceId: tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
RuleId: pulumi.StringRef(tencentcloud_dayu_l7_rule.Test_rule.Rule_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 domainTest = Tencentcloud.GetDayuL7Rules.Invoke(new()
{
ResourceType = tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
ResourceId = tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
Domain = tencentcloud_dayu_l7_rule.Test_rule.Domain,
});
var idTest = Tencentcloud.GetDayuL7Rules.Invoke(new()
{
ResourceType = tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
ResourceId = tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
RuleId = tencentcloud_dayu_l7_rule.Test_rule.Rule_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.GetDayuL7RulesArgs;
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 domainTest = TencentcloudFunctions.getDayuL7Rules(GetDayuL7RulesArgs.builder()
.resourceType(tencentcloud_dayu_l7_rule.test_rule().resource_type())
.resourceId(tencentcloud_dayu_l7_rule.test_rule().resource_id())
.domain(tencentcloud_dayu_l7_rule.test_rule().domain())
.build());
final var idTest = TencentcloudFunctions.getDayuL7Rules(GetDayuL7RulesArgs.builder()
.resourceType(tencentcloud_dayu_l7_rule.test_rule().resource_type())
.resourceId(tencentcloud_dayu_l7_rule.test_rule().resource_id())
.ruleId(tencentcloud_dayu_l7_rule.test_rule().rule_id())
.build());
}
}
variables:
domainTest:
fn::invoke:
function: tencentcloud:getDayuL7Rules
arguments:
resourceType: ${tencentcloud_dayu_l7_rule.test_rule.resource_type}
resourceId: ${tencentcloud_dayu_l7_rule.test_rule.resource_id}
domain: ${tencentcloud_dayu_l7_rule.test_rule.domain}
idTest:
fn::invoke:
function: tencentcloud:getDayuL7Rules
arguments:
resourceType: ${tencentcloud_dayu_l7_rule.test_rule.resource_type}
resourceId: ${tencentcloud_dayu_l7_rule.test_rule.resource_id}
ruleId: ${tencentcloud_dayu_l7_rule.test_rule.rule_id}
Using getDayuL7Rules
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 getDayuL7Rules(args: GetDayuL7RulesArgs, opts?: InvokeOptions): Promise<GetDayuL7RulesResult>
function getDayuL7RulesOutput(args: GetDayuL7RulesOutputArgs, opts?: InvokeOptions): Output<GetDayuL7RulesResult>
def get_dayu_l7_rules(domain: Optional[str] = None,
id: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
result_output_file: Optional[str] = None,
rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDayuL7RulesResult
def get_dayu_l7_rules_output(domain: Optional[pulumi.Input[str]] = None,
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,
rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDayuL7RulesResult]
func GetDayuL7Rules(ctx *Context, args *GetDayuL7RulesArgs, opts ...InvokeOption) (*GetDayuL7RulesResult, error)
func GetDayuL7RulesOutput(ctx *Context, args *GetDayuL7RulesOutputArgs, opts ...InvokeOption) GetDayuL7RulesResultOutput
> Note: This function is named GetDayuL7Rules
in the Go SDK.
public static class GetDayuL7Rules
{
public static Task<GetDayuL7RulesResult> InvokeAsync(GetDayuL7RulesArgs args, InvokeOptions? opts = null)
public static Output<GetDayuL7RulesResult> Invoke(GetDayuL7RulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDayuL7RulesResult> getDayuL7Rules(GetDayuL7RulesArgs args, InvokeOptions options)
public static Output<GetDayuL7RulesResult> getDayuL7Rules(GetDayuL7RulesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDayuL7Rules:getDayuL7Rules
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Id string - Id of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Domain string
- Domain of the layer 7 rule to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - Id of the layer 7 rule to be queried.
- Resource
Id string - Id of the resource that the layer 7 rule works for.
- Resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - Domain string
- Domain of the layer 7 rule to be queried.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - Id of the layer 7 rule to be queried.
- resource
Id String - Id of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - domain String
- Domain of the layer 7 rule to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - Id of the layer 7 rule to be queried.
- resource
Id string - Id of the resource that the layer 7 rule works for.
- resource
Type string - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - domain string
- Domain of the layer 7 rule to be queried.
- id string
- result
Output stringFile - Used to save results.
- rule
Id string - Id of the layer 7 rule to be queried.
- resource_
id str - Id of the resource that the layer 7 rule works for.
- resource_
type str - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - domain str
- Domain of the layer 7 rule to be queried.
- id str
- result_
output_ strfile - Used to save results.
- rule_
id str - Id of the layer 7 rule to be queried.
- resource
Id String - Id of the resource that the layer 7 rule works for.
- resource
Type String - Type of the resource that the layer 7 rule works for, valid value is
bgpip
. - domain String
- Domain of the layer 7 rule to be queried.
- id String
- result
Output StringFile - Used to save results.
- rule
Id String - Id of the layer 7 rule to be queried.
getDayuL7Rules Result
The following output properties are available:
- Id string
- Lists
List<Get
Dayu L7Rules List> - A list of layer 7 rules. Each element contains the following attributes:
- Resource
Id string - Resource
Type string - Domain string
- Domain that the 7 layer rule works for.
- Result
Output stringFile - Rule
Id string - Id of the 7 layer rule.
- Id string
- Lists
[]Get
Dayu L7Rules List - A list of layer 7 rules. Each element contains the following attributes:
- Resource
Id string - Resource
Type string - Domain string
- Domain that the 7 layer rule works for.
- Result
Output stringFile - Rule
Id string - Id of the 7 layer rule.
- id String
- lists
List<Get
Dayu L7Rules List> - A list of layer 7 rules. Each element contains the following attributes:
- resource
Id String - resource
Type String - domain String
- Domain that the 7 layer rule works for.
- result
Output StringFile - rule
Id String - Id of the 7 layer rule.
- id string
- lists
Get
Dayu L7Rules List[] - A list of layer 7 rules. Each element contains the following attributes:
- resource
Id string - resource
Type string - domain string
- Domain that the 7 layer rule works for.
- result
Output stringFile - rule
Id string - Id of the 7 layer rule.
- id str
- lists
Sequence[Get
Dayu L7Rules List] - A list of layer 7 rules. Each element contains the following attributes:
- resource_
id str - resource_
type str - domain str
- Domain that the 7 layer rule works for.
- result_
output_ strfile - rule_
id str - Id of the 7 layer rule.
- id String
- lists List<Property Map>
- A list of layer 7 rules. Each element contains the following attributes:
- resource
Id String - resource
Type String - domain String
- Domain that the 7 layer rule works for.
- result
Output StringFile - rule
Id String - Id of the 7 layer rule.
Supporting Types
GetDayuL7RulesList
- Domain string
- Domain of the layer 7 rule to be queried.
- Health
Check doubleCode - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - Health
Check doubleHealth Num - Health threshold of health check.
- Health
Check doubleInterval - Interval time of health check.
- Health
Check stringMethod - Methods of health check.
- Health
Check stringPath - Path of health check.
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check doubleUnhealth Num - Unhealthy threshold of health check.
- Name string
- Name of the rule.
- Protocol string
- Protocol of the rule.
- Rule
Id string - Id of the layer 7 rule to be queried.
- Source
Lists List<string> - Source list of the rule.
- Source
Type double - Source type, 1 for source of host, 2 for source of ip.
- Ssl
Id string - SSL id.
- Status double
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - Switch bool
- Indicate the rule will take effect or not.
- Threshold double
- Threshold of the rule.
- Domain string
- Domain of the layer 7 rule to be queried.
- Health
Check float64Code - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - Health
Check float64Health Num - Health threshold of health check.
- Health
Check float64Interval - Interval time of health check.
- Health
Check stringMethod - Methods of health check.
- Health
Check stringPath - Path of health check.
- Health
Check boolSwitch - Indicates whether health check is enabled.
- Health
Check float64Unhealth Num - Unhealthy threshold of health check.
- Name string
- Name of the rule.
- Protocol string
- Protocol of the rule.
- Rule
Id string - Id of the layer 7 rule to be queried.
- Source
Lists []string - Source list of the rule.
- Source
Type float64 - Source type, 1 for source of host, 2 for source of ip.
- Ssl
Id string - SSL id.
- Status float64
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - Switch bool
- Indicate the rule will take effect or not.
- Threshold float64
- Threshold of the rule.
- domain String
- Domain of the layer 7 rule to be queried.
- health
Check DoubleCode - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - health
Check DoubleHealth Num - Health threshold of health check.
- health
Check DoubleInterval - Interval time of health check.
- health
Check StringMethod - Methods of health check.
- health
Check StringPath - Path of health check.
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check DoubleUnhealth Num - Unhealthy threshold of health check.
- name String
- Name of the rule.
- protocol String
- Protocol of the rule.
- rule
Id String - Id of the layer 7 rule to be queried.
- source
Lists List<String> - Source list of the rule.
- source
Type Double - Source type, 1 for source of host, 2 for source of ip.
- ssl
Id String - SSL id.
- status Double
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - switch_ Boolean
- Indicate the rule will take effect or not.
- threshold Double
- Threshold of the rule.
- domain string
- Domain of the layer 7 rule to be queried.
- health
Check numberCode - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - health
Check numberHealth Num - Health threshold of health check.
- health
Check numberInterval - Interval time of health check.
- health
Check stringMethod - Methods of health check.
- health
Check stringPath - Path of health check.
- health
Check booleanSwitch - Indicates whether health check is enabled.
- health
Check numberUnhealth Num - Unhealthy threshold of health check.
- name string
- Name of the rule.
- protocol string
- Protocol of the rule.
- rule
Id string - Id of the layer 7 rule to be queried.
- source
Lists string[] - Source list of the rule.
- source
Type number - Source type, 1 for source of host, 2 for source of ip.
- ssl
Id string - SSL id.
- status number
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - switch boolean
- Indicate the rule will take effect or not.
- threshold number
- Threshold of the rule.
- domain str
- Domain of the layer 7 rule to be queried.
- health_
check_ floatcode - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - health_
check_ floathealth_ num - Health threshold of health check.
- health_
check_ floatinterval - Interval time of health check.
- health_
check_ strmethod - Methods of health check.
- health_
check_ strpath - Path of health check.
- health_
check_ boolswitch - Indicates whether health check is enabled.
- health_
check_ floatunhealth_ num - Unhealthy threshold of health check.
- name str
- Name of the rule.
- protocol str
- Protocol of the rule.
- rule_
id str - Id of the layer 7 rule to be queried.
- source_
lists Sequence[str] - Source list of the rule.
- source_
type float - Source type, 1 for source of host, 2 for source of ip.
- ssl_
id str - SSL id.
- status float
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - switch bool
- Indicate the rule will take effect or not.
- threshold float
- Threshold of the rule.
- domain String
- Domain of the layer 7 rule to be queried.
- health
Check NumberCode - HTTP Status Code.
1
means the return value1xx
is health.2
means the return value2xx
is health.4
means the return value3xx
is health.8
means the return value4xx
is health.16
means the return value5xx
is health. If you want multiple return codes to indicate health, need to add the corresponding values. - health
Check NumberHealth Num - Health threshold of health check.
- health
Check NumberInterval - Interval time of health check.
- health
Check StringMethod - Methods of health check.
- health
Check StringPath - Path of health check.
- health
Check BooleanSwitch - Indicates whether health check is enabled.
- health
Check NumberUnhealth Num - Unhealthy threshold of health check.
- name String
- Name of the rule.
- protocol String
- Protocol of the rule.
- rule
Id String - Id of the layer 7 rule to be queried.
- source
Lists List<String> - Source list of the rule.
- source
Type Number - Source type, 1 for source of host, 2 for source of ip.
- ssl
Id String - SSL id.
- status Number
- Status of the rule.
0
for create/modify success,2
for create/modify fail,3
for delete success,5
for waiting to be created/modified,7
for waiting to be deleted and8
for waiting to get SSL id. - switch Boolean
- Indicate the rule will take effect or not.
- threshold Number
- Threshold of the rule.
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