Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:sae/getGreyTagRoutes:getGreyTagRoutes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- App
Id string - The ID of the SAE Application.
 - Ids List<string>
 - A list of GreyTagRoute IDs.
 - Name
Regex string - 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 string - The ID of the SAE Application.
 - Ids []string
 - A list of GreyTagRoute IDs.
 - Name
Regex string - 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 String - The ID of the SAE Application.
 - ids List<String>
 - A list of GreyTagRoute IDs.
 - name
Regex String - 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 string - The ID of the SAE Application.
 - ids string[]
 - A list of GreyTagRoute IDs.
 - name
Regex string - 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 str - The ID of the SAE Application.
 - ids Sequence[str]
 - A list of GreyTagRoute IDs.
 - name_
regex str - 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 String - The ID of the SAE Application.
 - ids List<String>
 - A list of GreyTagRoute IDs.
 - name
Regex String - 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 string
 - The description of GreyTagRoute.
 - Dubbo
Rules List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Dubbo Rule>  - The grayscale rule created for Dubbo Application.
 - Grey
Tag stringRoute Name  - The name of GreyTagRoute.
 - Id string
 - The ID of the GreyTagRoute.
 - Sc
Rules List<Pulumi.Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Sc Rule>  - The grayscale rule created for SpringCloud Application.
 
- Description string
 - The description of GreyTagRoute.
 - Dubbo
Rules []GetGrey Tag Routes Route Dubbo Rule  - The grayscale rule created for Dubbo Application.
 - Grey
Tag stringRoute Name  - The name of GreyTagRoute.
 - Id string
 - The ID of the GreyTagRoute.
 - Sc
Rules []GetGrey Tag Routes Route Sc Rule  - The grayscale rule created for SpringCloud Application.
 
- description String
 - The description of GreyTagRoute.
 - dubbo
Rules List<GetGrey Tag Routes Route Dubbo Rule>  - The grayscale rule created for Dubbo Application.
 - grey
Tag StringRoute Name  - The name of GreyTagRoute.
 - id String
 - The ID of the GreyTagRoute.
 - sc
Rules List<GetGrey Tag Routes Route Sc Rule>  - The grayscale rule created for SpringCloud Application.
 
- description string
 - The description of GreyTagRoute.
 - dubbo
Rules GetGrey Tag Routes Route Dubbo Rule[]  - The grayscale rule created for Dubbo Application.
 - grey
Tag stringRoute Name  - The name of GreyTagRoute.
 - id string
 - The ID of the GreyTagRoute.
 - sc
Rules GetGrey Tag Routes Route Sc Rule[]  - The grayscale rule created for SpringCloud Application.
 
- description str
 - The description of GreyTagRoute.
 - dubbo_
rules Sequence[GetGrey Tag Routes Route Dubbo Rule]  - The grayscale rule created for Dubbo Application.
 - grey_
tag_ strroute_ name  - The name of GreyTagRoute.
 - id str
 - The ID of the GreyTagRoute.
 - sc_
rules Sequence[GetGrey Tag Routes Route Sc Rule]  - The grayscale rule created for SpringCloud Application.
 
- description String
 - The description of GreyTagRoute.
 - dubbo
Rules List<Property Map> - The grayscale rule created for Dubbo Application.
 - grey
Tag StringRoute Name  - The name of GreyTagRoute.
 - id String
 - The ID of the GreyTagRoute.
 - sc
Rules List<Property Map> - The grayscale rule created for SpringCloud Application.
 
GetGreyTagRoutesRouteDubboRule      
- Condition string
 - The conditional Patterns for Grayscale Rules.
 - Group string
 - The service group.
 - Items
List<Pulumi.
Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Dubbo Rule Item>  - A list of conditions items.
 - Method
Name string - The method name
 - Service
Name string - The service name.
 - Version string
 - The service version.
 
- Condition string
 - The conditional Patterns for Grayscale Rules.
 - Group string
 - The service group.
 - Items
[]Get
Grey Tag Routes Route Dubbo Rule Item  - A list of conditions items.
 - Method
Name string - The method name
 - Service
Name string - The service name.
 - Version string
 - The service version.
 
- condition String
 - The conditional Patterns for Grayscale Rules.
 - group String
 - The service group.
 - items
List<Get
Grey Tag Routes Route Dubbo Rule Item>  - A list of conditions items.
 - method
Name String - The method name
 - service
Name String - The service name.
 - version String
 - The service version.
 
- condition string
 - The conditional Patterns for Grayscale Rules.
 - group string
 - The service group.
 - items
Get
Grey Tag Routes Route Dubbo Rule Item[]  - A list of conditions items.
 - method
Name string - The method name
 - service
Name string - The service name.
 - version string
 - The service version.
 
- condition str
 - The conditional Patterns for Grayscale Rules.
 - group str
 - The service group.
 - items
Sequence[Get
Grey Tag Routes Route Dubbo Rule Item]  - A list of conditions items.
 - method_
name str - The method name
 - service_
name str - The service name.
 - version str
 - The service version.
 
- condition String
 - The conditional Patterns for Grayscale Rules.
 - group String
 - The service group.
 - items List<Property Map>
 - A list of conditions items.
 - method
Name String - The method name
 - service
Name String - The service name.
 - version String
 - The service version.
 
GetGreyTagRoutesRouteDubboRuleItem       
GetGreyTagRoutesRouteScRule      
- Condition string
 - The Conditional Patterns for Grayscale Rules.
 - Items
List<Pulumi.
Ali Cloud. Sae. Inputs. Get Grey Tag Routes Route Sc Rule Item>  - A list of conditions items.
 - Path string
 - The path corresponding to the grayscale rule.
 
- Condition string
 - The Conditional Patterns for Grayscale Rules.
 - Items
[]Get
Grey Tag Routes Route Sc Rule Item  - A list of conditions items.
 - Path string
 - The path corresponding to the grayscale rule.
 
- condition String
 - The Conditional Patterns for Grayscale Rules.
 - items
List<Get
Grey Tag Routes Route Sc Rule Item>  - A list of conditions items.
 - path String
 - The path corresponding to the grayscale rule.
 
- condition string
 - The Conditional Patterns for Grayscale Rules.
 - items
Get
Grey Tag Routes Route Sc Rule Item[]  - A list of conditions items.
 - path string
 - The path corresponding to the grayscale rule.
 
- condition str
 - The Conditional Patterns for Grayscale Rules.
 - items
Sequence[Get
Grey Tag Routes Route Sc Rule Item]  - A list of conditions items.
 - path str
 - The path corresponding to the grayscale rule.
 
- condition String
 - The Conditional Patterns for Grayscale Rules.
 - items List<Property Map>
 - A list of conditions items.
 - path String
 - The path corresponding to the grayscale rule.
 
GetGreyTagRoutesRouteScRuleItem       
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.