tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getScfFunctionVersions
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 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:
- Function
Name 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
orDESC
. - Order
By string - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - Result
Output stringFile - Used to save results.
- Function
Name 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
orDESC
. - Order
By string - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - Result
Output stringFile - Used to save results.
- function
Name 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
orDESC
. - order
By String - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - result
Output StringFile - Used to save results.
- function
Name 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
orDESC
. - order
By string - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - result
Output stringFile - 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
orDESC
. - order_
by str - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - result_
output_ strfile - Used to save results.
- function
Name 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
orDESC
. - order
By String - It specifies the sorting order of the results according to a specified field, such as
AddTime
,ModTime
. - result
Output StringFile - Used to save results.
getScfFunctionVersions Result
The following output properties are available:
- Function
Name string - Id string
- Versions
List<Get
Scf Function Versions Version> - Function version listNote: This field may return null, indicating that no valid values is found.
- Namespace string
- Order string
- Order
By string - Result
Output stringFile
- Function
Name string - Id string
- Versions
[]Get
Scf Function Versions Version - Function version listNote: This field may return null, indicating that no valid values is found.
- Namespace string
- Order string
- Order
By string - Result
Output stringFile
- function
Name String - id String
- versions
List<Get
Scf Function Versions Version> - Function version listNote: This field may return null, indicating that no valid values is found.
- namespace String
- order String
- order
By String - result
Output StringFile
- function
Name string - id string
- versions
Get
Scf Function Versions Version[] - Function version listNote: This field may return null, indicating that no valid values is found.
- namespace string
- order string
- order
By string - result
Output stringFile
- function_
name str - id str
- versions
Sequence[Get
Scf Function Versions Version] - Function version listNote: This field may return null, indicating that no valid values is found.
- namespace str
- order str
- order_
by str - result_
output_ strfile
- function
Name 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
- order
By String - result
Output StringFile
Supporting Types
GetScfFunctionVersionsVersion
- Add
Time 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.
- Mod
Time 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 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.
- Mod
Time 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 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.
- mod
Time 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 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.
- mod
Time 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.
- add
Time 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.
- mod
Time 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack