tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTseGatewayCanaryRules
Explore with Pulumi AI
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:
- Gateway
Id string - gateway ID.
- Service
Id string - service ID.
- Id string
- Result
Output stringFile - Used to save results.
- Gateway
Id string - gateway ID.
- Service
Id string - service ID.
- Id string
- Result
Output stringFile - Used to save results.
- gateway
Id String - gateway ID.
- service
Id String - service ID.
- id String
- result
Output StringFile - Used to save results.
- gateway
Id string - gateway ID.
- service
Id string - service ID.
- id string
- result
Output stringFile - Used to save results.
- gateway_
id str - gateway ID.
- service_
id str - service ID.
- id str
- result_
output_ strfile - Used to save results.
- gateway
Id String - gateway ID.
- service
Id String - service ID.
- id String
- result
Output StringFile - Used to save results.
getTseGatewayCanaryRules Result
The following output properties are available:
- Gateway
Id string - Id string
- Results
List<Get
Tse Gateway Canary Rules Result> - canary rule configuration.
- Service
Id string - service ID.
- Result
Output stringFile
- Gateway
Id string - Id string
- Results
[]Get
Tse Gateway Canary Rules Result - canary rule configuration.
- Service
Id string - service ID.
- Result
Output stringFile
- gateway
Id String - id String
- results
List<Get
Tse Gateway Canary Rules Result> - canary rule configuration.
- service
Id String - service ID.
- result
Output StringFile
- gateway
Id string - id string
- results
Get
Tse Gateway Canary Rules Result[] - canary rule configuration.
- service
Id string - service ID.
- result
Output stringFile
- gateway_
id str - id str
- results
Sequence[Get
Tse Gateway Canary Rules Result] - canary rule configuration.
- service_
id str - service ID.
- result_
output_ strfile
- gateway
Id String - id String
- results List<Property Map>
- canary rule configuration.
- service
Id String - service ID.
- result
Output StringFile
Supporting Types
GetTseGatewayCanaryRulesResult
- Canary
Rule List<GetLists Tse Gateway Canary Rules Result Canary Rule List> - canary rule list.
- Total
Count double - total count.
- Canary
Rule []GetLists Tse Gateway Canary Rules Result Canary Rule List - canary rule list.
- Total
Count float64 - total count.
- canary
Rule List<GetLists Tse Gateway Canary Rules Result Canary Rule List> - canary rule list.
- total
Count Double - total count.
- canary
Rule GetLists Tse Gateway Canary Rules Result Canary Rule List[] - canary rule list.
- total
Count number - total count.
- canary_
rule_ Sequence[Getlists Tse Gateway Canary Rules Result Canary Rule List] - canary rule list.
- total_
count float - total count.
- canary
Rule List<Property Map>Lists - canary rule list.
- total
Count Number - total count.
GetTseGatewayCanaryRulesResultCanaryRuleList
- Balanced
Service List<GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List> - service weight configuration.
- Condition
Lists 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.
- Service
Id string - service ID.
- Service
Name string - service name.
- Balanced
Service []GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List - service weight configuration.
- Condition
Lists []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.
- Service
Id string - service ID.
- Service
Name string - service name.
- balanced
Service List<GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List> - service weight configuration.
- condition
Lists 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.
- service
Id String - service ID.
- service
Name String - service name.
- balanced
Service GetLists Tse Gateway Canary Rules Result Canary Rule List Balanced Service List[] - service weight configuration.
- condition
Lists 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.
- service
Id string - service ID.
- service
Name 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.
- balanced
Service List<Property Map>Lists - service weight configuration.
- condition
Lists 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.
- service
Id String - service ID.
- service
Name String - service name.
GetTseGatewayCanaryRulesResultCanaryRuleListBalancedServiceList
- Percent double
- percent, 10 is 10%, valid values: 0 to 100.
- Service
Id string - service ID.
- Service
Name string - service name.
- Upstream
Name string - upstream name.
- Percent float64
- percent, 10 is 10%, valid values: 0 to 100.
- Service
Id string - service ID.
- Service
Name string - service name.
- Upstream
Name string - upstream name.
- percent Double
- percent, 10 is 10%, valid values: 0 to 100.
- service
Id String - service ID.
- service
Name String - service name.
- upstream
Name String - upstream name.
- percent number
- percent, 10 is 10%, valid values: 0 to 100.
- service
Id string - service ID.
- service
Name string - service name.
- upstream
Name 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.
- service
Id String - service ID.
- service
Name String - service name.
- upstream
Name String - upstream name.
GetTseGatewayCanaryRulesResultCanaryRuleListConditionList
- Delimiter string
- delimiter. valid when operator is in or not in, reference value:
,
,;
,\n
. - Global
Config stringId - global configuration ID.
- Global
Config 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
. - Global
Config stringId - global configuration ID.
- Global
Config 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
. - global
Config StringId - global configuration ID.
- global
Config 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
. - global
Config stringId - global configuration ID.
- global
Config 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
. - global
Config StringId - global configuration ID.
- global
Config 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
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack