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

tencentcloud.getScfFunctionAliases

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 scf function_aliases

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const functionAliases = tencentcloud.getScfFunctionAliases({
        functionName: "keep-1676351130",
        namespace: "default",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    function_aliases = tencentcloud.get_scf_function_aliases(function_name="keep-1676351130",
        namespace="default")
    
    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.GetScfFunctionAliases(ctx, &tencentcloud.GetScfFunctionAliasesArgs{
    			FunctionName: "keep-1676351130",
    			Namespace:    pulumi.StringRef("default"),
    		}, 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 functionAliases = Tencentcloud.GetScfFunctionAliases.Invoke(new()
        {
            FunctionName = "keep-1676351130",
            Namespace = "default",
        });
    
    });
    
    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.GetScfFunctionAliasesArgs;
    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 functionAliases = TencentcloudFunctions.getScfFunctionAliases(GetScfFunctionAliasesArgs.builder()
                .functionName("keep-1676351130")
                .namespace("default")
                .build());
    
        }
    }
    
    variables:
      functionAliases:
        fn::invoke:
          function: tencentcloud:getScfFunctionAliases
          arguments:
            functionName: keep-1676351130
            namespace: default
    

    Using getScfFunctionAliases

    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 getScfFunctionAliases(args: GetScfFunctionAliasesArgs, opts?: InvokeOptions): Promise<GetScfFunctionAliasesResult>
    function getScfFunctionAliasesOutput(args: GetScfFunctionAliasesOutputArgs, opts?: InvokeOptions): Output<GetScfFunctionAliasesResult>
    def get_scf_function_aliases(function_name: Optional[str] = None,
                                 function_version: Optional[str] = None,
                                 id: Optional[str] = None,
                                 namespace: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetScfFunctionAliasesResult
    def get_scf_function_aliases_output(function_name: Optional[pulumi.Input[str]] = None,
                                 function_version: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 namespace: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetScfFunctionAliasesResult]
    func GetScfFunctionAliases(ctx *Context, args *GetScfFunctionAliasesArgs, opts ...InvokeOption) (*GetScfFunctionAliasesResult, error)
    func GetScfFunctionAliasesOutput(ctx *Context, args *GetScfFunctionAliasesOutputArgs, opts ...InvokeOption) GetScfFunctionAliasesResultOutput

    > Note: This function is named GetScfFunctionAliases in the Go SDK.

    public static class GetScfFunctionAliases 
    {
        public static Task<GetScfFunctionAliasesResult> InvokeAsync(GetScfFunctionAliasesArgs args, InvokeOptions? opts = null)
        public static Output<GetScfFunctionAliasesResult> Invoke(GetScfFunctionAliasesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfFunctionAliasesResult> getScfFunctionAliases(GetScfFunctionAliasesArgs args, InvokeOptions options)
    public static Output<GetScfFunctionAliasesResult> getScfFunctionAliases(GetScfFunctionAliasesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfFunctionAliases:getScfFunctionAliases
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionName string
    Function name.
    FunctionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    Id string
    Namespace string
    Function namespace.
    ResultOutputFile string
    Used to save results.
    FunctionName string
    Function name.
    FunctionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    Id string
    Namespace string
    Function namespace.
    ResultOutputFile string
    Used to save results.
    functionName String
    Function name.
    functionVersion String
    If this parameter is provided, only aliases associated with this function version will be returned.
    id String
    namespace String
    Function namespace.
    resultOutputFile String
    Used to save results.
    functionName string
    Function name.
    functionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    id string
    namespace string
    Function namespace.
    resultOutputFile string
    Used to save results.
    function_name str
    Function name.
    function_version str
    If this parameter is provided, only aliases associated with this function version will be returned.
    id str
    namespace str
    Function namespace.
    result_output_file str
    Used to save results.
    functionName String
    Function name.
    functionVersion String
    If this parameter is provided, only aliases associated with this function version will be returned.
    id String
    namespace String
    Function namespace.
    resultOutputFile String
    Used to save results.

    getScfFunctionAliases Result

    The following output properties are available:

    Aliases List<GetScfFunctionAliasesAlias>
    Alias list.
    FunctionName string
    Id string
    FunctionVersion string
    Master version pointed to by the alias.
    Namespace string
    ResultOutputFile string
    Aliases []GetScfFunctionAliasesAlias
    Alias list.
    FunctionName string
    Id string
    FunctionVersion string
    Master version pointed to by the alias.
    Namespace string
    ResultOutputFile string
    aliases List<GetScfFunctionAliasesAlias>
    Alias list.
    functionName String
    id String
    functionVersion String
    Master version pointed to by the alias.
    namespace String
    resultOutputFile String
    aliases GetScfFunctionAliasesAlias[]
    Alias list.
    functionName string
    id string
    functionVersion string
    Master version pointed to by the alias.
    namespace string
    resultOutputFile string
    aliases Sequence[GetScfFunctionAliasesAlias]
    Alias list.
    function_name str
    id str
    function_version str
    Master version pointed to by the alias.
    namespace str
    result_output_file str
    aliases List<Property Map>
    Alias list.
    functionName String
    id String
    functionVersion String
    Master version pointed to by the alias.
    namespace String
    resultOutputFile String

    Supporting Types

    GetScfFunctionAliasesAlias

    AddTime string
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    Description string
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    FunctionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    ModTime string
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    Name string
    Alias name.
    RoutingConfigs List<GetScfFunctionAliasesAliasRoutingConfig>
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
    AddTime string
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    Description string
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    FunctionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    ModTime string
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    Name string
    Alias name.
    RoutingConfigs []GetScfFunctionAliasesAliasRoutingConfig
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
    addTime String
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    description String
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    functionVersion String
    If this parameter is provided, only aliases associated with this function version will be returned.
    modTime String
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    name String
    Alias name.
    routingConfigs List<GetScfFunctionAliasesAliasRoutingConfig>
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
    addTime string
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    description string
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    functionVersion string
    If this parameter is provided, only aliases associated with this function version will be returned.
    modTime string
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    name string
    Alias name.
    routingConfigs GetScfFunctionAliasesAliasRoutingConfig[]
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
    add_time str
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    description str
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    function_version str
    If this parameter is provided, only aliases associated with this function version will be returned.
    mod_time str
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    name str
    Alias name.
    routing_configs Sequence[GetScfFunctionAliasesAliasRoutingConfig]
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
    addTime String
    Creation timeNote: this field may return null, indicating that no valid values can be obtained.
    description String
    DescriptionNote: this field may return null, indicating that no valid values can be obtained.
    functionVersion String
    If this parameter is provided, only aliases associated with this function version will be returned.
    modTime String
    Update timeNote: this field may return null, indicating that no valid values can be obtained.
    name String
    Alias name.
    routingConfigs List<Property Map>
    Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.

    GetScfFunctionAliasesAliasRoutingConfig

    additionVersionMatchs List<Property Map>
    Additional version with rule-based routing.
    additionalVersionWeights List<Property Map>
    Additional version with random weight-based routing.

    GetScfFunctionAliasesAliasRoutingConfigAdditionVersionMatch

    Expression string
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    Key string
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    Method string
    Match method. Valid values:range: range matchexact: exact string match.
    Version string
    Function version name.
    Expression string
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    Key string
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    Method string
    Match method. Valid values:range: range matchexact: exact string match.
    Version string
    Function version name.
    expression String
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    key String
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    method String
    Match method. Valid values:range: range matchexact: exact string match.
    version String
    Function version name.
    expression string
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    key string
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    method string
    Match method. Valid values:range: range matchexact: exact string match.
    version string
    Function version name.
    expression str
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    key str
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    method str
    Match method. Valid values:range: range matchexact: exact string match.
    version str
    Function version name.
    expression String
    Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b) or [a,b], where both a and b are integersRule requirements for exact match:Exact string match.
    key String
    Matching rule key. When the API is called, pass in the key to route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User for key and pass in RoutingKey:{User:value} when invoking a function through invoke for invocation based on rule matching.
    method String
    Match method. Valid values:range: range matchexact: exact string match.
    version String
    Function version name.

    GetScfFunctionAliasesAliasRoutingConfigAdditionalVersionWeight

    Version string
    Function version name.
    Weight double
    Version weight.
    Version string
    Function version name.
    Weight float64
    Version weight.
    version String
    Function version name.
    weight Double
    Version weight.
    version string
    Function version name.
    weight number
    Version weight.
    version str
    Function version name.
    weight float
    Version weight.
    version String
    Function version name.
    weight Number
    Version weight.

    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