查看工作空間的佇列列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
emr-serverless-spark:ListWorkspaceQueues |
none |
*全部資源。
|
無 | 無 |
請求文法
GET /api/v1/workspaces/{workspaceId}/queues HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| workspaceId |
string |
否 |
工作空間 ID。 |
w-26ca1703f6d7**** |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| environment |
string |
否 |
環境類型。 枚舉值:
|
production |
| regionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
回傳資料。 |
||
| queues |
array<object> |
佇列列表。 |
|
|
array<object> |
佇列詳情。 |
||
| regionId |
string |
地域 ID。 |
cn-hangzhou |
| queueName |
string |
佇列名稱。 |
dev_queue |
| workspaceId |
string |
工作空間 ID。 |
w-1234abcd |
| queueType |
string |
佇列類型。取值:
|
instance |
| properties |
string |
佇列 Label。 |
dev_queue |
| queueScope |
string |
佇列架構。 |
{"arch": "x86"} |
| maxResource |
string |
佇列資源最大容量。 |
{"cpu": "2","memory": "2Gi"} |
| minResource |
string |
佇列資源最小容量。 |
{"cpu": "2","memory": "2Gi"} |
| usedResource |
string |
佇列資源使用容量。 |
{"cpu": "2","memory": "2Gi"} |
| queueStatus |
string |
佇列狀態。 |
RUNNING |
| creator |
string |
建立使用者 UID。 |
237109 |
| allowActions |
array<object> |
佇列允許的操作列表。 |
|
|
object |
佇列允許的操作。 |
||
| actionArn |
string |
行為 arn。 |
acs:emr::workspaceId:action/create_queue |
| actionName |
string |
權限名稱。 |
view |
| displayName |
string |
權限展示名稱。 |
File directory traversal, file browsing |
| description |
string |
action 描述。 |
File directory traversal, file browsing |
| dependencies |
array |
action 依賴列表。 |
["view"] |
|
string |
action 依賴。 |
view |
|
| environments |
array |
佇列環境類型列表。 |
|
|
string |
佇列環境類型。 |
production |
|
| paymentType |
string |
付費類型。取值:
|
PayAsYouGo |
| createTime |
integer |
工作空間建立時間。採用 Unix 時間戳記,單位為毫秒。 |
1684115879955 |
| preheat |
boolean |
是否進行資源預熱。 |
true |
| queueCategory |
string |
佇列類型,CPU 或 GPU。 |
CPU |
| gpuSpec |
array |
GPU 機型列表。 |
|
|
string |
GPU 機型。 |
ecs.gn7i-c8g1.2xlarge |
|
| gpuMachineNum |
integer |
GPU 機器數量。 |
0 |
| instanceId |
string |
佇列關聯的資源執行個體 ID。 |
|
| description |
string |
描述。 |
test queue |
| requestId |
string |
請求 ID。 |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| nextToken |
string |
下一頁 TOKEN。 |
1 |
| maxResults |
integer |
一次取得的最大記錄數。 |
20 |
| totalCount |
integer |
記錄總數。 |
200 |
樣本
正常返回樣本
JSON格式
{
"queues": [
{
"regionId": "cn-hangzhou",
"queueName": "dev_queue",
"workspaceId": "w-1234abcd",
"queueType": "instance",
"properties": "dev_queue",
"queueScope": "{\"arch\": \"x86\"}",
"maxResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"minResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"usedResource": "{\"cpu\": \"2\",\"memory\": \"2Gi\"}",
"queueStatus": "RUNNING",
"creator": "237109",
"allowActions": [
{
"actionArn": "acs:emr::workspaceId:action/create_queue",
"actionName": "view",
"displayName": "文件目錄瀏覽、檔案瀏覽",
"description": "Directory traversal and file browsing",
"dependencies": [
"view"
]
}
],
"environments": [
"production"
],
"paymentType": "PayAsYouGo",
"createTime": 1684115879955,
"preheat": true,
"queueCategory": "CPU",
"gpuSpec": [
"ecs.gn7i-c8g1.2xlarge"
],
"gpuMachineNum": 0,
"instanceId": "",
"description": "test queue"
}
],
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"nextToken": "1",
"maxResults": 20,
"totalCount": 200
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。