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

tencentcloud.getScfTriggers

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 triggers

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const triggers = tencentcloud.getScfTriggers({
        functionName: "keep-1676351130",
        namespace: "default",
        order: "DESC",
        orderBy: "add_time",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    triggers = tencentcloud.get_scf_triggers(function_name="keep-1676351130",
        namespace="default",
        order="DESC",
        order_by="add_time")
    
    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.GetScfTriggers(ctx, &tencentcloud.GetScfTriggersArgs{
    			FunctionName: "keep-1676351130",
    			Namespace:    pulumi.StringRef("default"),
    			Order:        pulumi.StringRef("DESC"),
    			OrderBy:      pulumi.StringRef("add_time"),
    		}, 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 triggers = Tencentcloud.GetScfTriggers.Invoke(new()
        {
            FunctionName = "keep-1676351130",
            Namespace = "default",
            Order = "DESC",
            OrderBy = "add_time",
        });
    
    });
    
    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.GetScfTriggersArgs;
    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 triggers = TencentcloudFunctions.getScfTriggers(GetScfTriggersArgs.builder()
                .functionName("keep-1676351130")
                .namespace("default")
                .order("DESC")
                .orderBy("add_time")
                .build());
    
        }
    }
    
    variables:
      triggers:
        fn::invoke:
          function: tencentcloud:getScfTriggers
          arguments:
            functionName: keep-1676351130
            namespace: default
            order: DESC
            orderBy: add_time
    

    Using getScfTriggers

    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 getScfTriggers(args: GetScfTriggersArgs, opts?: InvokeOptions): Promise<GetScfTriggersResult>
    function getScfTriggersOutput(args: GetScfTriggersOutputArgs, opts?: InvokeOptions): Output<GetScfTriggersResult>
    def get_scf_triggers(filters: Optional[Sequence[GetScfTriggersFilter]] = None,
                         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) -> GetScfTriggersResult
    def get_scf_triggers_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetScfTriggersFilterArgs]]]] = None,
                         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[GetScfTriggersResult]
    func GetScfTriggers(ctx *Context, args *GetScfTriggersArgs, opts ...InvokeOption) (*GetScfTriggersResult, error)
    func GetScfTriggersOutput(ctx *Context, args *GetScfTriggersOutputArgs, opts ...InvokeOption) GetScfTriggersResultOutput

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

    public static class GetScfTriggers 
    {
        public static Task<GetScfTriggersResult> InvokeAsync(GetScfTriggersArgs args, InvokeOptions? opts = null)
        public static Output<GetScfTriggersResult> Invoke(GetScfTriggersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfTriggersResult> getScfTriggers(GetScfTriggersArgs args, InvokeOptions options)
    public static Output<GetScfTriggersResult> getScfTriggers(GetScfTriggersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfTriggers:getScfTriggers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionName string
    Function name.
    Filters List<GetScfTriggersFilter>
    • Qualifier:Function version, alias.
    Id string
    Namespace string
    Namespace. Default value: default.
    Order string
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    OrderBy string
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    ResultOutputFile string
    Used to save results.
    FunctionName string
    Function name.
    Filters []GetScfTriggersFilter
    • Qualifier:Function version, alias.
    Id string
    Namespace string
    Namespace. Default value: default.
    Order string
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    OrderBy string
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    ResultOutputFile string
    Used to save results.
    functionName String
    Function name.
    filters List<GetScfTriggersFilter>
    • Qualifier:Function version, alias.
    id String
    namespace String
    Namespace. Default value: default.
    order String
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    orderBy String
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    resultOutputFile String
    Used to save results.
    functionName string
    Function name.
    filters GetScfTriggersFilter[]
    • Qualifier:Function version, alias.
    id string
    namespace string
    Namespace. Default value: default.
    order string
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    orderBy string
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    resultOutputFile string
    Used to save results.
    function_name str
    Function name.
    filters Sequence[GetScfTriggersFilter]
    • Qualifier:Function version, alias.
    id str
    namespace str
    Namespace. Default value: default.
    order str
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    order_by str
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    result_output_file str
    Used to save results.
    functionName String
    Function name.
    filters List<Property Map>
    • Qualifier:Function version, alias.
    id String
    namespace String
    Namespace. Default value: default.
    order String
    Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC.
    orderBy String
    Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
    resultOutputFile String
    Used to save results.

    getScfTriggers Result

    The following output properties are available:

    Supporting Types

    GetScfTriggersFilter

    Name string
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    Values List<string>
    Filter values of the field.
    Name string
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    Values []string
    Filter values of the field.
    name String
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    values List<String>
    Filter values of the field.
    name string
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    values string[]
    Filter values of the field.
    name str
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    values Sequence[str]
    Filter values of the field.
    name String
    Fields to be filtered. Up to 10 conditions allowed.Values of Name: VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip. Values limit: 1.Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.When Name is Runtime, CustomImage refers to the image type function.
    values List<String>
    Filter values of the field.

    GetScfTriggersTrigger

    AddTime string
    Trigger creation time.
    AvailableStatus string
    Whether the trigger is available.
    BindStatus string
    Trigger-Function binding status.
    CustomArgument string
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    Enable double
    Whether to enable.
    ModTime string
    Trigger last modified time.
    Qualifier string
    Function version or alias.
    ResourceId string
    Minimum resource ID of trigger.
    TriggerAttribute string
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    TriggerDesc string
    Detailed configuration of trigger.
    TriggerName string
    Trigger name.
    Type string
    Trigger type.
    AddTime string
    Trigger creation time.
    AvailableStatus string
    Whether the trigger is available.
    BindStatus string
    Trigger-Function binding status.
    CustomArgument string
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    Enable float64
    Whether to enable.
    ModTime string
    Trigger last modified time.
    Qualifier string
    Function version or alias.
    ResourceId string
    Minimum resource ID of trigger.
    TriggerAttribute string
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    TriggerDesc string
    Detailed configuration of trigger.
    TriggerName string
    Trigger name.
    Type string
    Trigger type.
    addTime String
    Trigger creation time.
    availableStatus String
    Whether the trigger is available.
    bindStatus String
    Trigger-Function binding status.
    customArgument String
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    enable Double
    Whether to enable.
    modTime String
    Trigger last modified time.
    qualifier String
    Function version or alias.
    resourceId String
    Minimum resource ID of trigger.
    triggerAttribute String
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    triggerDesc String
    Detailed configuration of trigger.
    triggerName String
    Trigger name.
    type String
    Trigger type.
    addTime string
    Trigger creation time.
    availableStatus string
    Whether the trigger is available.
    bindStatus string
    Trigger-Function binding status.
    customArgument string
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    enable number
    Whether to enable.
    modTime string
    Trigger last modified time.
    qualifier string
    Function version or alias.
    resourceId string
    Minimum resource ID of trigger.
    triggerAttribute string
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    triggerDesc string
    Detailed configuration of trigger.
    triggerName string
    Trigger name.
    type string
    Trigger type.
    add_time str
    Trigger creation time.
    available_status str
    Whether the trigger is available.
    bind_status str
    Trigger-Function binding status.
    custom_argument str
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    enable float
    Whether to enable.
    mod_time str
    Trigger last modified time.
    qualifier str
    Function version or alias.
    resource_id str
    Minimum resource ID of trigger.
    trigger_attribute str
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    trigger_desc str
    Detailed configuration of trigger.
    trigger_name str
    Trigger name.
    type str
    Trigger type.
    addTime String
    Trigger creation time.
    availableStatus String
    Whether the trigger is available.
    bindStatus String
    Trigger-Function binding status.
    customArgument String
    Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
    enable Number
    Whether to enable.
    modTime String
    Trigger last modified time.
    qualifier String
    Function version or alias.
    resourceId String
    Minimum resource ID of trigger.
    triggerAttribute String
    Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console.
    triggerDesc String
    Detailed configuration of trigger.
    triggerName String
    Trigger name.
    type String
    Trigger type.

    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