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

tencentcloud.getTcrTokens

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 tokens.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getTcrTokens({
        instanceId: "cls-satg5125",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_tcr_tokens(instance_id="cls-satg5125")
    
    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.GetTcrTokens(ctx, &tencentcloud.GetTcrTokensArgs{
    			InstanceId: "cls-satg5125",
    		}, 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.GetTcrTokens.Invoke(new()
        {
            InstanceId = "cls-satg5125",
        });
    
    });
    
    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.GetTcrTokensArgs;
    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.getTcrTokens(GetTcrTokensArgs.builder()
                .instanceId("cls-satg5125")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getTcrTokens
          arguments:
            instanceId: cls-satg5125
    

    Using getTcrTokens

    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 getTcrTokens(args: GetTcrTokensArgs, opts?: InvokeOptions): Promise<GetTcrTokensResult>
    function getTcrTokensOutput(args: GetTcrTokensOutputArgs, opts?: InvokeOptions): Output<GetTcrTokensResult>
    def get_tcr_tokens(id: Optional[str] = None,
                       instance_id: Optional[str] = None,
                       result_output_file: Optional[str] = None,
                       token_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetTcrTokensResult
    def get_tcr_tokens_output(id: Optional[pulumi.Input[str]] = None,
                       instance_id: Optional[pulumi.Input[str]] = None,
                       result_output_file: Optional[pulumi.Input[str]] = None,
                       token_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetTcrTokensResult]
    func GetTcrTokens(ctx *Context, args *GetTcrTokensArgs, opts ...InvokeOption) (*GetTcrTokensResult, error)
    func GetTcrTokensOutput(ctx *Context, args *GetTcrTokensOutputArgs, opts ...InvokeOption) GetTcrTokensResultOutput

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

    public static class GetTcrTokens 
    {
        public static Task<GetTcrTokensResult> InvokeAsync(GetTcrTokensArgs args, InvokeOptions? opts = null)
        public static Output<GetTcrTokensResult> Invoke(GetTcrTokensInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTcrTokensResult> getTcrTokens(GetTcrTokensArgs args, InvokeOptions options)
    public static Output<GetTcrTokensResult> getTcrTokens(GetTcrTokensArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTcrTokens:getTcrTokens
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    ID of the instance that the token belongs to.
    Id string
    ResultOutputFile string
    Used to save results.
    TokenId string
    ID of the TCR token to query.
    InstanceId string
    ID of the instance that the token belongs to.
    Id string
    ResultOutputFile string
    Used to save results.
    TokenId string
    ID of the TCR token to query.
    instanceId String
    ID of the instance that the token belongs to.
    id String
    resultOutputFile String
    Used to save results.
    tokenId String
    ID of the TCR token to query.
    instanceId string
    ID of the instance that the token belongs to.
    id string
    resultOutputFile string
    Used to save results.
    tokenId string
    ID of the TCR token to query.
    instance_id str
    ID of the instance that the token belongs to.
    id str
    result_output_file str
    Used to save results.
    token_id str
    ID of the TCR token to query.
    instanceId String
    ID of the instance that the token belongs to.
    id String
    resultOutputFile String
    Used to save results.
    tokenId String
    ID of the TCR token to query.

    getTcrTokens Result

    The following output properties are available:

    Id string
    InstanceId string
    TokenLists List<GetTcrTokensTokenList>
    Information list of the dedicated TCR tokens.
    ResultOutputFile string
    TokenId string
    Id of TCR token.
    Id string
    InstanceId string
    TokenLists []GetTcrTokensTokenList
    Information list of the dedicated TCR tokens.
    ResultOutputFile string
    TokenId string
    Id of TCR token.
    id String
    instanceId String
    tokenLists List<GetTcrTokensTokenList>
    Information list of the dedicated TCR tokens.
    resultOutputFile String
    tokenId String
    Id of TCR token.
    id string
    instanceId string
    tokenLists GetTcrTokensTokenList[]
    Information list of the dedicated TCR tokens.
    resultOutputFile string
    tokenId string
    Id of TCR token.
    id str
    instance_id str
    token_lists Sequence[GetTcrTokensTokenList]
    Information list of the dedicated TCR tokens.
    result_output_file str
    token_id str
    Id of TCR token.
    id String
    instanceId String
    tokenLists List<Property Map>
    Information list of the dedicated TCR tokens.
    resultOutputFile String
    tokenId String
    Id of TCR token.

    Supporting Types

    GetTcrTokensTokenList

    CreateTime string
    Create time.
    Description string
    Description of the token.
    Enable bool
    Indicate that the token is enabled or not.
    TokenId string
    ID of the TCR token to query.
    CreateTime string
    Create time.
    Description string
    Description of the token.
    Enable bool
    Indicate that the token is enabled or not.
    TokenId string
    ID of the TCR token to query.
    createTime String
    Create time.
    description String
    Description of the token.
    enable Boolean
    Indicate that the token is enabled or not.
    tokenId String
    ID of the TCR token to query.
    createTime string
    Create time.
    description string
    Description of the token.
    enable boolean
    Indicate that the token is enabled or not.
    tokenId string
    ID of the TCR token to query.
    create_time str
    Create time.
    description str
    Description of the token.
    enable bool
    Indicate that the token is enabled or not.
    token_id str
    ID of the TCR token to query.
    createTime String
    Create time.
    description String
    Description of the token.
    enable Boolean
    Indicate that the token is enabled or not.
    tokenId String
    ID of the TCR token to query.

    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