tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getTseGatewayCanaryRules
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of tse gateway_canary_rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const gatewayCanaryRules = tencentcloud.getTseGatewayCanaryRules({
    gatewayId: "gateway-xxxxxx",
    serviceId: "451a9920-e67a-4519-af41-fccac0e72005",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
gateway_canary_rules = tencentcloud.get_tse_gateway_canary_rules(gateway_id="gateway-xxxxxx",
    service_id="451a9920-e67a-4519-af41-fccac0e72005")
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.LookupTseGatewayCanaryRules(ctx, &tencentcloud.LookupTseGatewayCanaryRulesArgs{
			GatewayId: "gateway-xxxxxx",
			ServiceId: "451a9920-e67a-4519-af41-fccac0e72005",
		}, 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 gatewayCanaryRules = Tencentcloud.GetTseGatewayCanaryRules.Invoke(new()
    {
        GatewayId = "gateway-xxxxxx",
        ServiceId = "451a9920-e67a-4519-af41-fccac0e72005",
    });
});
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.GetTseGatewayCanaryRulesArgs;
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 gatewayCanaryRules = TencentcloudFunctions.getTseGatewayCanaryRules(GetTseGatewayCanaryRulesArgs.builder()
            .gatewayId("gateway-xxxxxx")
            .serviceId("451a9920-e67a-4519-af41-fccac0e72005")
            .build());
    }
}
variables:
  gatewayCanaryRules:
    fn::invoke:
      function: tencentcloud:getTseGatewayCanaryRules
      arguments:
        gatewayId: gateway-xxxxxx
        serviceId: 451a9920-e67a-4519-af41-fccac0e72005
Using getTseGatewayCanaryRules
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 getTseGatewayCanaryRules(args: GetTseGatewayCanaryRulesArgs, opts?: InvokeOptions): Promise<GetTseGatewayCanaryRulesResult>
function getTseGatewayCanaryRulesOutput(args: GetTseGatewayCanaryRulesOutputArgs, opts?: InvokeOptions): Output<GetTseGatewayCanaryRulesResult>def get_tse_gateway_canary_rules(gateway_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 service_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetTseGatewayCanaryRulesResult
def get_tse_gateway_canary_rules_output(gateway_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 service_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetTseGatewayCanaryRulesResult]func LookupTseGatewayCanaryRules(ctx *Context, args *LookupTseGatewayCanaryRulesArgs, opts ...InvokeOption) (*LookupTseGatewayCanaryRulesResult, error)
func LookupTseGatewayCanaryRulesOutput(ctx *Context, args *LookupTseGatewayCanaryRulesOutputArgs, opts ...InvokeOption) LookupTseGatewayCanaryRulesResultOutput> Note: This function is named LookupTseGatewayCanaryRules in the Go SDK.
public static class GetTseGatewayCanaryRules 
{
    public static Task<GetTseGatewayCanaryRulesResult> InvokeAsync(GetTseGatewayCanaryRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetTseGatewayCanaryRulesResult> Invoke(GetTseGatewayCanaryRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTseGatewayCanaryRulesResult> getTseGatewayCanaryRules(GetTseGatewayCanaryRulesArgs args, InvokeOptions options)
public static Output<GetTseGatewayCanaryRulesResult> getTseGatewayCanaryRules(GetTseGatewayCanaryRulesArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getTseGatewayCanaryRules:getTseGatewayCanaryRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GatewayId string
- gateway ID.
- ServiceId string
- service ID.
- Id string
- ResultOutput stringFile 
- Used to save results.
- GatewayId string
- gateway ID.
- ServiceId string
- service ID.
- Id string
- ResultOutput stringFile 
- Used to save results.
- gatewayId String
- gateway ID.
- serviceId String
- service ID.
- id String
- resultOutput StringFile 
- Used to save results.
- gatewayId string
- gateway ID.
- serviceId string
- service ID.
- id string
- resultOutput stringFile 
- Used to save results.
- gateway_id str
- gateway ID.
- service_id str
- service ID.
- id str
- result_output_ strfile 
- Used to save results.
- gatewayId String
- gateway ID.
- serviceId String
- service ID.
- id String
- resultOutput StringFile 
- Used to save results.
getTseGatewayCanaryRules Result
The following output properties are available:
- GatewayId string
- Id string
- Results
List<GetTse Gateway Canary Rules Result> 
- canary rule configuration.
- ServiceId string
- service ID.
- ResultOutput stringFile 
- GatewayId string
- Id string
- Results
[]GetTse Gateway Canary Rules Result 
- canary rule configuration.
- ServiceId string
- service ID.
- ResultOutput stringFile 
- gatewayId String
- id String
- results
List<GetTse Gateway Canary Rules Result> 
- canary rule configuration.
- serviceId String
- service ID.
- resultOutput StringFile 
- gatewayId string
- id string
- results
GetTse Gateway Canary Rules Result[] 
- canary rule configuration.
- serviceId string
- service ID.
- resultOutput stringFile 
- gateway_id str
- id str
- results
Sequence[GetTse Gateway Canary Rules Result] 
- canary rule configuration.
- service_id str
- service ID.
- result_output_ strfile 
- gatewayId String
- id String
- results List<Property Map>
- canary rule configuration.
- serviceId String
- service ID.
- resultOutput StringFile 
Supporting Types
GetTseGatewayCanaryRulesResult     
- CanaryRule List<GetLists Tse Gateway Canary Rules Result Canary Rule List> 
- canary rule list.
- TotalCount double
- total count.
- CanaryRule []GetLists Tse Gateway Canary Rules Result Canary Rule List 
- canary rule list.
- TotalCount float64
- total count.
- canaryRule List<GetLists Tse Gateway Canary Rules Result Canary Rule List> 
- canary rule list.
- totalCount Double
- total count.
- canaryRule GetLists Tse Gateway Canary Rules Result Canary Rule List[] 
- canary rule list.
- totalCount number
- total count.
- canary_rule_ Sequence[Getlists Tse Gateway Canary Rules Result Canary Rule List] 
- canary rule list.
- total_count float
- total count.
- canaryRule List<Property Map>Lists 
- canary rule list.
- totalCount Number
- total count.
GetTseGatewayCanaryRulesResultCanaryRuleList        
- BalancedService List<GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List> 
- service weight configuration.
- ConditionLists List<GetTse Gateway Canary Rules Result Canary Rule List Condition List> 
- parameter matching condition list.
- Enabled bool
- the status of canary rule.
- Priority double
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- ServiceId string
- service ID.
- ServiceName string
- service name.
- BalancedService []GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List 
- service weight configuration.
- ConditionLists []GetTse Gateway Canary Rules Result Canary Rule List Condition List 
- parameter matching condition list.
- Enabled bool
- the status of canary rule.
- Priority float64
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- ServiceId string
- service ID.
- ServiceName string
- service name.
- balancedService List<GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List> 
- service weight configuration.
- conditionLists List<GetTse Gateway Canary Rules Result Canary Rule List Condition List> 
- parameter matching condition list.
- enabled Boolean
- the status of canary rule.
- priority Double
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- serviceId String
- service ID.
- serviceName String
- service name.
- balancedService GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List[] 
- service weight configuration.
- conditionLists GetTse Gateway Canary Rules Result Canary Rule List Condition List[] 
- parameter matching condition list.
- enabled boolean
- the status of canary rule.
- priority number
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- serviceId string
- service ID.
- serviceName string
- service name.
- balanced_service_ Sequence[Getlists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List] 
- service weight configuration.
- condition_lists Sequence[GetTse Gateway Canary Rules Result Canary Rule List Condition List] 
- parameter matching condition list.
- enabled bool
- the status of canary rule.
- priority float
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- service_id str
- service ID.
- service_name str
- service name.
- balancedService List<Property Map>Lists 
- service weight configuration.
- conditionLists List<Property Map>
- parameter matching condition list.
- enabled Boolean
- the status of canary rule.
- priority Number
- priority. The value ranges from 0 to 100; the larger the value, the higher the priority; the priority cannot be repeated between different rules.
- serviceId String
- service ID.
- serviceName String
- service name.
GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList           
- Percent double
- percent, 10 is 10%, valid values: 0 to 100.
- ServiceId string
- service ID.
- ServiceName string
- service name.
- UpstreamName string
- upstream name.
- Percent float64
- percent, 10 is 10%, valid values: 0 to 100.
- ServiceId string
- service ID.
- ServiceName string
- service name.
- UpstreamName string
- upstream name.
- percent Double
- percent, 10 is 10%, valid values: 0 to 100.
- serviceId String
- service ID.
- serviceName String
- service name.
- upstreamName String
- upstream name.
- percent number
- percent, 10 is 10%, valid values: 0 to 100.
- serviceId string
- service ID.
- serviceName string
- service name.
- upstreamName string
- upstream name.
- percent float
- percent, 10 is 10%, valid values: 0 to 100.
- service_id str
- service ID.
- service_name str
- service name.
- upstream_name str
- upstream name.
- percent Number
- percent, 10 is 10%, valid values: 0 to 100.
- serviceId String
- service ID.
- serviceName String
- service name.
- upstreamName String
- upstream name.
GetTseGatewayCanaryRulesResultCanaryRuleListConditionList          
- Delimiter string
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- GlobalConfig stringId 
- global configuration ID.
- GlobalConfig stringName 
- global configuration name.
- Key string
- parameter name.
- Operator string
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- Type string
- type.Reference value:- path- method- query- header- cookie- body- system.
- Value string
- parameter value.
- Delimiter string
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- GlobalConfig stringId 
- global configuration ID.
- GlobalConfig stringName 
- global configuration name.
- Key string
- parameter name.
- Operator string
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- Type string
- type.Reference value:- path- method- query- header- cookie- body- system.
- Value string
- parameter value.
- delimiter String
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- globalConfig StringId 
- global configuration ID.
- globalConfig StringName 
- global configuration name.
- key String
- parameter name.
- operator String
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- type String
- type.Reference value:- path- method- query- header- cookie- body- system.
- value String
- parameter value.
- delimiter string
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- globalConfig stringId 
- global configuration ID.
- globalConfig stringName 
- global configuration name.
- key string
- parameter name.
- operator string
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- type string
- type.Reference value:- path- method- query- header- cookie- body- system.
- value string
- parameter value.
- delimiter str
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- global_config_ strid 
- global configuration ID.
- global_config_ strname 
- global configuration name.
- key str
- parameter name.
- operator str
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- type str
- type.Reference value:- path- method- query- header- cookie- body- system.
- value str
- parameter value.
- delimiter String
- delimiter. valid when operator is in or not in, reference value:,,;,\n.
- globalConfig StringId 
- global configuration ID.
- globalConfig StringName 
- global configuration name.
- key String
- parameter name.
- operator String
- operator.Reference value:le,eq,lt,ne,ge,gt,regex,exists,in,not in,prefix,exact,regex.
- type String
- type.Reference value:- path- method- query- header- cookie- body- system.
- value String
- parameter value.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack