tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getTcrTokens
Start a Neo task
Explain and create a tencentcloud.getTcrTokens resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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 dictionaryThe following arguments are supported:
- Instance
Id string - ID of the instance that the token belongs to.
- Id string
- Result
Output stringFile - Used to save results.
- Token
Id string - ID of the TCR token to query.
- Instance
Id string - ID of the instance that the token belongs to.
- Id string
- Result
Output stringFile - Used to save results.
- Token
Id string - ID of the TCR token to query.
- instance
Id String - ID of the instance that the token belongs to.
- id String
- result
Output StringFile - Used to save results.
- token
Id String - ID of the TCR token to query.
- instance
Id string - ID of the instance that the token belongs to.
- id string
- result
Output stringFile - Used to save results.
- token
Id string - ID of the TCR token to query.
- instance_
id str - ID of the instance that the token belongs to.
- id str
- result_
output_ strfile - Used to save results.
- token_
id str - ID of the TCR token to query.
- instance
Id String - ID of the instance that the token belongs to.
- id String
- result
Output StringFile - Used to save results.
- token
Id String - ID of the TCR token to query.
getTcrTokens Result
The following output properties are available:
- Id string
- Instance
Id string - Token
Lists List<GetTcr Tokens Token List> - Information list of the dedicated TCR tokens.
- Result
Output stringFile - Token
Id string - Id of TCR token.
- Id string
- Instance
Id string - Token
Lists []GetTcr Tokens Token List - Information list of the dedicated TCR tokens.
- Result
Output stringFile - Token
Id string - Id of TCR token.
- id String
- instance
Id String - token
Lists List<GetTcr Tokens Token List> - Information list of the dedicated TCR tokens.
- result
Output StringFile - token
Id String - Id of TCR token.
- id string
- instance
Id string - token
Lists GetTcr Tokens Token List[] - Information list of the dedicated TCR tokens.
- result
Output stringFile - token
Id string - Id of TCR token.
- id str
- instance_
id str - token_
lists Sequence[GetTcr Tokens Token List] - Information list of the dedicated TCR tokens.
- result_
output_ strfile - token_
id str - Id of TCR token.
- id String
- instance
Id String - token
Lists List<Property Map> - Information list of the dedicated TCR tokens.
- result
Output StringFile - token
Id String - Id of TCR token.
Supporting Types
GetTcrTokensTokenList
- Create
Time string - Create time.
- Description string
- Description of the token.
- Enable bool
- Indicate that the token is enabled or not.
- Token
Id string - ID of the TCR token to query.
- Create
Time string - Create time.
- Description string
- Description of the token.
- Enable bool
- Indicate that the token is enabled or not.
- Token
Id string - ID of the TCR token to query.
- create
Time String - Create time.
- description String
- Description of the token.
- enable Boolean
- Indicate that the token is enabled or not.
- token
Id String - ID of the TCR token to query.
- create
Time string - Create time.
- description string
- Description of the token.
- enable boolean
- Indicate that the token is enabled or not.
- token
Id 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.
- create
Time String - Create time.
- description String
- Description of the token.
- enable Boolean
- Indicate that the token is enabled or not.
- token
Id 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
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
