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

tencentcloud.getTseGatewayCanaryRules

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    GatewayId string
    gateway ID.
    ServiceId string
    service ID.
    Id string
    ResultOutputFile string
    Used to save results.
    GatewayId string
    gateway ID.
    ServiceId string
    service ID.
    Id string
    ResultOutputFile string
    Used to save results.
    gatewayId String
    gateway ID.
    serviceId String
    service ID.
    id String
    resultOutputFile String
    Used to save results.
    gatewayId string
    gateway ID.
    serviceId string
    service ID.
    id string
    resultOutputFile string
    Used to save results.
    gateway_id str
    gateway ID.
    service_id str
    service ID.
    id str
    result_output_file str
    Used to save results.
    gatewayId String
    gateway ID.
    serviceId String
    service ID.
    id String
    resultOutputFile String
    Used to save results.

    getTseGatewayCanaryRules Result

    The following output properties are available:

    GatewayId string
    Id string
    Results List<GetTseGatewayCanaryRulesResult>
    canary rule configuration.
    ServiceId string
    service ID.
    ResultOutputFile string
    GatewayId string
    Id string
    Results []GetTseGatewayCanaryRulesResult
    canary rule configuration.
    ServiceId string
    service ID.
    ResultOutputFile string
    gatewayId String
    id String
    results List<GetTseGatewayCanaryRulesResult>
    canary rule configuration.
    serviceId String
    service ID.
    resultOutputFile String
    gatewayId string
    id string
    results GetTseGatewayCanaryRulesResult[]
    canary rule configuration.
    serviceId string
    service ID.
    resultOutputFile string
    gatewayId String
    id String
    results List<Property Map>
    canary rule configuration.
    serviceId String
    service ID.
    resultOutputFile String

    Supporting Types

    GetTseGatewayCanaryRulesResult

    canaryRuleLists List<Property Map>
    canary rule list.
    totalCount Number
    total count.

    GetTseGatewayCanaryRulesResultCanaryRuleList

    BalancedServiceLists List<GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList>
    service weight configuration.
    ConditionLists List<GetTseGatewayCanaryRulesResultCanaryRuleListConditionList>
    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.
    BalancedServiceLists []GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList
    service weight configuration.
    ConditionLists []GetTseGatewayCanaryRulesResultCanaryRuleListConditionList
    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.
    balancedServiceLists List<GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList>
    service weight configuration.
    conditionLists List<GetTseGatewayCanaryRulesResultCanaryRuleListConditionList>
    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.
    balancedServiceLists GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList[]
    service weight configuration.
    conditionLists GetTseGatewayCanaryRulesResultCanaryRuleListConditionList[]
    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_lists Sequence[GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList]
    service weight configuration.
    condition_lists Sequence[GetTseGatewayCanaryRulesResultCanaryRuleListConditionList]
    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.
    balancedServiceLists List<Property Map>
    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.
    GlobalConfigId string
    global configuration ID.
    GlobalConfigName string
    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.
    GlobalConfigId string
    global configuration ID.
    GlobalConfigName string
    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.
    globalConfigId String
    global configuration ID.
    globalConfigName String
    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.
    globalConfigId string
    global configuration ID.
    globalConfigName string
    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_id str
    global configuration ID.
    global_config_name str
    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.
    globalConfigId String
    global configuration ID.
    globalConfigName String
    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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack