Skip to main content

Create service unit

POST 

/dwsu

Creates a service unit.

Request

Body

required

    alias string

    The alias of the service unit.

    defaultDps

    object

    The DPS cluster information.

    aqsSpec

    object

    The information about the DPS cluster specification.

    dpuSize int32

    The number of DPUs allocated to the DPS cluster.

    id int64

    The ID of the DPS cluster specification.

    name string

    The name of the DPS cluster specification.

    price object

    The number of credits consumed per unit of time.

    createTime date-time

    The creation time of the DPS cluster.

    creator

    object

    The cloud account information.

    createTimestamp int64

    The creation timestamp of the account.

    domain string

    The domain name assigned to the main account.

    email string

    The email used by the cloud account.

    id string

    The ID of the cloud account.

    isRoot boolean

    Whether the cloud account is a main account.

    roleId string

    The ID of the role to which the cloud account is assigned.

    rootAccountId string

    The ID of the main account.

    status string

    Possible values: [INACTIVE, ACTIVATED, DISABLED]

    The cloud account status.

    description string

    The description of the DPS cluster.

    enableAdaptiveQueryScaling boolean

    Whether Adaptive Query Scaling is enabled.

    enableAutoResume boolean

    Whether Auto Resume is enabled.

    enableAutoSuspend boolean

    Whether Auto Suspend is enabled.

    engine DpsType

    Possible values: [hybrid, extreme]

    The type of the DPS cluster.

    id string

    The ID of the DPS cluster. The value can be Hybrid or Extreme.

    keepAliveTime int32

    The maximum idle time before a DPS cluster is automatically suspended.

    name string

    The name of the DPS cluster.

    owner

    object

    The cloud account information.

    createTimestamp int64

    The creation timestamp of the account.

    domain string

    The domain name assigned to the main account.

    email string

    The email used by the cloud account.

    id string

    The ID of the cloud account.

    isRoot boolean

    Whether the cloud account is a main account.

    roleId string

    The ID of the role to which the cloud account is assigned.

    rootAccountId string

    The ID of the main account.

    status string

    Possible values: [INACTIVE, ACTIVATED, DISABLED]

    The cloud account status.

    spec

    object

    The information about the DPS cluster specification.

    dpuSize int32

    The number of DPUs allocated to the DPS cluster.

    id int64

    The ID of the DPS cluster specification.

    name string

    The name of the DPS cluster specification.

    price object

    The number of credits consumed per unit of time.

    status string

    Possible values: [READY, AUTO, SUSPENDED, PROVISIONING, DROPPING, DROPPED, RESUMING, RESIZING, SUSPENDING, INVALID, LOADING]

    The status of the DPS cluster.

    updateTime date-time

    The last time when the DPS cluster was updated.

    domain string

    The domain name of the service unit.

    edition

    object

    The edition information of the service unit.

    description string

    The description of the edition.

    features

    object[]

    The list of features supported by the edition.

  • Array [

  • description string

    The description of the feature.

    id string

    The ID of the feature.

    name string

    The name of the feature.

  • ]

  • id string

    The ID of the edition.

    isAvailable boolean

    Whether the edition is available.

    name string

    The name of the edition.

    networkPolicy

    object

    The network policy information.

    allowed string[]

    The IP allowlist specified in the network policy.

    blocked string[]

    The IP blocklist specified in the network policy.

    createTimestamp date-time

    The creation timestamp of the network policy.

    id string

    The ID of the network policy.

    name string

    The name of the network policy.

    status NetworkPolicyStatus

    Possible values: [ACTIVE, INACTIVE]

    The status of the network policy.

    updateTimestamp date-time

    The timestamp when the network policy was last updated.

    region

    object

    The region information.

    area string

    The location of the region.

    cloud

    object

    The cloud provider information.

    id string

    The ID of the cloud provider.

    isAvailable boolean

    Whether the cloud provider is a public cloud provider.

    isPublic boolean

    Whether the cloud provider is a public cloud provider.

    link string

    The URL of the cloud provider.

    name string

    The name of the cloud provider.

    id string

    The ID of the region.

    name string

    The name of the region.

    public boolean

    regionInfo

    object

    The region information.

    info object

    The region information.

    tags string[]

    The tags of the service unit.

Responses

OK

Schema

    code int32

    The response code.

    data object

    The wrapped responding data.

    msg string

    The response message.

Loading...