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

tencentcloud.getScfLayers

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 layers

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const layers = tencentcloud.getScfLayers({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    layers = tencentcloud.get_scf_layers()
    
    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.GetScfLayers(ctx, &tencentcloud.GetScfLayersArgs{}, 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 layers = Tencentcloud.GetScfLayers.Invoke();
    
    });
    
    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.GetScfLayersArgs;
    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 layers = TencentcloudFunctions.getScfLayers();
    
        }
    }
    
    variables:
      layers:
        fn::invoke:
          function: tencentcloud:getScfLayers
          arguments: {}
    

    Using getScfLayers

    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 getScfLayers(args: GetScfLayersArgs, opts?: InvokeOptions): Promise<GetScfLayersResult>
    function getScfLayersOutput(args: GetScfLayersOutputArgs, opts?: InvokeOptions): Output<GetScfLayersResult>
    def get_scf_layers(compatible_runtime: Optional[str] = None,
                       id: Optional[str] = None,
                       result_output_file: Optional[str] = None,
                       search_key: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetScfLayersResult
    def get_scf_layers_output(compatible_runtime: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       result_output_file: Optional[pulumi.Input[str]] = None,
                       search_key: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetScfLayersResult]
    func GetScfLayers(ctx *Context, args *GetScfLayersArgs, opts ...InvokeOption) (*GetScfLayersResult, error)
    func GetScfLayersOutput(ctx *Context, args *GetScfLayersOutputArgs, opts ...InvokeOption) GetScfLayersResultOutput

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

    public static class GetScfLayers 
    {
        public static Task<GetScfLayersResult> InvokeAsync(GetScfLayersArgs args, InvokeOptions? opts = null)
        public static Output<GetScfLayersResult> Invoke(GetScfLayersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfLayersResult> getScfLayers(GetScfLayersArgs args, InvokeOptions options)
    public static Output<GetScfLayersResult> getScfLayers(GetScfLayersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfLayers:getScfLayers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompatibleRuntime string
    Compatible runtimes.
    Id string
    ResultOutputFile string
    Used to save results.
    SearchKey string
    Query key, which fuzzily matches the name.
    CompatibleRuntime string
    Compatible runtimes.
    Id string
    ResultOutputFile string
    Used to save results.
    SearchKey string
    Query key, which fuzzily matches the name.
    compatibleRuntime String
    Compatible runtimes.
    id String
    resultOutputFile String
    Used to save results.
    searchKey String
    Query key, which fuzzily matches the name.
    compatibleRuntime string
    Compatible runtimes.
    id string
    resultOutputFile string
    Used to save results.
    searchKey string
    Query key, which fuzzily matches the name.
    compatible_runtime str
    Compatible runtimes.
    id str
    result_output_file str
    Used to save results.
    search_key str
    Query key, which fuzzily matches the name.
    compatibleRuntime String
    Compatible runtimes.
    id String
    resultOutputFile String
    Used to save results.
    searchKey String
    Query key, which fuzzily matches the name.

    getScfLayers Result

    The following output properties are available:

    Supporting Types

    GetScfLayersLayer

    AddTime string
    Creation time.
    CompatibleRuntimes List<string>
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    Description string
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    LayerName string
    Layer name.
    LayerVersion double
    Version number.
    LicenseInfo string
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    Stamp string
    StampNote: This field may return null, indicating that no valid values can be obtained.
    Status string
    Current status of specific layer version. For valid values, please see here.
    AddTime string
    Creation time.
    CompatibleRuntimes []string
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    Description string
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    LayerName string
    Layer name.
    LayerVersion float64
    Version number.
    LicenseInfo string
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    Stamp string
    StampNote: This field may return null, indicating that no valid values can be obtained.
    Status string
    Current status of specific layer version. For valid values, please see here.
    addTime String
    Creation time.
    compatibleRuntimes List<String>
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    description String
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    layerName String
    Layer name.
    layerVersion Double
    Version number.
    licenseInfo String
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    stamp String
    StampNote: This field may return null, indicating that no valid values can be obtained.
    status String
    Current status of specific layer version. For valid values, please see here.
    addTime string
    Creation time.
    compatibleRuntimes string[]
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    description string
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    layerName string
    Layer name.
    layerVersion number
    Version number.
    licenseInfo string
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    stamp string
    StampNote: This field may return null, indicating that no valid values can be obtained.
    status string
    Current status of specific layer version. For valid values, please see here.
    add_time str
    Creation time.
    compatible_runtimes Sequence[str]
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    description str
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    layer_name str
    Layer name.
    layer_version float
    Version number.
    license_info str
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    stamp str
    StampNote: This field may return null, indicating that no valid values can be obtained.
    status str
    Current status of specific layer version. For valid values, please see here.
    addTime String
    Creation time.
    compatibleRuntimes List<String>
    Runtime applicable to a versionNote: This field may return null, indicating that no valid values can be obtained.
    description String
    Version descriptionNote: This field may return null, indicating that no valid values can be obtained.
    layerName String
    Layer name.
    layerVersion Number
    Version number.
    licenseInfo String
    License informationNote: This field may return null, indicating that no valid values can be obtained.
    stamp String
    StampNote: This field may return null, indicating that no valid values can be obtained.
    status String
    Current status of specific layer version. For valid values, please see here.

    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