1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. DisAppV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.DisAppV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for DIS app you can get at documentation portal

    Manages a DIS Apps in the OpenTelekomCloud DIS Service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const app1 = new opentelekomcloud.DisAppV2("app1", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    app1 = opentelekomcloud.DisAppV2("app1")
    
    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 {
    		_, err := opentelekomcloud.NewDisAppV2(ctx, "app1", nil)
    		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 app1 = new Opentelekomcloud.DisAppV2("app1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.DisAppV2;
    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 app1 = new DisAppV2("app1");
    
        }
    }
    
    resources:
      app1:
        type: opentelekomcloud:DisAppV2
    

    Create DisAppV2 Resource

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

    Constructor syntax

    new DisAppV2(name: string, args?: DisAppV2Args, opts?: CustomResourceOptions);
    @overload
    def DisAppV2(resource_name: str,
                 args: Optional[DisAppV2Args] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DisAppV2(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 name: Optional[str] = None,
                 timeouts: Optional[DisAppV2TimeoutsArgs] = None)
    func NewDisAppV2(ctx *Context, name string, args *DisAppV2Args, opts ...ResourceOption) (*DisAppV2, error)
    public DisAppV2(string name, DisAppV2Args? args = null, CustomResourceOptions? opts = null)
    public DisAppV2(String name, DisAppV2Args args)
    public DisAppV2(String name, DisAppV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:DisAppV2
    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 DisAppV2Args
    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 DisAppV2Args
    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 DisAppV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DisAppV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DisAppV2Args
    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 disAppV2Resource = new Opentelekomcloud.DisAppV2("disAppV2Resource", new()
    {
        Name = "string",
        Timeouts = new Opentelekomcloud.Inputs.DisAppV2TimeoutsArgs
        {
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewDisAppV2(ctx, "disAppV2Resource", &opentelekomcloud.DisAppV2Args{
    	Name: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.DisAppV2TimeoutsArgs{
    		Update: pulumi.String("string"),
    	},
    })
    
    var disAppV2Resource = new DisAppV2("disAppV2Resource", DisAppV2Args.builder()
        .name("string")
        .timeouts(DisAppV2TimeoutsArgs.builder()
            .update("string")
            .build())
        .build());
    
    dis_app_v2_resource = opentelekomcloud.DisAppV2("disAppV2Resource",
        name="string",
        timeouts={
            "update": "string",
        })
    
    const disAppV2Resource = new opentelekomcloud.DisAppV2("disAppV2Resource", {
        name: "string",
        timeouts: {
            update: "string",
        },
    });
    
    type: opentelekomcloud:DisAppV2
    properties:
        name: string
        timeouts:
            update: string
    

    DisAppV2 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 DisAppV2 resource accepts the following input properties:

    Name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    Timeouts DisAppV2Timeouts
    Name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    Timeouts DisAppV2TimeoutsArgs
    name String
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    timeouts DisAppV2Timeouts
    name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    timeouts DisAppV2Timeouts
    name str
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    timeouts DisAppV2TimeoutsArgs
    name String
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    timeouts Property Map

    Outputs

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

    CommitCheckpointStreamNames List<string>
    List of associated streams.
    Created double
    Time when the app is created. The value is a timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    PartitionConsumingStates List<DisAppV2PartitionConsumingState>
    Associated partitions details.
    CommitCheckpointStreamNames []string
    List of associated streams.
    Created float64
    Time when the app is created. The value is a timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    PartitionConsumingStates []DisAppV2PartitionConsumingState
    Associated partitions details.
    commitCheckpointStreamNames List<String>
    List of associated streams.
    created Double
    Time when the app is created. The value is a timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    partitionConsumingStates List<DisAppV2PartitionConsumingState>
    Associated partitions details.
    commitCheckpointStreamNames string[]
    List of associated streams.
    created number
    Time when the app is created. The value is a timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    partitionConsumingStates DisAppV2PartitionConsumingState[]
    Associated partitions details.
    commit_checkpoint_stream_names Sequence[str]
    List of associated streams.
    created float
    Time when the app is created. The value is a timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    partition_consuming_states Sequence[DisAppV2PartitionConsumingState]
    Associated partitions details.
    commitCheckpointStreamNames List<String>
    List of associated streams.
    created Number
    Time when the app is created. The value is a timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    partitionConsumingStates List<Property Map>
    Associated partitions details.

    Look up Existing DisAppV2 Resource

    Get an existing DisAppV2 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?: DisAppV2State, opts?: CustomResourceOptions): DisAppV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            commit_checkpoint_stream_names: Optional[Sequence[str]] = None,
            created: Optional[float] = None,
            name: Optional[str] = None,
            partition_consuming_states: Optional[Sequence[DisAppV2PartitionConsumingStateArgs]] = None,
            timeouts: Optional[DisAppV2TimeoutsArgs] = None) -> DisAppV2
    func GetDisAppV2(ctx *Context, name string, id IDInput, state *DisAppV2State, opts ...ResourceOption) (*DisAppV2, error)
    public static DisAppV2 Get(string name, Input<string> id, DisAppV2State? state, CustomResourceOptions? opts = null)
    public static DisAppV2 get(String name, Output<String> id, DisAppV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:DisAppV2    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.
    The following state arguments are supported:
    CommitCheckpointStreamNames List<string>
    List of associated streams.
    Created double
    Time when the app is created. The value is a timestamp.
    Name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    PartitionConsumingStates List<DisAppV2PartitionConsumingState>
    Associated partitions details.
    Timeouts DisAppV2Timeouts
    CommitCheckpointStreamNames []string
    List of associated streams.
    Created float64
    Time when the app is created. The value is a timestamp.
    Name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    PartitionConsumingStates []DisAppV2PartitionConsumingStateArgs
    Associated partitions details.
    Timeouts DisAppV2TimeoutsArgs
    commitCheckpointStreamNames List<String>
    List of associated streams.
    created Double
    Time when the app is created. The value is a timestamp.
    name String
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    partitionConsumingStates List<DisAppV2PartitionConsumingState>
    Associated partitions details.
    timeouts DisAppV2Timeouts
    commitCheckpointStreamNames string[]
    List of associated streams.
    created number
    Time when the app is created. The value is a timestamp.
    name string
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    partitionConsumingStates DisAppV2PartitionConsumingState[]
    Associated partitions details.
    timeouts DisAppV2Timeouts
    commit_checkpoint_stream_names Sequence[str]
    List of associated streams.
    created float
    Time when the app is created. The value is a timestamp.
    name str
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    partition_consuming_states Sequence[DisAppV2PartitionConsumingStateArgs]
    Associated partitions details.
    timeouts DisAppV2TimeoutsArgs
    commitCheckpointStreamNames List<String>
    List of associated streams.
    created Number
    Time when the app is created. The value is a timestamp.
    name String
    Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
    partitionConsumingStates List<Property Map>
    Associated partitions details.
    timeouts Property Map

    Supporting Types

    DisAppV2PartitionConsumingState, DisAppV2PartitionConsumingStateArgs

    CheckpointType string
    Type of the checkpoint.
    EarliestOffset double
    Partition data earliest offset
    Id string
    Partition Id.
    LatestOffset double
    Partition data latest offset
    SequenceNumber string
    Partition Sequence Number
    Status string
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED
    CheckpointType string
    Type of the checkpoint.
    EarliestOffset float64
    Partition data earliest offset
    Id string
    Partition Id.
    LatestOffset float64
    Partition data latest offset
    SequenceNumber string
    Partition Sequence Number
    Status string
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED
    checkpointType String
    Type of the checkpoint.
    earliestOffset Double
    Partition data earliest offset
    id String
    Partition Id.
    latestOffset Double
    Partition data latest offset
    sequenceNumber String
    Partition Sequence Number
    status String
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED
    checkpointType string
    Type of the checkpoint.
    earliestOffset number
    Partition data earliest offset
    id string
    Partition Id.
    latestOffset number
    Partition data latest offset
    sequenceNumber string
    Partition Sequence Number
    status string
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED
    checkpoint_type str
    Type of the checkpoint.
    earliest_offset float
    Partition data earliest offset
    id str
    Partition Id.
    latest_offset float
    Partition data latest offset
    sequence_number str
    Partition Sequence Number
    status str
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED
    checkpointType String
    Type of the checkpoint.
    earliestOffset Number
    Partition data earliest offset
    id String
    Partition Id.
    latestOffset Number
    Partition data latest offset
    sequenceNumber String
    Partition Sequence Number
    status String
    Partition Status, can be:

    • CREATING
    • ACTIVE
    • DELETED
    • EXPIRED

    DisAppV2Timeouts, DisAppV2TimeoutsArgs

    Update string
    Update string
    update String
    update string
    update str
    update String

    Import

    App can be imported using the app name, e.g.

    $ pulumi import opentelekomcloud:index/disAppV2:DisAppV2 app_1 app_name
    

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud