1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CtsTrackerV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.CtsTrackerV1

Explore with Pulumi AI

Up-to-date reference of API arguments for CTS tracker you can get at documentation portal

Allows you to collect, store, and query cloud resource operation records.

A single tracker can be created for current CTS version.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const bucketName = config.requireObject("bucketName");
const trackerV1 = new opentelekomcloud.CtsTrackerV1("trackerV1", {
    bucketName: bucketName,
    filePrefixName: "yO8Q",
    isLtsEnabled: true,
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
bucket_name = config.require_object("bucketName")
tracker_v1 = opentelekomcloud.CtsTrackerV1("trackerV1",
    bucket_name=bucket_name,
    file_prefix_name="yO8Q",
    is_lts_enabled=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		bucketName := cfg.RequireObject("bucketName")
		_, err := opentelekomcloud.NewCtsTrackerV1(ctx, "trackerV1", &opentelekomcloud.CtsTrackerV1Args{
			BucketName:     pulumi.Any(bucketName),
			FilePrefixName: pulumi.String("yO8Q"),
			IsLtsEnabled:   pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var bucketName = config.RequireObject<dynamic>("bucketName");
    var trackerV1 = new Opentelekomcloud.CtsTrackerV1("trackerV1", new()
    {
        BucketName = bucketName,
        FilePrefixName = "yO8Q",
        IsLtsEnabled = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CtsTrackerV1;
import com.pulumi.opentelekomcloud.CtsTrackerV1Args;
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 config = ctx.config();
        final var bucketName = config.get("bucketName");
        var trackerV1 = new CtsTrackerV1("trackerV1", CtsTrackerV1Args.builder()
            .bucketName(bucketName)
            .filePrefixName("yO8Q")
            .isLtsEnabled(true)
            .build());

    }
}
Copy
configuration:
  bucketName:
    type: dynamic
resources:
  trackerV1:
    type: opentelekomcloud:CtsTrackerV1
    properties:
      bucketName: ${bucketName}
      filePrefixName: yO8Q
      isLtsEnabled: true
Copy

Create CtsTrackerV1 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CtsTrackerV1(name: string, args: CtsTrackerV1Args, opts?: CustomResourceOptions);
@overload
def CtsTrackerV1(resource_name: str,
                 args: CtsTrackerV1Args,
                 opts: Optional[ResourceOptions] = None)

@overload
def CtsTrackerV1(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 bucket_name: Optional[str] = None,
                 cts_tracker_v1_id: Optional[str] = None,
                 file_prefix_name: Optional[str] = None,
                 is_lts_enabled: Optional[bool] = None,
                 timeouts: Optional[CtsTrackerV1TimeoutsArgs] = None)
func NewCtsTrackerV1(ctx *Context, name string, args CtsTrackerV1Args, opts ...ResourceOption) (*CtsTrackerV1, error)
public CtsTrackerV1(string name, CtsTrackerV1Args args, CustomResourceOptions? opts = null)
public CtsTrackerV1(String name, CtsTrackerV1Args args)
public CtsTrackerV1(String name, CtsTrackerV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CtsTrackerV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CtsTrackerV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CtsTrackerV1Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CtsTrackerV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CtsTrackerV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CtsTrackerV1Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ctsTrackerV1Resource = new Opentelekomcloud.CtsTrackerV1("ctsTrackerV1Resource", new()
{
    BucketName = "string",
    CtsTrackerV1Id = "string",
    FilePrefixName = "string",
    IsLtsEnabled = false,
    Timeouts = new Opentelekomcloud.Inputs.CtsTrackerV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
Copy
example, err := opentelekomcloud.NewCtsTrackerV1(ctx, "ctsTrackerV1Resource", &opentelekomcloud.CtsTrackerV1Args{
BucketName: pulumi.String("string"),
CtsTrackerV1Id: pulumi.String("string"),
FilePrefixName: pulumi.String("string"),
IsLtsEnabled: pulumi.Bool(false),
Timeouts: &.CtsTrackerV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
Copy
var ctsTrackerV1Resource = new CtsTrackerV1("ctsTrackerV1Resource", CtsTrackerV1Args.builder()
    .bucketName("string")
    .ctsTrackerV1Id("string")
    .filePrefixName("string")
    .isLtsEnabled(false)
    .timeouts(CtsTrackerV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
Copy
cts_tracker_v1_resource = opentelekomcloud.CtsTrackerV1("ctsTrackerV1Resource",
    bucket_name="string",
    cts_tracker_v1_id="string",
    file_prefix_name="string",
    is_lts_enabled=False,
    timeouts={
        "create": "string",
        "delete": "string",
    })
Copy
const ctsTrackerV1Resource = new opentelekomcloud.CtsTrackerV1("ctsTrackerV1Resource", {
    bucketName: "string",
    ctsTrackerV1Id: "string",
    filePrefixName: "string",
    isLtsEnabled: false,
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
Copy
type: opentelekomcloud:CtsTrackerV1
properties:
    bucketName: string
    ctsTrackerV1Id: string
    filePrefixName: string
    isLtsEnabled: false
    timeouts:
        create: string
        delete: string
Copy

CtsTrackerV1 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CtsTrackerV1 resource accepts the following input properties:

BucketName This property is required. string
The OBS bucket name for a tracker.
CtsTrackerV1Id string
FilePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
IsLtsEnabled bool
Specifies whether to enable trace analysis.
Timeouts CtsTrackerV1Timeouts
BucketName This property is required. string
The OBS bucket name for a tracker.
CtsTrackerV1Id string
FilePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
IsLtsEnabled bool
Specifies whether to enable trace analysis.
Timeouts CtsTrackerV1TimeoutsArgs
bucketName This property is required. String
The OBS bucket name for a tracker.
ctsTrackerV1Id String
filePrefixName String
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled Boolean
Specifies whether to enable trace analysis.
timeouts CtsTrackerV1Timeouts
bucketName This property is required. string
The OBS bucket name for a tracker.
ctsTrackerV1Id string
filePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled boolean
Specifies whether to enable trace analysis.
timeouts CtsTrackerV1Timeouts
bucket_name This property is required. str
The OBS bucket name for a tracker.
cts_tracker_v1_id str
file_prefix_name str
The prefix of a log that needs to be stored in an OBS bucket.
is_lts_enabled bool
Specifies whether to enable trace analysis.
timeouts CtsTrackerV1TimeoutsArgs
bucketName This property is required. String
The OBS bucket name for a tracker.
ctsTrackerV1Id String
filePrefixName String
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled Boolean
Specifies whether to enable trace analysis.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the CtsTrackerV1 resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LogGroupName string
Specifies LTS log group name.
LogTopicName string
Specifies LTS log stream.
Region string
Specifies the tracker region.
Status string
Specifies current status of the tracker.
TrackerName string
The tracker name. Currently, only tracker system is available.
Id string
The provider-assigned unique ID for this managed resource.
LogGroupName string
Specifies LTS log group name.
LogTopicName string
Specifies LTS log stream.
Region string
Specifies the tracker region.
Status string
Specifies current status of the tracker.
TrackerName string
The tracker name. Currently, only tracker system is available.
id String
The provider-assigned unique ID for this managed resource.
logGroupName String
Specifies LTS log group name.
logTopicName String
Specifies LTS log stream.
region String
Specifies the tracker region.
status String
Specifies current status of the tracker.
trackerName String
The tracker name. Currently, only tracker system is available.
id string
The provider-assigned unique ID for this managed resource.
logGroupName string
Specifies LTS log group name.
logTopicName string
Specifies LTS log stream.
region string
Specifies the tracker region.
status string
Specifies current status of the tracker.
trackerName string
The tracker name. Currently, only tracker system is available.
id str
The provider-assigned unique ID for this managed resource.
log_group_name str
Specifies LTS log group name.
log_topic_name str
Specifies LTS log stream.
region str
Specifies the tracker region.
status str
Specifies current status of the tracker.
tracker_name str
The tracker name. Currently, only tracker system is available.
id String
The provider-assigned unique ID for this managed resource.
logGroupName String
Specifies LTS log group name.
logTopicName String
Specifies LTS log stream.
region String
Specifies the tracker region.
status String
Specifies current status of the tracker.
trackerName String
The tracker name. Currently, only tracker system is available.

Look up Existing CtsTrackerV1 Resource

Get an existing CtsTrackerV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CtsTrackerV1State, opts?: CustomResourceOptions): CtsTrackerV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket_name: Optional[str] = None,
        cts_tracker_v1_id: Optional[str] = None,
        file_prefix_name: Optional[str] = None,
        is_lts_enabled: Optional[bool] = None,
        log_group_name: Optional[str] = None,
        log_topic_name: Optional[str] = None,
        region: Optional[str] = None,
        status: Optional[str] = None,
        timeouts: Optional[CtsTrackerV1TimeoutsArgs] = None,
        tracker_name: Optional[str] = None) -> CtsTrackerV1
func GetCtsTrackerV1(ctx *Context, name string, id IDInput, state *CtsTrackerV1State, opts ...ResourceOption) (*CtsTrackerV1, error)
public static CtsTrackerV1 Get(string name, Input<string> id, CtsTrackerV1State? state, CustomResourceOptions? opts = null)
public static CtsTrackerV1 get(String name, Output<String> id, CtsTrackerV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:CtsTrackerV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BucketName string
The OBS bucket name for a tracker.
CtsTrackerV1Id string
FilePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
IsLtsEnabled bool
Specifies whether to enable trace analysis.
LogGroupName string
Specifies LTS log group name.
LogTopicName string
Specifies LTS log stream.
Region string
Specifies the tracker region.
Status string
Specifies current status of the tracker.
Timeouts CtsTrackerV1Timeouts
TrackerName string
The tracker name. Currently, only tracker system is available.
BucketName string
The OBS bucket name for a tracker.
CtsTrackerV1Id string
FilePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
IsLtsEnabled bool
Specifies whether to enable trace analysis.
LogGroupName string
Specifies LTS log group name.
LogTopicName string
Specifies LTS log stream.
Region string
Specifies the tracker region.
Status string
Specifies current status of the tracker.
Timeouts CtsTrackerV1TimeoutsArgs
TrackerName string
The tracker name. Currently, only tracker system is available.
bucketName String
The OBS bucket name for a tracker.
ctsTrackerV1Id String
filePrefixName String
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled Boolean
Specifies whether to enable trace analysis.
logGroupName String
Specifies LTS log group name.
logTopicName String
Specifies LTS log stream.
region String
Specifies the tracker region.
status String
Specifies current status of the tracker.
timeouts CtsTrackerV1Timeouts
trackerName String
The tracker name. Currently, only tracker system is available.
bucketName string
The OBS bucket name for a tracker.
ctsTrackerV1Id string
filePrefixName string
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled boolean
Specifies whether to enable trace analysis.
logGroupName string
Specifies LTS log group name.
logTopicName string
Specifies LTS log stream.
region string
Specifies the tracker region.
status string
Specifies current status of the tracker.
timeouts CtsTrackerV1Timeouts
trackerName string
The tracker name. Currently, only tracker system is available.
bucket_name str
The OBS bucket name for a tracker.
cts_tracker_v1_id str
file_prefix_name str
The prefix of a log that needs to be stored in an OBS bucket.
is_lts_enabled bool
Specifies whether to enable trace analysis.
log_group_name str
Specifies LTS log group name.
log_topic_name str
Specifies LTS log stream.
region str
Specifies the tracker region.
status str
Specifies current status of the tracker.
timeouts CtsTrackerV1TimeoutsArgs
tracker_name str
The tracker name. Currently, only tracker system is available.
bucketName String
The OBS bucket name for a tracker.
ctsTrackerV1Id String
filePrefixName String
The prefix of a log that needs to be stored in an OBS bucket.
isLtsEnabled Boolean
Specifies whether to enable trace analysis.
logGroupName String
Specifies LTS log group name.
logTopicName String
Specifies LTS log stream.
region String
Specifies the tracker region.
status String
Specifies current status of the tracker.
timeouts Property Map
trackerName String
The tracker name. Currently, only tracker system is available.

Supporting Types

CtsTrackerV1Timeouts
, CtsTrackerV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

CTS tracker can be imported using tracker_name, e.g.

$ pulumi import opentelekomcloud:index/ctsTrackerV1:CtsTrackerV1 tracker system
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.