tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getTcrNamespaces
Start a Neo task
Explain and create a tencentcloud.getTcrNamespaces resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of TCR namespaces.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const name = tencentcloud.getTcrNamespaces({
instanceId: "cls-satg5125",
namespaceName: "test",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
name = tencentcloud.get_tcr_namespaces(instance_id="cls-satg5125",
namespace_name="test")
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.GetTcrNamespaces(ctx, &tencentcloud.GetTcrNamespacesArgs{
InstanceId: "cls-satg5125",
NamespaceName: pulumi.StringRef("test"),
}, 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 name = Tencentcloud.GetTcrNamespaces.Invoke(new()
{
InstanceId = "cls-satg5125",
NamespaceName = "test",
});
});
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.GetTcrNamespacesArgs;
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 name = TencentcloudFunctions.getTcrNamespaces(GetTcrNamespacesArgs.builder()
.instanceId("cls-satg5125")
.namespaceName("test")
.build());
}
}
variables:
name:
fn::invoke:
function: tencentcloud:getTcrNamespaces
arguments:
instanceId: cls-satg5125
namespaceName: test
Using getTcrNamespaces
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 getTcrNamespaces(args: GetTcrNamespacesArgs, opts?: InvokeOptions): Promise<GetTcrNamespacesResult>
function getTcrNamespacesOutput(args: GetTcrNamespacesOutputArgs, opts?: InvokeOptions): Output<GetTcrNamespacesResult>def get_tcr_namespaces(id: Optional[str] = None,
instance_id: Optional[str] = None,
namespace_name: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTcrNamespacesResult
def get_tcr_namespaces_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
namespace_name: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTcrNamespacesResult]func GetTcrNamespaces(ctx *Context, args *GetTcrNamespacesArgs, opts ...InvokeOption) (*GetTcrNamespacesResult, error)
func GetTcrNamespacesOutput(ctx *Context, args *GetTcrNamespacesOutputArgs, opts ...InvokeOption) GetTcrNamespacesResultOutput> Note: This function is named GetTcrNamespaces in the Go SDK.
public static class GetTcrNamespaces
{
public static Task<GetTcrNamespacesResult> InvokeAsync(GetTcrNamespacesArgs args, InvokeOptions? opts = null)
public static Output<GetTcrNamespacesResult> Invoke(GetTcrNamespacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTcrNamespacesResult> getTcrNamespaces(GetTcrNamespacesArgs args, InvokeOptions options)
public static Output<GetTcrNamespacesResult> getTcrNamespaces(GetTcrNamespacesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTcrNamespaces:getTcrNamespaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - ID of the instance that the namespace belongs to.
- Id string
- ID of TCR namespace.
- Namespace
Name string - ID of the TCR namespace to query.
- Result
Output stringFile - Used to save results.
- Instance
Id string - ID of the instance that the namespace belongs to.
- Id string
- ID of TCR namespace.
- Namespace
Name string - ID of the TCR namespace to query.
- Result
Output stringFile - Used to save results.
- instance
Id String - ID of the instance that the namespace belongs to.
- id String
- ID of TCR namespace.
- namespace
Name String - ID of the TCR namespace to query.
- result
Output StringFile - Used to save results.
- instance
Id string - ID of the instance that the namespace belongs to.
- id string
- ID of TCR namespace.
- namespace
Name string - ID of the TCR namespace to query.
- result
Output stringFile - Used to save results.
- instance_
id str - ID of the instance that the namespace belongs to.
- id str
- ID of TCR namespace.
- namespace_
name str - ID of the TCR namespace to query.
- result_
output_ strfile - Used to save results.
- instance
Id String - ID of the instance that the namespace belongs to.
- id String
- ID of TCR namespace.
- namespace
Name String - ID of the TCR namespace to query.
- result
Output StringFile - Used to save results.
getTcrNamespaces Result
The following output properties are available:
- Id string
- ID of TCR namespace.
- Instance
Id string - Namespace
Lists List<GetTcr Namespaces Namespace List> - Information list of the dedicated TCR namespaces.
- Namespace
Name string - Result
Output stringFile
- Id string
- ID of TCR namespace.
- Instance
Id string - Namespace
Lists []GetTcr Namespaces Namespace List - Information list of the dedicated TCR namespaces.
- Namespace
Name string - Result
Output stringFile
- id String
- ID of TCR namespace.
- instance
Id String - namespace
Lists List<GetTcr Namespaces Namespace List> - Information list of the dedicated TCR namespaces.
- namespace
Name String - result
Output StringFile
- id string
- ID of TCR namespace.
- instance
Id string - namespace
Lists GetTcr Namespaces Namespace List[] - Information list of the dedicated TCR namespaces.
- namespace
Name string - result
Output stringFile
- id str
- ID of TCR namespace.
- instance_
id str - namespace_
lists Sequence[GetTcr Namespaces Namespace List] - Information list of the dedicated TCR namespaces.
- namespace_
name str - result_
output_ strfile
- id String
- ID of TCR namespace.
- instance
Id String - namespace
Lists List<Property Map> - Information list of the dedicated TCR namespaces.
- namespace
Name String - result
Output StringFile
Supporting Types
GetTcrNamespacesNamespaceList
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
