opentelekomcloud.DisDumpTaskV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DIS dump task you can get at documentation portal
Manages a DIS Dump Task in the OpenTelekomCloud DIS Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const stream1 = new opentelekomcloud.DisStreamV2("stream1", {
partitionCount: 3,
streamType: "COMMON",
retentionPeriod: 24,
autoScaleMinPartitionCount: 1,
autoScaleMaxPartitionCount: 4,
compressionFormat: "zip",
dataType: "BLOB",
tags: {
foo: "bar",
},
});
const app1 = new opentelekomcloud.DisAppV2("app1", {});
const bucket = new opentelekomcloud.ObsBucket("bucket", {
bucket: "my-dis-bucket",
storageClass: "STANDARD",
acl: "private",
});
const task1 = new opentelekomcloud.DisDumpTaskV2("task1", {
streamName: stream1.name,
destination: "OBS",
obsDestinationDescriptors: [{
taskName: "my_task",
agencyName: "dis_admin_agency",
deliverTimeInterval: 30,
consumerStrategy: "LATEST",
filePrefix: "_pf",
partitionFormat: "yyyy/MM/dd/HH/mm",
obsBucketPath: bucket.bucket,
destinationFileType: "text",
recordDelimiter: "|",
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
stream1 = opentelekomcloud.DisStreamV2("stream1",
partition_count=3,
stream_type="COMMON",
retention_period=24,
auto_scale_min_partition_count=1,
auto_scale_max_partition_count=4,
compression_format="zip",
data_type="BLOB",
tags={
"foo": "bar",
})
app1 = opentelekomcloud.DisAppV2("app1")
bucket = opentelekomcloud.ObsBucket("bucket",
bucket="my-dis-bucket",
storage_class="STANDARD",
acl="private")
task1 = opentelekomcloud.DisDumpTaskV2("task1",
stream_name=stream1.name,
destination="OBS",
obs_destination_descriptors=[{
"task_name": "my_task",
"agency_name": "dis_admin_agency",
"deliver_time_interval": 30,
"consumer_strategy": "LATEST",
"file_prefix": "_pf",
"partition_format": "yyyy/MM/dd/HH/mm",
"obs_bucket_path": bucket.bucket,
"destination_file_type": "text",
"record_delimiter": "|",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
stream1, err := opentelekomcloud.NewDisStreamV2(ctx, "stream1", &opentelekomcloud.DisStreamV2Args{
PartitionCount: pulumi.Float64(3),
StreamType: pulumi.String("COMMON"),
RetentionPeriod: pulumi.Float64(24),
AutoScaleMinPartitionCount: pulumi.Float64(1),
AutoScaleMaxPartitionCount: pulumi.Float64(4),
CompressionFormat: pulumi.String("zip"),
DataType: pulumi.String("BLOB"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewDisAppV2(ctx, "app1", nil)
if err != nil {
return err
}
bucket, err := opentelekomcloud.NewObsBucket(ctx, "bucket", &opentelekomcloud.ObsBucketArgs{
Bucket: pulumi.String("my-dis-bucket"),
StorageClass: pulumi.String("STANDARD"),
Acl: pulumi.String("private"),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewDisDumpTaskV2(ctx, "task1", &opentelekomcloud.DisDumpTaskV2Args{
StreamName: stream1.Name,
Destination: pulumi.String("OBS"),
ObsDestinationDescriptors: opentelekomcloud.DisDumpTaskV2ObsDestinationDescriptorArray{
&opentelekomcloud.DisDumpTaskV2ObsDestinationDescriptorArgs{
TaskName: pulumi.String("my_task"),
AgencyName: pulumi.String("dis_admin_agency"),
DeliverTimeInterval: pulumi.Float64(30),
ConsumerStrategy: pulumi.String("LATEST"),
FilePrefix: pulumi.String("_pf"),
PartitionFormat: pulumi.String("yyyy/MM/dd/HH/mm"),
ObsBucketPath: bucket.Bucket,
DestinationFileType: pulumi.String("text"),
RecordDelimiter: pulumi.String("|"),
},
},
})
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 stream1 = new Opentelekomcloud.DisStreamV2("stream1", new()
{
PartitionCount = 3,
StreamType = "COMMON",
RetentionPeriod = 24,
AutoScaleMinPartitionCount = 1,
AutoScaleMaxPartitionCount = 4,
CompressionFormat = "zip",
DataType = "BLOB",
Tags =
{
{ "foo", "bar" },
},
});
var app1 = new Opentelekomcloud.DisAppV2("app1");
var bucket = new Opentelekomcloud.ObsBucket("bucket", new()
{
Bucket = "my-dis-bucket",
StorageClass = "STANDARD",
Acl = "private",
});
var task1 = new Opentelekomcloud.DisDumpTaskV2("task1", new()
{
StreamName = stream1.Name,
Destination = "OBS",
ObsDestinationDescriptors = new[]
{
new Opentelekomcloud.Inputs.DisDumpTaskV2ObsDestinationDescriptorArgs
{
TaskName = "my_task",
AgencyName = "dis_admin_agency",
DeliverTimeInterval = 30,
ConsumerStrategy = "LATEST",
FilePrefix = "_pf",
PartitionFormat = "yyyy/MM/dd/HH/mm",
ObsBucketPath = bucket.Bucket,
DestinationFileType = "text",
RecordDelimiter = "|",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DisStreamV2;
import com.pulumi.opentelekomcloud.DisStreamV2Args;
import com.pulumi.opentelekomcloud.DisAppV2;
import com.pulumi.opentelekomcloud.ObsBucket;
import com.pulumi.opentelekomcloud.ObsBucketArgs;
import com.pulumi.opentelekomcloud.DisDumpTaskV2;
import com.pulumi.opentelekomcloud.DisDumpTaskV2Args;
import com.pulumi.opentelekomcloud.inputs.DisDumpTaskV2ObsDestinationDescriptorArgs;
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) {
var stream1 = new DisStreamV2("stream1", DisStreamV2Args.builder()
.partitionCount(3)
.streamType("COMMON")
.retentionPeriod(24)
.autoScaleMinPartitionCount(1)
.autoScaleMaxPartitionCount(4)
.compressionFormat("zip")
.dataType("BLOB")
.tags(Map.of("foo", "bar"))
.build());
var app1 = new DisAppV2("app1");
var bucket = new ObsBucket("bucket", ObsBucketArgs.builder()
.bucket("my-dis-bucket")
.storageClass("STANDARD")
.acl("private")
.build());
var task1 = new DisDumpTaskV2("task1", DisDumpTaskV2Args.builder()
.streamName(stream1.name())
.destination("OBS")
.obsDestinationDescriptors(DisDumpTaskV2ObsDestinationDescriptorArgs.builder()
.taskName("my_task")
.agencyName("dis_admin_agency")
.deliverTimeInterval(30)
.consumerStrategy("LATEST")
.filePrefix("_pf")
.partitionFormat("yyyy/MM/dd/HH/mm")
.obsBucketPath(bucket.bucket())
.destinationFileType("text")
.recordDelimiter("|")
.build())
.build());
}
}
resources:
stream1:
type: opentelekomcloud:DisStreamV2
properties:
partitionCount: 3
streamType: COMMON
retentionPeriod: 24
autoScaleMinPartitionCount: 1
autoScaleMaxPartitionCount: 4
compressionFormat: zip
dataType: BLOB
tags:
foo: bar
app1:
type: opentelekomcloud:DisAppV2
bucket:
type: opentelekomcloud:ObsBucket
properties:
bucket: my-dis-bucket
storageClass: STANDARD
acl: private
task1:
type: opentelekomcloud:DisDumpTaskV2
properties:
streamName: ${stream1.name}
destination: OBS
obsDestinationDescriptors:
- taskName: my_task
agencyName: dis_admin_agency
deliverTimeInterval: 30
consumerStrategy: LATEST
filePrefix: _pf
partitionFormat: yyyy/MM/dd/HH/mm
obsBucketPath: ${bucket.bucket}
destinationFileType: text
recordDelimiter: '|'
Create DisDumpTaskV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DisDumpTaskV2(name: string, args: DisDumpTaskV2Args, opts?: CustomResourceOptions);
@overload
def DisDumpTaskV2(resource_name: str,
args: DisDumpTaskV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DisDumpTaskV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
stream_name: Optional[str] = None,
action: Optional[str] = None,
destination: Optional[str] = None,
dis_dump_task_v2_id: Optional[str] = None,
obs_destination_descriptors: Optional[Sequence[DisDumpTaskV2ObsDestinationDescriptorArgs]] = None,
obs_processing_schemas: Optional[Sequence[DisDumpTaskV2ObsProcessingSchemaArgs]] = None,
timeouts: Optional[DisDumpTaskV2TimeoutsArgs] = None)
func NewDisDumpTaskV2(ctx *Context, name string, args DisDumpTaskV2Args, opts ...ResourceOption) (*DisDumpTaskV2, error)
public DisDumpTaskV2(string name, DisDumpTaskV2Args args, CustomResourceOptions? opts = null)
public DisDumpTaskV2(String name, DisDumpTaskV2Args args)
public DisDumpTaskV2(String name, DisDumpTaskV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DisDumpTaskV2
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 DisDumpTaskV2Args
- 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 DisDumpTaskV2Args
- 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 DisDumpTaskV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DisDumpTaskV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DisDumpTaskV2Args
- 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 disDumpTaskV2Resource = new Opentelekomcloud.DisDumpTaskV2("disDumpTaskV2Resource", new()
{
StreamName = "string",
Action = "string",
Destination = "string",
DisDumpTaskV2Id = "string",
ObsDestinationDescriptors = new[]
{
new Opentelekomcloud.Inputs.DisDumpTaskV2ObsDestinationDescriptorArgs
{
AgencyName = "string",
DeliverTimeInterval = 0,
ObsBucketPath = "string",
TaskName = "string",
ConsumerStrategy = "string",
DestinationFileType = "string",
FilePrefix = "string",
PartitionFormat = "string",
RecordDelimiter = "string",
},
},
ObsProcessingSchemas = new[]
{
new Opentelekomcloud.Inputs.DisDumpTaskV2ObsProcessingSchemaArgs
{
TimestampName = "string",
TimestampType = "string",
TimestampFormat = "string",
},
},
Timeouts = new Opentelekomcloud.Inputs.DisDumpTaskV2TimeoutsArgs
{
Update = "string",
},
});
example, err := opentelekomcloud.NewDisDumpTaskV2(ctx, "disDumpTaskV2Resource", &opentelekomcloud.DisDumpTaskV2Args{
StreamName: pulumi.String("string"),
Action: pulumi.String("string"),
Destination: pulumi.String("string"),
DisDumpTaskV2Id: pulumi.String("string"),
ObsDestinationDescriptors: opentelekomcloud.DisDumpTaskV2ObsDestinationDescriptorArray{
&opentelekomcloud.DisDumpTaskV2ObsDestinationDescriptorArgs{
AgencyName: pulumi.String("string"),
DeliverTimeInterval: pulumi.Float64(0),
ObsBucketPath: pulumi.String("string"),
TaskName: pulumi.String("string"),
ConsumerStrategy: pulumi.String("string"),
DestinationFileType: pulumi.String("string"),
FilePrefix: pulumi.String("string"),
PartitionFormat: pulumi.String("string"),
RecordDelimiter: pulumi.String("string"),
},
},
ObsProcessingSchemas: opentelekomcloud.DisDumpTaskV2ObsProcessingSchemaArray{
&opentelekomcloud.DisDumpTaskV2ObsProcessingSchemaArgs{
TimestampName: pulumi.String("string"),
TimestampType: pulumi.String("string"),
TimestampFormat: pulumi.String("string"),
},
},
Timeouts: &opentelekomcloud.DisDumpTaskV2TimeoutsArgs{
Update: pulumi.String("string"),
},
})
var disDumpTaskV2Resource = new DisDumpTaskV2("disDumpTaskV2Resource", DisDumpTaskV2Args.builder()
.streamName("string")
.action("string")
.destination("string")
.disDumpTaskV2Id("string")
.obsDestinationDescriptors(DisDumpTaskV2ObsDestinationDescriptorArgs.builder()
.agencyName("string")
.deliverTimeInterval(0)
.obsBucketPath("string")
.taskName("string")
.consumerStrategy("string")
.destinationFileType("string")
.filePrefix("string")
.partitionFormat("string")
.recordDelimiter("string")
.build())
.obsProcessingSchemas(DisDumpTaskV2ObsProcessingSchemaArgs.builder()
.timestampName("string")
.timestampType("string")
.timestampFormat("string")
.build())
.timeouts(DisDumpTaskV2TimeoutsArgs.builder()
.update("string")
.build())
.build());
dis_dump_task_v2_resource = opentelekomcloud.DisDumpTaskV2("disDumpTaskV2Resource",
stream_name="string",
action="string",
destination="string",
dis_dump_task_v2_id="string",
obs_destination_descriptors=[{
"agency_name": "string",
"deliver_time_interval": 0,
"obs_bucket_path": "string",
"task_name": "string",
"consumer_strategy": "string",
"destination_file_type": "string",
"file_prefix": "string",
"partition_format": "string",
"record_delimiter": "string",
}],
obs_processing_schemas=[{
"timestamp_name": "string",
"timestamp_type": "string",
"timestamp_format": "string",
}],
timeouts={
"update": "string",
})
const disDumpTaskV2Resource = new opentelekomcloud.DisDumpTaskV2("disDumpTaskV2Resource", {
streamName: "string",
action: "string",
destination: "string",
disDumpTaskV2Id: "string",
obsDestinationDescriptors: [{
agencyName: "string",
deliverTimeInterval: 0,
obsBucketPath: "string",
taskName: "string",
consumerStrategy: "string",
destinationFileType: "string",
filePrefix: "string",
partitionFormat: "string",
recordDelimiter: "string",
}],
obsProcessingSchemas: [{
timestampName: "string",
timestampType: "string",
timestampFormat: "string",
}],
timeouts: {
update: "string",
},
});
type: opentelekomcloud:DisDumpTaskV2
properties:
action: string
destination: string
disDumpTaskV2Id: string
obsDestinationDescriptors:
- agencyName: string
consumerStrategy: string
deliverTimeInterval: 0
destinationFileType: string
filePrefix: string
obsBucketPath: string
partitionFormat: string
recordDelimiter: string
taskName: string
obsProcessingSchemas:
- timestampFormat: string
timestampName: string
timestampType: string
streamName: string
timeouts:
update: string
DisDumpTaskV2 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 DisDumpTaskV2 resource accepts the following input properties:
- Stream
Name string - Name of the stream.
- Action string
- Dump task operation. The value can only be
start
orstop
. - Destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - Dis
Dump stringTask V2Id - Unique identifier of the partition.
- Obs
Destination List<DisDescriptors Dump Task V2Obs Destination Descriptor> - Parameter list of OBS to which data in the DIS stream will be dumped.
- Obs
Processing List<DisSchemas Dump Task V2Obs Processing Schema> - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- Timeouts
Dis
Dump Task V2Timeouts
- Stream
Name string - Name of the stream.
- Action string
- Dump task operation. The value can only be
start
orstop
. - Destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - Dis
Dump stringTask V2Id - Unique identifier of the partition.
- Obs
Destination []DisDescriptors Dump Task V2Obs Destination Descriptor Args - Parameter list of OBS to which data in the DIS stream will be dumped.
- Obs
Processing []DisSchemas Dump Task V2Obs Processing Schema Args - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- Timeouts
Dis
Dump Task V2Timeouts Args
- stream
Name String - Name of the stream.
- action String
- Dump task operation. The value can only be
start
orstop
. - destination String
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump StringTask V2Id - Unique identifier of the partition.
- obs
Destination List<DisDescriptors Dump Task V2Obs Destination Descriptor> - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing List<DisSchemas Dump Task V2Obs Processing Schema> - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- timeouts
Dis
Dump Task V2Timeouts
- stream
Name string - Name of the stream.
- action string
- Dump task operation. The value can only be
start
orstop
. - destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump stringTask V2Id - Unique identifier of the partition.
- obs
Destination DisDescriptors Dump Task V2Obs Destination Descriptor[] - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing DisSchemas Dump Task V2Obs Processing Schema[] - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- timeouts
Dis
Dump Task V2Timeouts
- stream_
name str - Name of the stream.
- action str
- Dump task operation. The value can only be
start
orstop
. - destination str
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis_
dump_ strtask_ v2_ id - Unique identifier of the partition.
- obs_
destination_ Sequence[Disdescriptors Dump Task V2Obs Destination Descriptor Args] - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs_
processing_ Sequence[Disschemas Dump Task V2Obs Processing Schema Args] - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- timeouts
Dis
Dump Task V2Timeouts Args
- stream
Name String - Name of the stream.
- action String
- Dump task operation. The value can only be
start
orstop
. - destination String
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump StringTask V2Id - Unique identifier of the partition.
- obs
Destination List<Property Map>Descriptors - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing List<Property Map>Schemas - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DisDumpTaskV2 resource produces the following output properties:
- Created
At double - Time when the dump task is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Transfer doubleTimestamp - Latest dump time of the dump task.
- Name string
- Name of the dump task.
- Partitions
List<Dis
Dump Task V2Partition> - List of partition dump details.
- Status string
- Current status of the partition.
- Task
Id string - ID of the dump task.
- Created
At float64 - Time when the dump task is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Transfer float64Timestamp - Latest dump time of the dump task.
- Name string
- Name of the dump task.
- Partitions
[]Dis
Dump Task V2Partition - List of partition dump details.
- Status string
- Current status of the partition.
- Task
Id string - ID of the dump task.
- created
At Double - Time when the dump task is created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Transfer DoubleTimestamp - Latest dump time of the dump task.
- name String
- Name of the dump task.
- partitions
List<Dis
Dump Task V2Partition> - List of partition dump details.
- status String
- Current status of the partition.
- task
Id String - ID of the dump task.
- created
At number - Time when the dump task is created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Transfer numberTimestamp - Latest dump time of the dump task.
- name string
- Name of the dump task.
- partitions
Dis
Dump Task V2Partition[] - List of partition dump details.
- status string
- Current status of the partition.
- task
Id string - ID of the dump task.
- created_
at float - Time when the dump task is created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
transfer_ floattimestamp - Latest dump time of the dump task.
- name str
- Name of the dump task.
- partitions
Sequence[Dis
Dump Task V2Partition] - List of partition dump details.
- status str
- Current status of the partition.
- task_
id str - ID of the dump task.
- created
At Number - Time when the dump task is created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Transfer NumberTimestamp - Latest dump time of the dump task.
- name String
- Name of the dump task.
- partitions List<Property Map>
- List of partition dump details.
- status String
- Current status of the partition.
- task
Id String - ID of the dump task.
Look up Existing DisDumpTaskV2 Resource
Get an existing DisDumpTaskV2 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?: DisDumpTaskV2State, opts?: CustomResourceOptions): DisDumpTaskV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
created_at: Optional[float] = None,
destination: Optional[str] = None,
dis_dump_task_v2_id: Optional[str] = None,
last_transfer_timestamp: Optional[float] = None,
name: Optional[str] = None,
obs_destination_descriptors: Optional[Sequence[DisDumpTaskV2ObsDestinationDescriptorArgs]] = None,
obs_processing_schemas: Optional[Sequence[DisDumpTaskV2ObsProcessingSchemaArgs]] = None,
partitions: Optional[Sequence[DisDumpTaskV2PartitionArgs]] = None,
status: Optional[str] = None,
stream_name: Optional[str] = None,
task_id: Optional[str] = None,
timeouts: Optional[DisDumpTaskV2TimeoutsArgs] = None) -> DisDumpTaskV2
func GetDisDumpTaskV2(ctx *Context, name string, id IDInput, state *DisDumpTaskV2State, opts ...ResourceOption) (*DisDumpTaskV2, error)
public static DisDumpTaskV2 Get(string name, Input<string> id, DisDumpTaskV2State? state, CustomResourceOptions? opts = null)
public static DisDumpTaskV2 get(String name, Output<String> id, DisDumpTaskV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DisDumpTaskV2 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.
- Action string
- Dump task operation. The value can only be
start
orstop
. - Created
At double - Time when the dump task is created.
- Destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - Dis
Dump stringTask V2Id - Unique identifier of the partition.
- Last
Transfer doubleTimestamp - Latest dump time of the dump task.
- Name string
- Name of the dump task.
- Obs
Destination List<DisDescriptors Dump Task V2Obs Destination Descriptor> - Parameter list of OBS to which data in the DIS stream will be dumped.
- Obs
Processing List<DisSchemas Dump Task V2Obs Processing Schema> - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- Partitions
List<Dis
Dump Task V2Partition> - List of partition dump details.
- Status string
- Current status of the partition.
- Stream
Name string - Name of the stream.
- Task
Id string - ID of the dump task.
- Timeouts
Dis
Dump Task V2Timeouts
- Action string
- Dump task operation. The value can only be
start
orstop
. - Created
At float64 - Time when the dump task is created.
- Destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - Dis
Dump stringTask V2Id - Unique identifier of the partition.
- Last
Transfer float64Timestamp - Latest dump time of the dump task.
- Name string
- Name of the dump task.
- Obs
Destination []DisDescriptors Dump Task V2Obs Destination Descriptor Args - Parameter list of OBS to which data in the DIS stream will be dumped.
- Obs
Processing []DisSchemas Dump Task V2Obs Processing Schema Args - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- Partitions
[]Dis
Dump Task V2Partition Args - List of partition dump details.
- Status string
- Current status of the partition.
- Stream
Name string - Name of the stream.
- Task
Id string - ID of the dump task.
- Timeouts
Dis
Dump Task V2Timeouts Args
- action String
- Dump task operation. The value can only be
start
orstop
. - created
At Double - Time when the dump task is created.
- destination String
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump StringTask V2Id - Unique identifier of the partition.
- last
Transfer DoubleTimestamp - Latest dump time of the dump task.
- name String
- Name of the dump task.
- obs
Destination List<DisDescriptors Dump Task V2Obs Destination Descriptor> - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing List<DisSchemas Dump Task V2Obs Processing Schema> - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- partitions
List<Dis
Dump Task V2Partition> - List of partition dump details.
- status String
- Current status of the partition.
- stream
Name String - Name of the stream.
- task
Id String - ID of the dump task.
- timeouts
Dis
Dump Task V2Timeouts
- action string
- Dump task operation. The value can only be
start
orstop
. - created
At number - Time when the dump task is created.
- destination string
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump stringTask V2Id - Unique identifier of the partition.
- last
Transfer numberTimestamp - Latest dump time of the dump task.
- name string
- Name of the dump task.
- obs
Destination DisDescriptors Dump Task V2Obs Destination Descriptor[] - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing DisSchemas Dump Task V2Obs Processing Schema[] - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- partitions
Dis
Dump Task V2Partition[] - List of partition dump details.
- status string
- Current status of the partition.
- stream
Name string - Name of the stream.
- task
Id string - ID of the dump task.
- timeouts
Dis
Dump Task V2Timeouts
- action str
- Dump task operation. The value can only be
start
orstop
. - created_
at float - Time when the dump task is created.
- destination str
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis_
dump_ strtask_ v2_ id - Unique identifier of the partition.
- last_
transfer_ floattimestamp - Latest dump time of the dump task.
- name str
- Name of the dump task.
- obs_
destination_ Sequence[Disdescriptors Dump Task V2Obs Destination Descriptor Args] - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs_
processing_ Sequence[Disschemas Dump Task V2Obs Processing Schema Args] - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- partitions
Sequence[Dis
Dump Task V2Partition Args] - List of partition dump details.
- status str
- Current status of the partition.
- stream_
name str - Name of the stream.
- task_
id str - ID of the dump task.
- timeouts
Dis
Dump Task V2Timeouts Args
- action String
- Dump task operation. The value can only be
start
orstop
. - created
At Number - Time when the dump task is created.
- destination String
- Dump destination. Possible values:
OBS
: Data is dumped to OBS. - dis
Dump StringTask V2Id - Unique identifier of the partition.
- last
Transfer NumberTimestamp - Latest dump time of the dump task.
- name String
- Name of the dump task.
- obs
Destination List<Property Map>Descriptors - Parameter list of OBS to which data in the DIS stream will be dumped.
- obs
Processing List<Property Map>Schemas - Dump time directory generated based on the timestamp of the source data and the configured partition_format. Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm.
- partitions List<Property Map>
- List of partition dump details.
- status String
- Current status of the partition.
- stream
Name String - Name of the stream.
- task
Id String - ID of the dump task.
- timeouts Property Map
Supporting Types
DisDumpTaskV2ObsDestinationDescriptor, DisDumpTaskV2ObsDestinationDescriptorArgs
- Agency
Name string - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- Deliver
Time doubleInterval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - Obs
Bucket stringPath - Name of the OBS bucket used to store data from the DIS stream.
- Task
Name string - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- Consumer
Strategy string - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - Destination
File stringType - Dump file format. Possible values:
text
- File
Prefix string - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- Partition
Format string - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- Record
Delimiter string - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
- Agency
Name string - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- Deliver
Time float64Interval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - Obs
Bucket stringPath - Name of the OBS bucket used to store data from the DIS stream.
- Task
Name string - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- Consumer
Strategy string - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - Destination
File stringType - Dump file format. Possible values:
text
- File
Prefix string - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- Partition
Format string - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- Record
Delimiter string - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
- agency
Name String - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- deliver
Time DoubleInterval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - obs
Bucket StringPath - Name of the OBS bucket used to store data from the DIS stream.
- task
Name String - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- consumer
Strategy String - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - destination
File StringType - Dump file format. Possible values:
text
- file
Prefix String - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- partition
Format String - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- record
Delimiter String - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
- agency
Name string - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- deliver
Time numberInterval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - obs
Bucket stringPath - Name of the OBS bucket used to store data from the DIS stream.
- task
Name string - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- consumer
Strategy string - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - destination
File stringType - Dump file format. Possible values:
text
- file
Prefix string - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- partition
Format string - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- record
Delimiter string - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
- agency_
name str - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- deliver_
time_ floatinterval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - obs_
bucket_ strpath - Name of the OBS bucket used to store data from the DIS stream.
- task_
name str - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- consumer_
strategy str - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - destination_
file_ strtype - Dump file format. Possible values:
text
- file_
prefix str - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- partition_
format str - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- record_
delimiter str - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
- agency
Name String - Name of the agency created on IAM. DIS uses an agency to access your specified resources.
The parameters for creating an agency are as follows:
- Agency Type: Cloud service
- Cloud Service: DIS
- Validity Period: unlimited
- Scope: Global service
- Project: OBS.
- Select the Tenant Administrator role for the global service project.
- deliver
Time NumberInterval - User-defined interval at which data is imported from the current DIS stream into OBS.
If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. Value range:
30
-900
. - obs
Bucket StringPath - Name of the OBS bucket used to store data from the DIS stream.
- task
Name String - Name of the dump task. The task name consists of letters, digits, hyphens (-), and underscores (_). It must be a string of 1 to 64 characters.
- consumer
Strategy String - Offset.
LATEST
: Maximum offset, indicating that the latest data will be extracted.TRIM_HORIZON
: Minimum offset, indicating that the earliest data will be extracted. - destination
File StringType - Dump file format. Possible values:
text
- file
Prefix String - Directory to store files that will be dumped to OBS. Different directory levels are separated by slashes (/) and cannot start with slashes.
- partition
Format String - Directory structure of the object file written into OBS. The directory structure is in the format of yyyy/MM/dd/HH/mm (time at which the dump task was created). Possible values:
- record
Delimiter String - Delimiter for the dump file, which is used to separate the user data that is written into the dump file.
DisDumpTaskV2ObsProcessingSchema, DisDumpTaskV2ObsProcessingSchemaArgs
- Timestamp
Name string - Attribute name of the source data timestamp.
- Timestamp
Type string - Type of the source data timestamp.
Possible values:
String
Timestamp
- Timestamp
Format string - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
- Timestamp
Name string - Attribute name of the source data timestamp.
- Timestamp
Type string - Type of the source data timestamp.
Possible values:
String
Timestamp
- Timestamp
Format string - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
- timestamp
Name String - Attribute name of the source data timestamp.
- timestamp
Type String - Type of the source data timestamp.
Possible values:
String
Timestamp
- timestamp
Format String - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
- timestamp
Name string - Attribute name of the source data timestamp.
- timestamp
Type string - Type of the source data timestamp.
Possible values:
String
Timestamp
- timestamp
Format string - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
- timestamp_
name str - Attribute name of the source data timestamp.
- timestamp_
type str - Type of the source data timestamp.
Possible values:
String
Timestamp
- timestamp_
format str - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
- timestamp
Name String - Attribute name of the source data timestamp.
- timestamp
Type String - Type of the source data timestamp.
Possible values:
String
Timestamp
- timestamp
Format String - OBS directory generated based on the timestamp format.
This parameter is mandatory when the timestamp type of the source data is String.
- yyyy/MM/dd HH:mm:ss Possible values:
MM/dd/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
yyyy-MM-dd HH:mm:ss
MM-dd-yyyy HH:mm:ss
dd-MM-yyyy HH:mm:ss
DisDumpTaskV2Partition, DisDumpTaskV2PartitionArgs
- Hash
Range string - Possible value range of the hash key used by the partition.
- Id string
- Unique identifier of the partition.
- Parent
Partitions string - Parent partition.
- Sequence
Number stringRange - Sequence number range of the partition.
- Status string
- Current status of the partition.
- Hash
Range string - Possible value range of the hash key used by the partition.
- Id string
- Unique identifier of the partition.
- Parent
Partitions string - Parent partition.
- Sequence
Number stringRange - Sequence number range of the partition.
- Status string
- Current status of the partition.
- hash
Range String - Possible value range of the hash key used by the partition.
- id String
- Unique identifier of the partition.
- parent
Partitions String - Parent partition.
- sequence
Number StringRange - Sequence number range of the partition.
- status String
- Current status of the partition.
- hash
Range string - Possible value range of the hash key used by the partition.
- id string
- Unique identifier of the partition.
- parent
Partitions string - Parent partition.
- sequence
Number stringRange - Sequence number range of the partition.
- status string
- Current status of the partition.
- hash_
range str - Possible value range of the hash key used by the partition.
- id str
- Unique identifier of the partition.
- parent_
partitions str - Parent partition.
- sequence_
number_ strrange - Sequence number range of the partition.
- status str
- Current status of the partition.
- hash
Range String - Possible value range of the hash key used by the partition.
- id String
- Unique identifier of the partition.
- parent
Partitions String - Parent partition.
- sequence
Number StringRange - Sequence number range of the partition.
- status String
- Current status of the partition.
DisDumpTaskV2Timeouts, DisDumpTaskV2TimeoutsArgs
- Update string
- Update string
- update String
- update string
- update str
- update String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.