Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack
Use this data source to query historical instant tasks of CAT (Cat).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCatInstantTasks({});
export const tasks = example.then(example => example.tasks);
export const total = example.then(example => example.total);
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cat_instant_tasks()
pulumi.export("tasks", example.tasks)
pulumi.export("total", example.total)
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 {
example, err := tencentcloud.GetCatInstantTasks(ctx, &tencentcloud.GetCatInstantTasksArgs{}, nil)
if err != nil {
return err
}
ctx.Export("tasks", example.Tasks)
ctx.Export("total", example.Total)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCatInstantTasks.Invoke();
return new Dictionary<string, object?>
{
["tasks"] = example.Apply(getCatInstantTasksResult => getCatInstantTasksResult.Tasks),
["total"] = example.Apply(getCatInstantTasksResult => getCatInstantTasksResult.Total),
};
});
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.GetCatInstantTasksArgs;
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 example = TencentcloudFunctions.getCatInstantTasks(GetCatInstantTasksArgs.builder()
.build());
ctx.export("tasks", example.tasks());
ctx.export("total", example.total());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCatInstantTasks
arguments: {}
outputs:
tasks: ${example.tasks}
total: ${example.total}
Example coming soon!
Using getCatInstantTasks
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 getCatInstantTasks(args: GetCatInstantTasksArgs, opts?: InvokeOptions): Promise<GetCatInstantTasksResult>
function getCatInstantTasksOutput(args: GetCatInstantTasksOutputArgs, opts?: InvokeOutputOptions): Output<GetCatInstantTasksResult>def get_cat_instant_tasks(id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCatInstantTasksResult
def get_cat_instant_tasks_output(id: pulumi.Input[Optional[str]] = None,
result_output_file: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCatInstantTasksResult]func GetCatInstantTasks(ctx *Context, args *GetCatInstantTasksArgs, opts ...InvokeOption) (*GetCatInstantTasksResult, error)
func GetCatInstantTasksOutput(ctx *Context, args *GetCatInstantTasksOutputArgs, opts ...InvokeOption) GetCatInstantTasksResultOutput> Note: This function is named GetCatInstantTasks in the Go SDK.
public static class GetCatInstantTasks
{
public static Task<GetCatInstantTasksResult> InvokeAsync(GetCatInstantTasksArgs args, InvokeOptions? opts = null)
public static Output<GetCatInstantTasksResult> Invoke(GetCatInstantTasksInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCatInstantTasksResult> Invoke(GetCatInstantTasksInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCatInstantTasksResult> getCatInstantTasks(GetCatInstantTasksArgs args, InvokeOptions options)
public static Output<GetCatInstantTasksResult> getCatInstantTasks(GetCatInstantTasksArgs args, InvokeOptions options)
public static Output<GetCatInstantTasksResult> getCatInstantTasks(GetCatInstantTasksArgs args, InvokeOutputOptions options)
fn::invoke:
function: tencentcloud:index/getCatInstantTasks:getCatInstantTasks
arguments:
# arguments dictionarydata "tencentcloud_get_cat_instant_tasks" "name" {
# arguments
}The following arguments are supported:
- Id string
- Result
Output stringFile - Used to save results.
- Id string
- Result
Output stringFile - Used to save results.
- id string
- result_
output_ stringfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
- id string
- result
Output stringFile - Used to save results.
- id str
- result_
output_ strfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
getCatInstantTasks Result
The following output properties are available:
- Id string
- Tasks
List<Get
Cat Instant Tasks Task> - History instant tasks list.
- Total double
- Total number of instant tasks.
- Result
Output stringFile
- Id string
- Tasks
[]Get
Cat Instant Tasks Task - History instant tasks list.
- Total float64
- Total number of instant tasks.
- Result
Output stringFile
- id string
- tasks list(object)
- History instant tasks list.
- total number
- Total number of instant tasks.
- result_
output_ stringfile
- id String
- tasks
List<Get
Cat Instant Tasks Task> - History instant tasks list.
- total Double
- Total number of instant tasks.
- result
Output StringFile
- id string
- tasks
Get
Cat Instant Tasks Task[] - History instant tasks list.
- total number
- Total number of instant tasks.
- result
Output stringFile
- id str
- tasks
Sequence[Get
Cat Instant Tasks Task] - History instant tasks list.
- total float
- Total number of instant tasks.
- result_
output_ strfile
- id String
- tasks List<Property Map>
- History instant tasks list.
- total Number
- Total number of instant tasks.
- result
Output StringFile
Supporting Types
GetCatInstantTasksTask
- Node
Count double - Node count.
- Probe
Time double - Probe time.
- Status string
- Task status.
- Success
Rate double - Success rate.
- Target
Address string - Target address.
- Task
Category double - Task category.
- Task
Id string - Task ID.
- Task
Type double - Task type.
- Node
Count float64 - Node count.
- Probe
Time float64 - Probe time.
- Status string
- Task status.
- Success
Rate float64 - Success rate.
- Target
Address string - Target address.
- Task
Category float64 - Task category.
- Task
Id string - Task ID.
- Task
Type float64 - Task type.
- node_
count number - Node count.
- probe_
time number - Probe time.
- status string
- Task status.
- success_
rate number - Success rate.
- target_
address string - Target address.
- task_
category number - Task category.
- task_
id string - Task ID.
- task_
type number - Task type.
- node
Count Double - Node count.
- probe
Time Double - Probe time.
- status String
- Task status.
- success
Rate Double - Success rate.
- target
Address String - Target address.
- task
Category Double - Task category.
- task
Id String - Task ID.
- task
Type Double - Task type.
- node
Count number - Node count.
- probe
Time number - Probe time.
- status string
- Task status.
- success
Rate number - Success rate.
- target
Address string - Target address.
- task
Category number - Task category.
- task
Id string - Task ID.
- task
Type number - Task type.
- node_
count float - Node count.
- probe_
time float - Probe time.
- status str
- Task status.
- success_
rate float - Success rate.
- target_
address str - Target address.
- task_
category float - Task category.
- task_
id str - Task ID.
- task_
type float - Task type.
- node
Count Number - Node count.
- probe
Time Number - Probe time.
- status String
- Task status.
- success
Rate Number - Success rate.
- target
Address String - Target address.
- task
Category Number - Task category.
- task
Id String - Task ID.
- task
Type Number - Task type.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.83.31
published on Friday, Sep 11, 2026 by tencentcloudstack
published on Friday, Sep 11, 2026 by tencentcloudstack