Obtaining Queues (Invitational Test)
Function
This API is used to obtain queues. Ten queues are returned. This API is in invitational test and will be available in OBT in the future.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/datamap/entities/queue
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain it from the value of X-Subject-Token in the response message header returned by the "Obtaining a User Token" API of the IAM service. |
|
instance |
Yes |
String |
Instance ID. For details about how to obtain the instance ID, see Instance ID and Workspace ID. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of objects |
Queue information list |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
None
Example Responses
Status code: 200
OK
{
"data" : [ {
"owner" : "DLI",
"default_spark_version" : "3.3.1",
"create_time" : 1553168198000,
"queue_type" : "sql",
"charging_mode" : 0,
"support_hetu_engine_versions" : [ "2.1.0" ],
"description" : "System queue for default, query on demand",
"support_spark_versions" : [ "3.3.1" ],
"queue_name" : "default",
"default_hetu_engine_version" : "2.1.0",
"cu_count" : 0,
"resource_mode" : 0,
"queue_id" : 0
}, {
"owner" : "username",
"default_spark_version" : "2.4.5",
"used_cu" : 4,
"create_time" : 1731584646976,
"queue_type" : "sql",
"charging_mode" : 1,
"cu_spec" : 16,
"description" : "",
"is_support_multiple_spark_driver" : true,
"support_spark_versions" : [ "2.4.5" ],
"platform" : "x86_64",
"queue_resource_type" : "container",
"labels" : "",
"queue_name" : "dlg_query",
"is_restarting" : false,
"enterprise_project_id" : "0",
"cu_count" : 16,
"max_cu_count" : 16,
"resource_mode" : 0,
"feature" : "",
"engine" : "spark",
"resource_id" : "ff1f7a5c-1085-49de-8e52-501291f696a6",
"queue_id" : 95674
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
BadRequest |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
500 |
InternalServerError |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.