Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.sae.getGreyTagRoutes
Explore with Pulumi AI
This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user.
NOTE: Available in v1.160.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const nameRegex = alicloud.sae.getGreyTagRoutes({
appId: "example_id",
nameRegex: "^my-GreyTagRoute",
});
export const saeGreyTagRoutesId = nameRegex.then(nameRegex => nameRegex.routes?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
name_regex = alicloud.sae.get_grey_tag_routes(app_id="example_id",
name_regex="^my-GreyTagRoute")
pulumi.export("saeGreyTagRoutesId", name_regex.routes[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
nameRegex, err := sae.GetGreyTagRoutes(ctx, &sae.GetGreyTagRoutesArgs{
AppId: "example_id",
NameRegex: pulumi.StringRef("^my-GreyTagRoute"),
}, nil)
if err != nil {
return err
}
ctx.Export("saeGreyTagRoutesId", nameRegex.Routes[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var nameRegex = AliCloud.Sae.GetGreyTagRoutes.Invoke(new()
{
AppId = "example_id",
NameRegex = "^my-GreyTagRoute",
});
return new Dictionary<string, object?>
{
["saeGreyTagRoutesId"] = nameRegex.Apply(getGreyTagRoutesResult => getGreyTagRoutesResult.Routes[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.sae.SaeFunctions;
import com.pulumi.alicloud.sae.inputs.GetGreyTagRoutesArgs;
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 nameRegex = SaeFunctions.getGreyTagRoutes(GetGreyTagRoutesArgs.builder()
.appId("example_id")
.nameRegex("^my-GreyTagRoute")
.build());
ctx.export("saeGreyTagRoutesId", nameRegex.applyValue(getGreyTagRoutesResult -> getGreyTagRoutesResult.routes()[0].id()));
}
}
variables:
nameRegex:
fn::invoke:
function: alicloud:sae:getGreyTagRoutes
arguments:
appId: example_id
nameRegex: ^my-GreyTagRoute
outputs:
saeGreyTagRoutesId: ${nameRegex.routes[0].id}
Using getGreyTagRoutes
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 getGreyTagRoutes(args: GetGreyTagRoutesArgs, opts?: InvokeOptions): Promise<GetGreyTagRoutesResult>
function getGreyTagRoutesOutput(args: GetGreyTagRoutesOutputArgs, opts?: InvokeOptions): Output<GetGreyTagRoutesResult>
def get_grey_tag_routes(app_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGreyTagRoutesResult
def get_grey_tag_routes_output(app_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGreyTagRoutesResult]
func GetGreyTagRoutes(ctx *Context, args *GetGreyTagRoutesArgs, opts ...InvokeOption) (*GetGreyTagRoutesResult, error)
func GetGreyTagRoutesOutput(ctx *Context, args *GetGreyTagRoutesOutputArgs, opts ...InvokeOption) GetGreyTagRoutesResultOutput
> Note: This function is named GetGreyTagRoutes
in the Go SDK.
public static class GetGreyTagRoutes
{
public static Task<GetGreyTagRoutesResult> InvokeAsync(GetGreyTagRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetGreyTagRoutesResult> Invoke(GetGreyTagRoutesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGreyTagRoutesResult> getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options)
public static Output<GetGreyTagRoutesResult> getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:sae/getGreyTagRoutes:getGreyTagRoutes
arguments:
# arguments dictionary
The following arguments are supported:
- App
Id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- Ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- App
Id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- Ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- app
Id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- app
Id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- app_
id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- app
Id This property is required. Changes to this property will trigger replacement.
- The ID of the SAE Application.
- ids
Changes to this property will trigger replacement.
- A list of GreyTagRoute IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter results by GreyTagRoute name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getGreyTagRoutes Result
The following output properties are available:
- App
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Routes
List<Pulumi.
Ali Cloud. Sae. Outputs. Get Grey Tag Routes Route> - Name
Regex string - Output
File string
- App
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Routes
[]Get
Grey Tag Routes Route - Name
Regex string - Output
File string
- app
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- routes
List<Get
Grey Tag Routes Route> - name
Regex String - output
File String
- app
Id string - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- routes
Get
Grey Tag Routes Route[] - name
Regex string - output
File string
- app_
id str - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- routes
Sequence[Get
Grey Tag Routes Route] - name_
regex str - output_
file str
- app
Id String - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- routes List<Property Map>
- name
Regex String - output
File String
Supporting Types
GetGreyTagRoutesRoute
- Description
This property is required. string - The description of GreyTagRoute.
- Dubbo
Rules This property is required. List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Dubbo Rule> - The grayscale rule created for Dubbo Application.
- Grey
Tag Route Name This property is required. string - The name of GreyTagRoute.
- Id
This property is required. string - The ID of the GreyTagRoute.
- Sc
Rules This property is required. List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Sc Rule> - The grayscale rule created for SpringCloud Application.
- Description
This property is required. string - The description of GreyTagRoute.
- Dubbo
Rules This property is required. []GetGrey Tag Routes Route Dubbo Rule - The grayscale rule created for Dubbo Application.
- Grey
Tag Route Name This property is required. string - The name of GreyTagRoute.
- Id
This property is required. string - The ID of the GreyTagRoute.
- Sc
Rules This property is required. []GetGrey Tag Routes Route Sc Rule - The grayscale rule created for SpringCloud Application.
- description
This property is required. String - The description of GreyTagRoute.
- dubbo
Rules This property is required. List<GetGrey Tag Routes Route Dubbo Rule> - The grayscale rule created for Dubbo Application.
- grey
Tag Route Name This property is required. String - The name of GreyTagRoute.
- id
This property is required. String - The ID of the GreyTagRoute.
- sc
Rules This property is required. List<GetGrey Tag Routes Route Sc Rule> - The grayscale rule created for SpringCloud Application.
- description
This property is required. string - The description of GreyTagRoute.
- dubbo
Rules This property is required. GetGrey Tag Routes Route Dubbo Rule[] - The grayscale rule created for Dubbo Application.
- grey
Tag Route Name This property is required. string - The name of GreyTagRoute.
- id
This property is required. string - The ID of the GreyTagRoute.
- sc
Rules This property is required. GetGrey Tag Routes Route Sc Rule[] - The grayscale rule created for SpringCloud Application.
- description
This property is required. str - The description of GreyTagRoute.
- dubbo_
rules This property is required. Sequence[GetGrey Tag Routes Route Dubbo Rule] - The grayscale rule created for Dubbo Application.
- grey_
tag_ route_ name This property is required. str - The name of GreyTagRoute.
- id
This property is required. str - The ID of the GreyTagRoute.
- sc_
rules This property is required. Sequence[GetGrey Tag Routes Route Sc Rule] - The grayscale rule created for SpringCloud Application.
- description
This property is required. String - The description of GreyTagRoute.
- dubbo
Rules This property is required. List<Property Map> - The grayscale rule created for Dubbo Application.
- grey
Tag Route Name This property is required. String - The name of GreyTagRoute.
- id
This property is required. String - The ID of the GreyTagRoute.
- sc
Rules This property is required. List<Property Map> - The grayscale rule created for SpringCloud Application.
GetGreyTagRoutesRouteDubboRule
- Condition
This property is required. string - The conditional Patterns for Grayscale Rules.
- Group
This property is required. string - The service group.
- Items
This property is required. List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Dubbo Rule Item> - A list of conditions items.
- Method
Name This property is required. string - The method name
- Service
Name This property is required. string - The service name.
- Version
This property is required. string - The service version.
- Condition
This property is required. string - The conditional Patterns for Grayscale Rules.
- Group
This property is required. string - The service group.
- Items
This property is required. []GetGrey Tag Routes Route Dubbo Rule Item - A list of conditions items.
- Method
Name This property is required. string - The method name
- Service
Name This property is required. string - The service name.
- Version
This property is required. string - The service version.
- condition
This property is required. String - The conditional Patterns for Grayscale Rules.
- group
This property is required. String - The service group.
- items
This property is required. List<GetGrey Tag Routes Route Dubbo Rule Item> - A list of conditions items.
- method
Name This property is required. String - The method name
- service
Name This property is required. String - The service name.
- version
This property is required. String - The service version.
- condition
This property is required. string - The conditional Patterns for Grayscale Rules.
- group
This property is required. string - The service group.
- items
This property is required. GetGrey Tag Routes Route Dubbo Rule Item[] - A list of conditions items.
- method
Name This property is required. string - The method name
- service
Name This property is required. string - The service name.
- version
This property is required. string - The service version.
- condition
This property is required. str - The conditional Patterns for Grayscale Rules.
- group
This property is required. str - The service group.
- items
This property is required. Sequence[GetGrey Tag Routes Route Dubbo Rule Item] - A list of conditions items.
- method_
name This property is required. str - The method name
- service_
name This property is required. str - The service name.
- version
This property is required. str - The service version.
- condition
This property is required. String - The conditional Patterns for Grayscale Rules.
- group
This property is required. String - The service group.
- items
This property is required. List<Property Map> - A list of conditions items.
- method
Name This property is required. String - The method name
- service
Name This property is required. String - The service name.
- version
This property is required. String - The service version.
GetGreyTagRoutesRouteDubboRuleItem
- Cond
This property is required. string - The comparison operator.
- Expr
This property is required. string - The parameter value gets the expression.
- Index
This property is required. int - The parameter number.
- Operator
This property is required. string - The operator.
- Value
This property is required. string - The value of the parameter.
- Cond
This property is required. string - The comparison operator.
- Expr
This property is required. string - The parameter value gets the expression.
- Index
This property is required. int - The parameter number.
- Operator
This property is required. string - The operator.
- Value
This property is required. string - The value of the parameter.
- cond
This property is required. String - The comparison operator.
- expr
This property is required. String - The parameter value gets the expression.
- index
This property is required. Integer - The parameter number.
- operator
This property is required. String - The operator.
- value
This property is required. String - The value of the parameter.
- cond
This property is required. string - The comparison operator.
- expr
This property is required. string - The parameter value gets the expression.
- index
This property is required. number - The parameter number.
- operator
This property is required. string - The operator.
- value
This property is required. string - The value of the parameter.
- cond
This property is required. str - The comparison operator.
- expr
This property is required. str - The parameter value gets the expression.
- index
This property is required. int - The parameter number.
- operator
This property is required. str - The operator.
- value
This property is required. str - The value of the parameter.
- cond
This property is required. String - The comparison operator.
- expr
This property is required. String - The parameter value gets the expression.
- index
This property is required. Number - The parameter number.
- operator
This property is required. String - The operator.
- value
This property is required. String - The value of the parameter.
GetGreyTagRoutesRouteScRule
- Condition
This property is required. string - The Conditional Patterns for Grayscale Rules.
- Items
This property is required. List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Sc Rule Item> - A list of conditions items.
- Path
This property is required. string - The path corresponding to the grayscale rule.
- Condition
This property is required. string - The Conditional Patterns for Grayscale Rules.
- Items
This property is required. []GetGrey Tag Routes Route Sc Rule Item - A list of conditions items.
- Path
This property is required. string - The path corresponding to the grayscale rule.
- condition
This property is required. String - The Conditional Patterns for Grayscale Rules.
- items
This property is required. List<GetGrey Tag Routes Route Sc Rule Item> - A list of conditions items.
- path
This property is required. String - The path corresponding to the grayscale rule.
- condition
This property is required. string - The Conditional Patterns for Grayscale Rules.
- items
This property is required. GetGrey Tag Routes Route Sc Rule Item[] - A list of conditions items.
- path
This property is required. string - The path corresponding to the grayscale rule.
- condition
This property is required. str - The Conditional Patterns for Grayscale Rules.
- items
This property is required. Sequence[GetGrey Tag Routes Route Sc Rule Item] - A list of conditions items.
- path
This property is required. str - The path corresponding to the grayscale rule.
- condition
This property is required. String - The Conditional Patterns for Grayscale Rules.
- items
This property is required. List<Property Map> - A list of conditions items.
- path
This property is required. String - The path corresponding to the grayscale rule.
GetGreyTagRoutesRouteScRuleItem
- Cond
This property is required. string - The comparison operator.
- Name
This property is required. string - The name of the parameter.
- Operator
This property is required. string - The operator.
- Type
This property is required. string - The Compare types.
- Value
This property is required. string - The value of the parameter.
- Cond
This property is required. string - The comparison operator.
- Name
This property is required. string - The name of the parameter.
- Operator
This property is required. string - The operator.
- Type
This property is required. string - The Compare types.
- Value
This property is required. string - The value of the parameter.
- cond
This property is required. String - The comparison operator.
- name
This property is required. String - The name of the parameter.
- operator
This property is required. String - The operator.
- type
This property is required. String - The Compare types.
- value
This property is required. String - The value of the parameter.
- cond
This property is required. string - The comparison operator.
- name
This property is required. string - The name of the parameter.
- operator
This property is required. string - The operator.
- type
This property is required. string - The Compare types.
- value
This property is required. string - The value of the parameter.
- cond
This property is required. String - The comparison operator.
- name
This property is required. String - The name of the parameter.
- operator
This property is required. String - The operator.
- type
This property is required. String - The Compare types.
- value
This property is required. String - The value of the parameter.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.