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

tencentcloud.getScfFunctionVersions

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_versions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const functionVersions = tencentcloud.getScfFunctionVersions({
        functionName: "keep-1676351130",
        namespace: "default",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    function_versions = tencentcloud.get_scf_function_versions(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.GetScfFunctionVersions(ctx, &tencentcloud.GetScfFunctionVersionsArgs{
    			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 functionVersions = Tencentcloud.GetScfFunctionVersions.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.GetScfFunctionVersionsArgs;
    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 functionVersions = TencentcloudFunctions.getScfFunctionVersions(GetScfFunctionVersionsArgs.builder()
                .functionName("keep-1676351130")
                .namespace("default")
                .build());
    
        }
    }
    
    variables:
      functionVersions:
        fn::invoke:
          function: tencentcloud:getScfFunctionVersions
          arguments:
            functionName: keep-1676351130
            namespace: default
    

    Using getScfFunctionVersions

    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 getScfFunctionVersions(args: GetScfFunctionVersionsArgs, opts?: InvokeOptions): Promise<GetScfFunctionVersionsResult>
    function getScfFunctionVersionsOutput(args: GetScfFunctionVersionsOutputArgs, opts?: InvokeOptions): Output<GetScfFunctionVersionsResult>
    def get_scf_function_versions(function_name: Optional[str] = None,
                                  id: Optional[str] = None,
                                  namespace: Optional[str] = None,
                                  order: Optional[str] = None,
                                  order_by: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetScfFunctionVersionsResult
    def get_scf_function_versions_output(function_name: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  namespace: Optional[pulumi.Input[str]] = None,
                                  order: Optional[pulumi.Input[str]] = None,
                                  order_by: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetScfFunctionVersionsResult]
    func GetScfFunctionVersions(ctx *Context, args *GetScfFunctionVersionsArgs, opts ...InvokeOption) (*GetScfFunctionVersionsResult, error)
    func GetScfFunctionVersionsOutput(ctx *Context, args *GetScfFunctionVersionsOutputArgs, opts ...InvokeOption) GetScfFunctionVersionsResultOutput

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

    public static class GetScfFunctionVersions 
    {
        public static Task<GetScfFunctionVersionsResult> InvokeAsync(GetScfFunctionVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetScfFunctionVersionsResult> Invoke(GetScfFunctionVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfFunctionVersionsResult> getScfFunctionVersions(GetScfFunctionVersionsArgs args, InvokeOptions options)
    public static Output<GetScfFunctionVersionsResult> getScfFunctionVersions(GetScfFunctionVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfFunctionVersions:getScfFunctionVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionName string
    Function Name.
    Id string
    Namespace string
    The namespace where the function locates.
    Order string
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    OrderBy string
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    ResultOutputFile string
    Used to save results.
    FunctionName string
    Function Name.
    Id string
    Namespace string
    The namespace where the function locates.
    Order string
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    OrderBy string
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    ResultOutputFile string
    Used to save results.
    functionName String
    Function Name.
    id String
    namespace String
    The namespace where the function locates.
    order String
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    orderBy String
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    resultOutputFile String
    Used to save results.
    functionName string
    Function Name.
    id string
    namespace string
    The namespace where the function locates.
    order string
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    orderBy string
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    resultOutputFile string
    Used to save results.
    function_name str
    Function Name.
    id str
    namespace str
    The namespace where the function locates.
    order str
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    order_by str
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    result_output_file str
    Used to save results.
    functionName String
    Function Name.
    id String
    namespace String
    The namespace where the function locates.
    order String
    It specifies whether to return the results in ascending or descending order. The value is ASC or DESC.
    orderBy String
    It specifies the sorting order of the results according to a specified field, such as AddTime, ModTime.
    resultOutputFile String
    Used to save results.

    getScfFunctionVersions Result

    The following output properties are available:

    FunctionName string
    Id string
    Versions List<GetScfFunctionVersionsVersion>
    Function version listNote: This field may return null, indicating that no valid values is found.
    Namespace string
    Order string
    OrderBy string
    ResultOutputFile string
    FunctionName string
    Id string
    Versions []GetScfFunctionVersionsVersion
    Function version listNote: This field may return null, indicating that no valid values is found.
    Namespace string
    Order string
    OrderBy string
    ResultOutputFile string
    functionName String
    id String
    versions List<GetScfFunctionVersionsVersion>
    Function version listNote: This field may return null, indicating that no valid values is found.
    namespace String
    order String
    orderBy String
    resultOutputFile String
    functionName string
    id string
    versions GetScfFunctionVersionsVersion[]
    Function version listNote: This field may return null, indicating that no valid values is found.
    namespace string
    order string
    orderBy string
    resultOutputFile string
    function_name str
    id str
    versions Sequence[GetScfFunctionVersionsVersion]
    Function version listNote: This field may return null, indicating that no valid values is found.
    namespace str
    order str
    order_by str
    result_output_file str
    functionName String
    id String
    versions List<Property Map>
    Function version listNote: This field may return null, indicating that no valid values is found.
    namespace String
    order String
    orderBy String
    resultOutputFile String

    Supporting Types

    GetScfFunctionVersionsVersion

    AddTime string
    The creation timeNote: This field may return null, indicating that no valid value was found.
    Description string
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    ModTime string
    Update timeNote: This field may return null, indicating that no valid value was found.
    Status string
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    Version string
    Function version name.
    AddTime string
    The creation timeNote: This field may return null, indicating that no valid value was found.
    Description string
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    ModTime string
    Update timeNote: This field may return null, indicating that no valid value was found.
    Status string
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    Version string
    Function version name.
    addTime String
    The creation timeNote: This field may return null, indicating that no valid value was found.
    description String
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    modTime String
    Update timeNote: This field may return null, indicating that no valid value was found.
    status String
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    version String
    Function version name.
    addTime string
    The creation timeNote: This field may return null, indicating that no valid value was found.
    description string
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    modTime string
    Update timeNote: This field may return null, indicating that no valid value was found.
    status string
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    version string
    Function version name.
    add_time str
    The creation timeNote: This field may return null, indicating that no valid value was found.
    description str
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    mod_time str
    Update timeNote: This field may return null, indicating that no valid value was found.
    status str
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    version str
    Function version name.
    addTime String
    The creation timeNote: This field may return null, indicating that no valid value was found.
    description String
    Version descriptionNote: This field may return null, indicating that no valid values is found.
    modTime String
    Update timeNote: This field may return null, indicating that no valid value was found.
    status String
    Version statusNote: this field may return null, indicating that no valid values can be obtained.
    version String
    Function version name.

    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