tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getScfTriggers
Explore with Pulumi AI
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:
- Function
Name string - Function name.
- Filters
List<Get
Scf Triggers Filter> - 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.
- Order
By string - Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
- Result
Output stringFile - Used to save results.
- Function
Name string - Function name.
- Filters
[]Get
Scf Triggers Filter - 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.
- Order
By string - Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
- Result
Output stringFile - Used to save results.
- function
Name String - Function name.
- filters
List<Get
Scf Triggers Filter> - 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.
- order
By String - Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
- result
Output StringFile - Used to save results.
- function
Name string - Function name.
- filters
Get
Scf Triggers Filter[] - 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.
- order
By string - Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
- result
Output stringFile - Used to save results.
- function_
name str - Function name.
- filters
Sequence[Get
Scf Triggers Filter] - 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_ strfile - Used to save results.
- function
Name 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.
- order
By String - Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time.
- result
Output StringFile - Used to save results.
getScfTriggers Result
The following output properties are available:
- Function
Name string - Id string
- Triggers
List<Get
Scf Triggers Trigger> - Trigger list.
- Filters
List<Get
Scf Triggers Filter> - Namespace string
- Order string
- Order
By string - Result
Output stringFile
- Function
Name string - Id string
- Triggers
[]Get
Scf Triggers Trigger - Trigger list.
- Filters
[]Get
Scf Triggers Filter - Namespace string
- Order string
- Order
By string - Result
Output stringFile
- function
Name String - id String
- triggers
List<Get
Scf Triggers Trigger> - Trigger list.
- filters
List<Get
Scf Triggers Filter> - namespace String
- order String
- order
By String - result
Output StringFile
- function
Name string - id string
- triggers
Get
Scf Triggers Trigger[] - Trigger list.
- filters
Get
Scf Triggers Filter[] - namespace string
- order string
- order
By string - result
Output stringFile
- function_
name str - id str
- triggers
Sequence[Get
Scf Triggers Trigger] - Trigger list.
- filters
Sequence[Get
Scf Triggers Filter] - namespace str
- order str
- order_
by str - result_
output_ strfile
- function
Name String - id String
- triggers List<Property Map>
- Trigger list.
- filters List<Property Map>
- namespace String
- order String
- order
By String - result
Output StringFile
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
- Add
Time string - Trigger creation time.
- Available
Status string - Whether the trigger is available.
- Bind
Status string - Trigger-Function binding status.
- Custom
Argument string - Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
- Enable double
- Whether to enable.
- Mod
Time string - Trigger last modified time.
- Qualifier string
- Function version or alias.
- Resource
Id string - Minimum resource ID of trigger.
- Trigger
Attribute 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.
- Trigger
Desc string - Detailed configuration of trigger.
- Trigger
Name string - Trigger name.
- Type string
- Trigger type.
- Add
Time string - Trigger creation time.
- Available
Status string - Whether the trigger is available.
- Bind
Status string - Trigger-Function binding status.
- Custom
Argument string - Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
- Enable float64
- Whether to enable.
- Mod
Time string - Trigger last modified time.
- Qualifier string
- Function version or alias.
- Resource
Id string - Minimum resource ID of trigger.
- Trigger
Attribute 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.
- Trigger
Desc string - Detailed configuration of trigger.
- Trigger
Name string - Trigger name.
- Type string
- Trigger type.
- add
Time String - Trigger creation time.
- available
Status String - Whether the trigger is available.
- bind
Status String - Trigger-Function binding status.
- custom
Argument String - Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
- enable Double
- Whether to enable.
- mod
Time String - Trigger last modified time.
- qualifier String
- Function version or alias.
- resource
Id String - Minimum resource ID of trigger.
- trigger
Attribute 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.
- trigger
Desc String - Detailed configuration of trigger.
- trigger
Name String - Trigger name.
- type String
- Trigger type.
- add
Time string - Trigger creation time.
- available
Status string - Whether the trigger is available.
- bind
Status string - Trigger-Function binding status.
- custom
Argument string - Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
- enable number
- Whether to enable.
- mod
Time string - Trigger last modified time.
- qualifier string
- Function version or alias.
- resource
Id string - Minimum resource ID of trigger.
- trigger
Attribute 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.
- trigger
Desc string - Detailed configuration of trigger.
- trigger
Name 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.
- add
Time String - Trigger creation time.
- available
Status String - Whether the trigger is available.
- bind
Status String - Trigger-Function binding status.
- custom
Argument String - Custom parameterNote: this field may return null, indicating that no valid values can be obtained.
- enable Number
- Whether to enable.
- mod
Time String - Trigger last modified time.
- qualifier String
- Function version or alias.
- resource
Id String - Minimum resource ID of trigger.
- trigger
Attribute 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.
- trigger
Desc String - Detailed configuration of trigger.
- trigger
Name 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack