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

tencentcloud.getScfNamespaces

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query SCF namespaces.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fooScfNamespace = new tencentcloud.ScfNamespace("fooScfNamespace", {namespace: "ci-test-scf"});
    const fooScfNamespaces = tencentcloud.getScfNamespacesOutput({
        namespace: fooScfNamespace.scfNamespaceId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo_scf_namespace = tencentcloud.ScfNamespace("fooScfNamespace", namespace="ci-test-scf")
    foo_scf_namespaces = tencentcloud.get_scf_namespaces_output(namespace=foo_scf_namespace.scf_namespace_id)
    
    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 {
    		fooScfNamespace, err := tencentcloud.NewScfNamespace(ctx, "fooScfNamespace", &tencentcloud.ScfNamespaceArgs{
    			Namespace: pulumi.String("ci-test-scf"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetScfNamespacesOutput(ctx, tencentcloud.GetScfNamespacesOutputArgs{
    			Namespace: fooScfNamespace.ScfNamespaceId,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fooScfNamespace = new Tencentcloud.ScfNamespace("fooScfNamespace", new()
        {
            Namespace = "ci-test-scf",
        });
    
        var fooScfNamespaces = Tencentcloud.GetScfNamespaces.Invoke(new()
        {
            Namespace = fooScfNamespace.ScfNamespaceId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfNamespace;
    import com.pulumi.tencentcloud.ScfNamespaceArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetScfNamespacesArgs;
    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) {
            var fooScfNamespace = new ScfNamespace("fooScfNamespace", ScfNamespaceArgs.builder()
                .namespace("ci-test-scf")
                .build());
    
            final var fooScfNamespaces = TencentcloudFunctions.getScfNamespaces(GetScfNamespacesArgs.builder()
                .namespace(fooScfNamespace.scfNamespaceId())
                .build());
    
        }
    }
    
    resources:
      fooScfNamespace:
        type: tencentcloud:ScfNamespace
        properties:
          namespace: ci-test-scf
    variables:
      fooScfNamespaces:
        fn::invoke:
          function: tencentcloud:getScfNamespaces
          arguments:
            namespace: ${fooScfNamespace.scfNamespaceId}
    

    Using getScfNamespaces

    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 getScfNamespaces(args: GetScfNamespacesArgs, opts?: InvokeOptions): Promise<GetScfNamespacesResult>
    function getScfNamespacesOutput(args: GetScfNamespacesOutputArgs, opts?: InvokeOptions): Output<GetScfNamespacesResult>
    def get_scf_namespaces(description: Optional[str] = None,
                           id: Optional[str] = None,
                           namespace: Optional[str] = None,
                           result_output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetScfNamespacesResult
    def get_scf_namespaces_output(description: 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,
                           opts: Optional[InvokeOptions] = None) -> Output[GetScfNamespacesResult]
    func GetScfNamespaces(ctx *Context, args *GetScfNamespacesArgs, opts ...InvokeOption) (*GetScfNamespacesResult, error)
    func GetScfNamespacesOutput(ctx *Context, args *GetScfNamespacesOutputArgs, opts ...InvokeOption) GetScfNamespacesResultOutput

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

    public static class GetScfNamespaces 
    {
        public static Task<GetScfNamespacesResult> InvokeAsync(GetScfNamespacesArgs args, InvokeOptions? opts = null)
        public static Output<GetScfNamespacesResult> Invoke(GetScfNamespacesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScfNamespacesResult> getScfNamespaces(GetScfNamespacesArgs args, InvokeOptions options)
    public static Output<GetScfNamespacesResult> getScfNamespaces(GetScfNamespacesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getScfNamespaces:getScfNamespaces
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Description of the SCF namespace to be queried.
    Id string
    Namespace string
    Name of the SCF namespace to be queried.
    ResultOutputFile string
    Used to save results.
    Description string
    Description of the SCF namespace to be queried.
    Id string
    Namespace string
    Name of the SCF namespace to be queried.
    ResultOutputFile string
    Used to save results.
    description String
    Description of the SCF namespace to be queried.
    id String
    namespace String
    Name of the SCF namespace to be queried.
    resultOutputFile String
    Used to save results.
    description string
    Description of the SCF namespace to be queried.
    id string
    namespace string
    Name of the SCF namespace to be queried.
    resultOutputFile string
    Used to save results.
    description str
    Description of the SCF namespace to be queried.
    id str
    namespace str
    Name of the SCF namespace to be queried.
    result_output_file str
    Used to save results.
    description String
    Description of the SCF namespace to be queried.
    id String
    namespace String
    Name of the SCF namespace to be queried.
    resultOutputFile String
    Used to save results.

    getScfNamespaces Result

    The following output properties are available:

    Id string
    Namespaces List<GetScfNamespacesNamespace>
    An information list of namespace. Each element contains the following attributes:
    Description string
    Description of the SCF namespace.
    Namespace string
    Name of the SCF namespace.
    ResultOutputFile string
    Id string
    Namespaces []GetScfNamespacesNamespace
    An information list of namespace. Each element contains the following attributes:
    Description string
    Description of the SCF namespace.
    Namespace string
    Name of the SCF namespace.
    ResultOutputFile string
    id String
    namespaces List<GetScfNamespacesNamespace>
    An information list of namespace. Each element contains the following attributes:
    description String
    Description of the SCF namespace.
    namespace String
    Name of the SCF namespace.
    resultOutputFile String
    id string
    namespaces GetScfNamespacesNamespace[]
    An information list of namespace. Each element contains the following attributes:
    description string
    Description of the SCF namespace.
    namespace string
    Name of the SCF namespace.
    resultOutputFile string
    id str
    namespaces Sequence[GetScfNamespacesNamespace]
    An information list of namespace. Each element contains the following attributes:
    description str
    Description of the SCF namespace.
    namespace str
    Name of the SCF namespace.
    result_output_file str
    id String
    namespaces List<Property Map>
    An information list of namespace. Each element contains the following attributes:
    description String
    Description of the SCF namespace.
    namespace String
    Name of the SCF namespace.
    resultOutputFile String

    Supporting Types

    GetScfNamespacesNamespace

    CreateTime string
    Create time of the SCF namespace.
    Description string
    Description of the SCF namespace to be queried.
    ModifyTime string
    Modify time of the SCF namespace.
    Namespace string
    Name of the SCF namespace to be queried.
    Type string
    Type of the SCF namespace.
    CreateTime string
    Create time of the SCF namespace.
    Description string
    Description of the SCF namespace to be queried.
    ModifyTime string
    Modify time of the SCF namespace.
    Namespace string
    Name of the SCF namespace to be queried.
    Type string
    Type of the SCF namespace.
    createTime String
    Create time of the SCF namespace.
    description String
    Description of the SCF namespace to be queried.
    modifyTime String
    Modify time of the SCF namespace.
    namespace String
    Name of the SCF namespace to be queried.
    type String
    Type of the SCF namespace.
    createTime string
    Create time of the SCF namespace.
    description string
    Description of the SCF namespace to be queried.
    modifyTime string
    Modify time of the SCF namespace.
    namespace string
    Name of the SCF namespace to be queried.
    type string
    Type of the SCF namespace.
    create_time str
    Create time of the SCF namespace.
    description str
    Description of the SCF namespace to be queried.
    modify_time str
    Modify time of the SCF namespace.
    namespace str
    Name of the SCF namespace to be queried.
    type str
    Type of the SCF namespace.
    createTime String
    Create time of the SCF namespace.
    description String
    Description of the SCF namespace to be queried.
    modifyTime String
    Modify time of the SCF namespace.
    namespace String
    Name of the SCF namespace to be queried.
    type String
    Type of the SCF namespace.

    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