Create service unit
POST/dwsu
Creates a service unit.
Request
- application/json
Body
required
Array [
]
The alias of the service unit.
defaultDps
object
The DPS cluster information.
aqsSpec
object
The information about the DPS cluster specification.
The number of DPUs allocated to the DPS cluster.
The ID of the DPS cluster specification.
The name of the DPS cluster specification.
The number of credits consumed per unit of time.
The creation time of the DPS cluster.
creator
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
The description of the DPS cluster.
Whether Adaptive Query Scaling is enabled.
Whether Auto Resume is enabled.
Whether Auto Suspend is enabled.
Possible values: [hybrid
, extreme
]
The type of the DPS cluster.
The ID of the DPS cluster. The value can be Hybrid or Extreme.
The maximum idle time before a DPS cluster is automatically suspended.
The name of the DPS cluster.
owner
object
The cloud account information.
The creation timestamp of the account.
The domain name assigned to the main account.
The email used by the cloud account.
The ID of the cloud account.
Whether the cloud account is a main account.
The ID of the role to which the cloud account is assigned.
The ID of the main account.
Possible values: [INACTIVE
, ACTIVATED
, DISABLED
]
The cloud account status.
spec
object
The information about the DPS cluster specification.
The number of DPUs allocated to the DPS cluster.
The ID of the DPS cluster specification.
The name of the DPS cluster specification.
The number of credits consumed per unit of time.
Possible values: [READY
, AUTO
, SUSPENDED
, PROVISIONING
, DROPPING
, DROPPED
, RESUMING
, RESIZING
, SUSPENDING
, INVALID
, LOADING
]
The status of the DPS cluster.
The last time when the DPS cluster was updated.
The domain name of the service unit.
edition
object
The edition information of the service unit.
The description of the edition.
features
object[]
The list of features supported by the edition.
The description of the feature.
The ID of the feature.
The name of the feature.
The ID of the edition.
Whether the edition is available.
The name of the edition.
networkPolicy
object
The network policy information.
The IP allowlist specified in the network policy.
The IP blocklist specified in the network policy.
The creation timestamp of the network policy.
The ID of the network policy.
The name of the network policy.
Possible values: [ACTIVE
, INACTIVE
]
The status of the network policy.
The timestamp when the network policy was last updated.
region
object
The region information.
The location of the region.
cloud
object
The cloud provider information.
The ID of the cloud provider.
Whether the cloud provider is a public cloud provider.
Whether the cloud provider is a public cloud provider.
The URL of the cloud provider.
The name of the cloud provider.
The ID of the region.
The name of the region.
regionInfo
object
The region information.
The region information.
The tags of the service unit.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
The response code.
The wrapped responding data.
The response message.
{
"code": 0,
"data": {},
"msg": "string"
}