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

tencentcloud.getTcrNamespaces

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 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 dictionary

    The following arguments are supported:

    InstanceId 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 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 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 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 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 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 double
    ID of TCR namespace.
    IsPublic bool
    Indicate that the namespace is public or not.
    Name string
    Name of TCR namespace.
    Id float64
    ID of TCR namespace.
    IsPublic bool
    Indicate that the namespace is public or not.
    Name string
    Name of TCR namespace.
    id Double
    ID of TCR namespace.
    isPublic Boolean
    Indicate that the namespace is public or not.
    name String
    Name of TCR namespace.
    id number
    ID of TCR namespace.
    isPublic boolean
    Indicate that the namespace is public or not.
    name string
    Name of TCR namespace.
    id float
    ID of TCR namespace.
    is_public bool
    Indicate that the namespace is public or not.
    name str
    Name of TCR namespace.
    id Number
    ID of TCR namespace.
    isPublic Boolean
    Indicate that the namespace is public or not.
    name 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 logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack