tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getScfNamespaces
Start a Neo task
Explain and create a tencentcloud.getScfNamespaces resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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("foo", {namespace: "ci-test-scf"});
const foo = tencentcloud.getScfNamespacesOutput({
namespace: fooScfNamespace.scfNamespaceId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo_scf_namespace = tencentcloud.ScfNamespace("foo", namespace="ci-test-scf")
foo = 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, "foo", &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("foo", new()
{
Namespace = "ci-test-scf",
});
var foo = 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 foo = TencentcloudFunctions.getScfNamespaces(GetScfNamespacesArgs.builder()
.namespace(fooScfNamespace.scfNamespaceId())
.build());
}
}
resources:
fooScfNamespace:
type: tencentcloud:ScfNamespace
name: foo
properties:
namespace: ci-test-scf
variables:
foo:
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 dictionaryThe 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.
- Result
Output stringFile - 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.
- Result
Output stringFile - 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.
- result
Output StringFile - 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.
- result
Output stringFile - 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_ strfile - 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.
- result
Output StringFile - Used to save results.
getScfNamespaces Result
The following output properties are available:
- Id string
- Namespaces
List<Get
Scf Namespaces Namespace> - 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.
- Result
Output stringFile
- Id string
- Namespaces
[]Get
Scf Namespaces Namespace - 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.
- Result
Output stringFile
- id String
- namespaces
List<Get
Scf Namespaces Namespace> - 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.
- result
Output StringFile
- id string
- namespaces
Get
Scf Namespaces Namespace[] - 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.
- result
Output stringFile
- id str
- namespaces
Sequence[Get
Scf Namespaces Namespace] - 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_ strfile
- 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.
- result
Output StringFile
Supporting Types
GetScfNamespacesNamespace
- Create
Time string - Create time of the SCF namespace.
- Description string
- Description of the SCF namespace to be queried.
- Modify
Time 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 string - Create time of the SCF namespace.
- Description string
- Description of the SCF namespace to be queried.
- Modify
Time 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 String - Create time of the SCF namespace.
- description String
- Description of the SCF namespace to be queried.
- modify
Time 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 string - Create time of the SCF namespace.
- description string
- Description of the SCF namespace to be queried.
- modify
Time 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.
- create
Time String - Create time of the SCF namespace.
- description String
- Description of the SCF namespace to be queried.
- modify
Time 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
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
