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,
});
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)
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
})
}
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,
});
});
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());
}
}
configuration:
bucketName:
type: dynamic
resources:
trackerV1:
type: opentelekomcloud:CtsTrackerV1
properties:
bucketName: ${bucketName}
filePrefixName: yO8Q
isLtsEnabled: true
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 string
- The unique name of the resource.
- args CtsTrackerV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args CtsTrackerV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CtsTrackerV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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: &opentelekomcloud.CtsTrackerV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var ctsTrackerV1Resource = new CtsTrackerV1("ctsTrackerV1Resource", CtsTrackerV1Args.builder()
.bucketName("string")
.ctsTrackerV1Id("string")
.filePrefixName("string")
.isLtsEnabled(false)
.timeouts(CtsTrackerV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
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",
})
const ctsTrackerV1Resource = new opentelekomcloud.CtsTrackerV1("ctsTrackerV1Resource", {
bucketName: "string",
ctsTrackerV1Id: "string",
filePrefixName: "string",
isLtsEnabled: false,
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:CtsTrackerV1
properties:
bucketName: string
ctsTrackerV1Id: string
filePrefixName: string
isLtsEnabled: false
timeouts:
create: string
delete: string
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:
- Bucket
Name string - The OBS bucket name for a tracker.
- Cts
Tracker stringV1Id - File
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- Is
Lts boolEnabled - Specifies whether to enable trace analysis.
- Timeouts
Cts
Tracker V1Timeouts
- Bucket
Name string - The OBS bucket name for a tracker.
- Cts
Tracker stringV1Id - File
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- Is
Lts boolEnabled - Specifies whether to enable trace analysis.
- Timeouts
Cts
Tracker V1Timeouts Args
- bucket
Name String - The OBS bucket name for a tracker.
- cts
Tracker StringV1Id - file
Prefix StringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts BooleanEnabled - Specifies whether to enable trace analysis.
- timeouts
Cts
Tracker V1Timeouts
- bucket
Name string - The OBS bucket name for a tracker.
- cts
Tracker stringV1Id - file
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts booleanEnabled - Specifies whether to enable trace analysis.
- timeouts
Cts
Tracker V1Timeouts
- bucket_
name str - The OBS bucket name for a tracker.
- cts_
tracker_ strv1_ id - file_
prefix_ strname - The prefix of a log that needs to be stored in an OBS bucket.
- is_
lts_ boolenabled - Specifies whether to enable trace analysis.
- timeouts
Cts
Tracker V1Timeouts Args
- bucket
Name String - The OBS bucket name for a tracker.
- cts
Tracker StringV1Id - file
Prefix StringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts BooleanEnabled - 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.
- Log
Group stringName - Specifies LTS log group name.
- Log
Topic stringName - Specifies LTS log stream.
- Region string
- Specifies the tracker region.
- Status string
- Specifies current status of the tracker.
- Tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Group stringName - Specifies LTS log group name.
- Log
Topic stringName - Specifies LTS log stream.
- Region string
- Specifies the tracker region.
- Status string
- Specifies current status of the tracker.
- Tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Group StringName - Specifies LTS log group name.
- log
Topic StringName - Specifies LTS log stream.
- region String
- Specifies the tracker region.
- status String
- Specifies current status of the tracker.
- tracker
Name String - The tracker name. Currently, only tracker
system
is available.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Group stringName - Specifies LTS log group name.
- log
Topic stringName - Specifies LTS log stream.
- region string
- Specifies the tracker region.
- status string
- Specifies current status of the tracker.
- tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
group_ strname - Specifies LTS log group name.
- log_
topic_ strname - 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.
- log
Group StringName - Specifies LTS log group name.
- log
Topic StringName - Specifies LTS log stream.
- region String
- Specifies the tracker region.
- status String
- Specifies current status of the tracker.
- tracker
Name 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Bucket
Name string - The OBS bucket name for a tracker.
- Cts
Tracker stringV1Id - File
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- Is
Lts boolEnabled - Specifies whether to enable trace analysis.
- Log
Group stringName - Specifies LTS log group name.
- Log
Topic stringName - Specifies LTS log stream.
- Region string
- Specifies the tracker region.
- Status string
- Specifies current status of the tracker.
- Timeouts
Cts
Tracker V1Timeouts - Tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- Bucket
Name string - The OBS bucket name for a tracker.
- Cts
Tracker stringV1Id - File
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- Is
Lts boolEnabled - Specifies whether to enable trace analysis.
- Log
Group stringName - Specifies LTS log group name.
- Log
Topic stringName - Specifies LTS log stream.
- Region string
- Specifies the tracker region.
- Status string
- Specifies current status of the tracker.
- Timeouts
Cts
Tracker V1Timeouts Args - Tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- bucket
Name String - The OBS bucket name for a tracker.
- cts
Tracker StringV1Id - file
Prefix StringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts BooleanEnabled - Specifies whether to enable trace analysis.
- log
Group StringName - Specifies LTS log group name.
- log
Topic StringName - Specifies LTS log stream.
- region String
- Specifies the tracker region.
- status String
- Specifies current status of the tracker.
- timeouts
Cts
Tracker V1Timeouts - tracker
Name String - The tracker name. Currently, only tracker
system
is available.
- bucket
Name string - The OBS bucket name for a tracker.
- cts
Tracker stringV1Id - file
Prefix stringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts booleanEnabled - Specifies whether to enable trace analysis.
- log
Group stringName - Specifies LTS log group name.
- log
Topic stringName - Specifies LTS log stream.
- region string
- Specifies the tracker region.
- status string
- Specifies current status of the tracker.
- timeouts
Cts
Tracker V1Timeouts - tracker
Name string - The tracker name. Currently, only tracker
system
is available.
- bucket_
name str - The OBS bucket name for a tracker.
- cts_
tracker_ strv1_ id - file_
prefix_ strname - The prefix of a log that needs to be stored in an OBS bucket.
- is_
lts_ boolenabled - Specifies whether to enable trace analysis.
- log_
group_ strname - Specifies LTS log group name.
- log_
topic_ strname - Specifies LTS log stream.
- region str
- Specifies the tracker region.
- status str
- Specifies current status of the tracker.
- timeouts
Cts
Tracker V1Timeouts Args - tracker_
name str - The tracker name. Currently, only tracker
system
is available.
- bucket
Name String - The OBS bucket name for a tracker.
- cts
Tracker StringV1Id - file
Prefix StringName - The prefix of a log that needs to be stored in an OBS bucket.
- is
Lts BooleanEnabled - Specifies whether to enable trace analysis.
- log
Group StringName - Specifies LTS log group name.
- log
Topic StringName - Specifies LTS log stream.
- region String
- Specifies the tracker region.
- status String
- Specifies current status of the tracker.
- timeouts Property Map
- tracker
Name String - The tracker name. Currently, only tracker
system
is available.
Supporting Types
CtsTrackerV1Timeouts, CtsTrackerV1TimeoutsArgs
Import
CTS tracker can be imported using tracker_name
, e.g.
$ pulumi import opentelekomcloud:index/ctsTrackerV1:CtsTrackerV1 tracker system
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.