1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getScfRequestStatus
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getScfRequestStatus

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Use this data source to query detailed information of scf request_status

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const requestStatus = tencentcloud.getScfRequestStatus({
        functionName: "keep-1676351130",
        functionRequestId: "9de9405a-e33a-498d-bb59-e80b7bed1191",
        namespace: "default",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    request_status = tencentcloud.get_scf_request_status(function_name="keep-1676351130",
        function_request_id="9de9405a-e33a-498d-bb59-e80b7bed1191",
        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.GetScfRequestStatus(ctx, &tencentcloud.GetScfRequestStatusArgs{
    			FunctionName:      "keep-1676351130",
    			FunctionRequestId: "9de9405a-e33a-498d-bb59-e80b7bed1191",
    			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 requestStatus = Tencentcloud.GetScfRequestStatus.Invoke(new()
        {
            FunctionName = "keep-1676351130",
            FunctionRequestId = "9de9405a-e33a-498d-bb59-e80b7bed1191",
            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.GetScfRequestStatusArgs;
    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 requestStatus = TencentcloudFunctions.getScfRequestStatus(GetScfRequestStatusArgs.builder()
                .functionName("keep-1676351130")
                .functionRequestId("9de9405a-e33a-498d-bb59-e80b7bed1191")
                .namespace("default")
                .build());
    
        }
    }
    
    variables:
      requestStatus:
        fn::invoke:
          function: tencentcloud:getScfRequestStatus
          arguments:
            functionName: keep-1676351130
            functionRequestId: 9de9405a-e33a-498d-bb59-e80b7bed1191
            namespace: default
    

    Using getScfRequestStatus

    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 getScfRequestStatus(args: GetScfRequestStatusArgs, opts?: InvokeOptions): Promise<GetScfRequestStatusResult>
    function getScfRequestStatusOutput(args: GetScfRequestStatusOutputArgs, opts?: InvokeOptions): Output<GetScfRequestStatusResult>
    def get_scf_request_status(end_time: Optional[str] = None,
                               function_name: Optional[str] = None,
                               function_request_id: Optional[str] = None,
                               id: Optional[str] = None,
                               namespace: Optional[str] = None,
                               result_output_file: Optional[str] = None,
                               start_time: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetScfRequestStatusResult
    def get_scf_request_status_output(end_time: Optional[pulumi.Input[str]] = None,
                               function_name: Optional[pulumi.Input[str]] = None,
                               function_request_id: 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,
                               start_time: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetScfRequestStatusResult]
    func GetScfRequestStatus(ctx *Context, args *GetScfRequestStatusArgs, opts ...InvokeOption) (*GetScfRequestStatusResult, error)
    func GetScfRequestStatusOutput(ctx *Context, args *GetScfRequestStatusOutputArgs, opts ...InvokeOption) GetScfRequestStatusResultOutput

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

    public static class GetScfRequestStatus 
    {
        public static Task<GetScfRequestStatusResult> InvokeAsync(GetScfRequestStatusArgs args, InvokeOptions? opts = null)
        public static Output<GetScfRequestStatusResult> Invoke(GetScfRequestStatusInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfRequestStatusResult> getScfRequestStatus(GetScfRequestStatusArgs args, InvokeOptions options)
    public static Output<GetScfRequestStatusResult> getScfRequestStatus(GetScfRequestStatusArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfRequestStatus:getScfRequestStatus
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionName string
    Function name.
    FunctionRequestId string
    ID of the request to be queried.
    EndTime string
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    Id string
    Namespace string
    Function namespace.
    ResultOutputFile string
    Used to save results.
    StartTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    FunctionName string
    Function name.
    FunctionRequestId string
    ID of the request to be queried.
    EndTime string
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    Id string
    Namespace string
    Function namespace.
    ResultOutputFile string
    Used to save results.
    StartTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    functionName String
    Function name.
    functionRequestId String
    ID of the request to be queried.
    endTime String
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    id String
    namespace String
    Function namespace.
    resultOutputFile String
    Used to save results.
    startTime String
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    functionName string
    Function name.
    functionRequestId string
    ID of the request to be queried.
    endTime string
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    id string
    namespace string
    Function namespace.
    resultOutputFile string
    Used to save results.
    startTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    function_name str
    Function name.
    function_request_id str
    ID of the request to be queried.
    end_time str
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    id str
    namespace str
    Function namespace.
    result_output_file str
    Used to save results.
    start_time str
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    functionName String
    Function name.
    functionRequestId String
    ID of the request to be queried.
    endTime String
    End time of the query. such as 2017-05-16 20:59:59. If StartTime is not specified, EndTime defaults to the current time. If StartTime is specified, EndTime is required, and it need to be later than the StartTime.
    id String
    namespace String
    Function namespace.
    resultOutputFile String
    Used to save results.
    startTime String
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.

    getScfRequestStatus Result

    The following output properties are available:

    Datas List<GetScfRequestStatusData>
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    FunctionName string
    Function name.
    FunctionRequestId string
    Id string
    EndTime string
    Namespace string
    ResultOutputFile string
    StartTime string
    Request start time.
    Datas []GetScfRequestStatusData
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    FunctionName string
    Function name.
    FunctionRequestId string
    Id string
    EndTime string
    Namespace string
    ResultOutputFile string
    StartTime string
    Request start time.
    datas List<GetScfRequestStatusData>
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    functionName String
    Function name.
    functionRequestId String
    id String
    endTime String
    namespace String
    resultOutputFile String
    startTime String
    Request start time.
    datas GetScfRequestStatusData[]
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    functionName string
    Function name.
    functionRequestId string
    id string
    endTime string
    namespace string
    resultOutputFile string
    startTime string
    Request start time.
    datas Sequence[GetScfRequestStatusData]
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    function_name str
    Function name.
    function_request_id str
    id str
    end_time str
    namespace str
    result_output_file str
    start_time str
    Request start time.
    datas List<Property Map>
    Details of the function running statusNote: this field may return null, indicating that no valid values can be obtained.
    functionName String
    Function name.
    functionRequestId String
    id String
    endTime String
    namespace String
    resultOutputFile String
    startTime String
    Request start time.

    Supporting Types

    GetScfRequestStatusData

    Duration double
    Time consumed for the request in ms.
    FunctionName string
    Function name.
    MemUsage double
    Time consumed by the request in MB.
    RequestId string
    Request ID.
    RetCode double
    Result of the request. 0: succeeded, 1: running, -1: exception.
    RetMsg string
    Return value after the function is executed.
    RetryNum double
    Retry Attempts.
    StartTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    Duration float64
    Time consumed for the request in ms.
    FunctionName string
    Function name.
    MemUsage float64
    Time consumed by the request in MB.
    RequestId string
    Request ID.
    RetCode float64
    Result of the request. 0: succeeded, 1: running, -1: exception.
    RetMsg string
    Return value after the function is executed.
    RetryNum float64
    Retry Attempts.
    StartTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    duration Double
    Time consumed for the request in ms.
    functionName String
    Function name.
    memUsage Double
    Time consumed by the request in MB.
    requestId String
    Request ID.
    retCode Double
    Result of the request. 0: succeeded, 1: running, -1: exception.
    retMsg String
    Return value after the function is executed.
    retryNum Double
    Retry Attempts.
    startTime String
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    duration number
    Time consumed for the request in ms.
    functionName string
    Function name.
    memUsage number
    Time consumed by the request in MB.
    requestId string
    Request ID.
    retCode number
    Result of the request. 0: succeeded, 1: running, -1: exception.
    retMsg string
    Return value after the function is executed.
    retryNum number
    Retry Attempts.
    startTime string
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    duration float
    Time consumed for the request in ms.
    function_name str
    Function name.
    mem_usage float
    Time consumed by the request in MB.
    request_id str
    Request ID.
    ret_code float
    Result of the request. 0: succeeded, 1: running, -1: exception.
    ret_msg str
    Return value after the function is executed.
    retry_num float
    Retry Attempts.
    start_time str
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.
    duration Number
    Time consumed for the request in ms.
    functionName String
    Function name.
    memUsage Number
    Time consumed by the request in MB.
    requestId String
    Request ID.
    retCode Number
    Result of the request. 0: succeeded, 1: running, -1: exception.
    retMsg String
    Return value after the function is executed.
    retryNum Number
    Retry Attempts.
    startTime String
    Start time of the query, for example 2017-05-16 20:00:00. If it's left empty, it defaults to 15 minutes before the current time.

    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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack