1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTcrNamespaces
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getTcrNamespaces

Explore with Pulumi AI

tencentcloud 1.81.183 published on Wednesday, Apr 16, 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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

name = tencentcloud.get_tcr_namespaces(instance_id="cls-satg5125",
    namespace_name="test")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  name:
    fn::invoke:
      function: tencentcloud:getTcrNamespaces
      arguments:
        instanceId: cls-satg5125
        namespaceName: test
Copy

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>
Copy
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]
Copy
func GetTcrNamespaces(ctx *Context, args *GetTcrNamespacesArgs, opts ...InvokeOption) (*GetTcrNamespacesResult, error)
func GetTcrNamespacesOutput(ctx *Context, args *GetTcrNamespacesOutputArgs, opts ...InvokeOption) GetTcrNamespacesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTcrNamespacesResult> getTcrNamespaces(GetTcrNamespacesArgs args, InvokeOptions options)
public static Output<GetTcrNamespacesResult> getTcrNamespaces(GetTcrNamespacesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getTcrNamespaces:getTcrNamespaces
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
ID of the instance that the namespace belongs to.
Id string
ID of TCR namespace.
NamespaceName string
ID of the TCR namespace to query.
ResultOutputFile string
Used to save results.
InstanceId This property is required. string
ID of the instance that the namespace belongs to.
Id string
ID of TCR namespace.
NamespaceName string
ID of the TCR namespace to query.
ResultOutputFile string
Used to save results.
instanceId This property is required. String
ID of the instance that the namespace belongs to.
id String
ID of TCR namespace.
namespaceName String
ID of the TCR namespace to query.
resultOutputFile String
Used to save results.
instanceId This property is required. string
ID of the instance that the namespace belongs to.
id string
ID of TCR namespace.
namespaceName string
ID of the TCR namespace to query.
resultOutputFile string
Used to save results.
instance_id This property is required. 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_file str
Used to save results.
instanceId This property is required. String
ID of the instance that the namespace belongs to.
id String
ID of TCR namespace.
namespaceName String
ID of the TCR namespace to query.
resultOutputFile String
Used to save results.

getTcrNamespaces Result

The following output properties are available:

Id string
ID of TCR namespace.
InstanceId string
NamespaceLists List<GetTcrNamespacesNamespaceList>
Information list of the dedicated TCR namespaces.
NamespaceName string
ResultOutputFile string
Id string
ID of TCR namespace.
InstanceId string
NamespaceLists []GetTcrNamespacesNamespaceList
Information list of the dedicated TCR namespaces.
NamespaceName string
ResultOutputFile string
id String
ID of TCR namespace.
instanceId String
namespaceLists List<GetTcrNamespacesNamespaceList>
Information list of the dedicated TCR namespaces.
namespaceName String
resultOutputFile String
id string
ID of TCR namespace.
instanceId string
namespaceLists GetTcrNamespacesNamespaceList[]
Information list of the dedicated TCR namespaces.
namespaceName string
resultOutputFile string
id str
ID of TCR namespace.
instance_id str
namespace_lists Sequence[GetTcrNamespacesNamespaceList]
Information list of the dedicated TCR namespaces.
namespace_name str
result_output_file str
id String
ID of TCR namespace.
instanceId String
namespaceLists List<Property Map>
Information list of the dedicated TCR namespaces.
namespaceName String
resultOutputFile String

Supporting Types

GetTcrNamespacesNamespaceList

Id This property is required. double
ID of TCR namespace.
IsPublic This property is required. bool
Indicate that the namespace is public or not.
Name This property is required. string
Name of TCR namespace.
Id This property is required. float64
ID of TCR namespace.
IsPublic This property is required. bool
Indicate that the namespace is public or not.
Name This property is required. string
Name of TCR namespace.
id This property is required. Double
ID of TCR namespace.
isPublic This property is required. Boolean
Indicate that the namespace is public or not.
name This property is required. String
Name of TCR namespace.
id This property is required. number
ID of TCR namespace.
isPublic This property is required. boolean
Indicate that the namespace is public or not.
name This property is required. string
Name of TCR namespace.
id This property is required. float
ID of TCR namespace.
is_public This property is required. bool
Indicate that the namespace is public or not.
name This property is required. str
Name of TCR namespace.
id This property is required. Number
ID of TCR namespace.
isPublic This property is required. Boolean
Indicate that the namespace is public or not.
name This property is required. String
Name of TCR namespace.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack