擷取OpenSearch應用列表。
介面說明
支援按照 name、instanceId、type 進行過濾
支援按照應用的建立時間排序
支援分頁參數
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
opensearch:ListAppGroup |
list |
*AppGroup
|
無 | 無 |
請求文法
GET /v4/openapi/app-groups HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| pageNumber |
integer |
否 |
頁碼,預設 pageNumber=1 |
1 |
| pageSize |
integer |
否 |
每頁返回數目,預設 pageSize=10 |
10 |
| instanceId |
string |
否 |
執行個體 ID(精確匹配) |
ops-cn-xxxx |
| name |
string |
否 |
應用程式名稱 |
my_name |
| type |
string |
否 |
應用類型
|
standard |
| sortBy |
integer |
否 |
排列順序
預設 sortBy=0 |
0 |
| resourceGroupId |
string |
否 |
資源 id |
"110123123" |
| tags |
array<object> |
否 |
標籤列表 |
|
|
object |
否 |
|||
| key |
string |
否 |
標籤鍵 |
foo |
| value |
string |
否 |
標籤值 |
bar |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應體 |
{} |
|
| totalCount |
integer |
總條數 |
1 |
| requestId |
string |
請求 ID |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| result |
array<object> |
應用資訊 參考: AppGroup |
[] |
|
array<object> |
結果體 |
{} |
|
| created |
integer |
建立時間戳記 |
1575442875 |
| currentVersion |
string |
當前線上版本 |
110116134 |
| lockMode |
string |
鎖定狀態
|
Unlock |
| updated |
integer |
更新時間戳記 |
1578916076 |
| id |
string |
應用 ID |
110116134 |
| chargeType |
string |
付費類型
|
POSTPAY |
| hasPendingQuotaReviewTask |
integer |
是否配額審批中
|
0 |
| name |
string |
應用程式名稱 |
os_function_test_v1 |
| instanceId |
string |
執行個體 ID |
"xxx" |
| chargingWay |
integer |
計費類型
|
1 |
| type |
string |
應用類型
|
enhanced |
| status |
string |
應用狀態
|
normal |
| projectId |
string |
abtest project 名稱 |
"xxx" |
| switchedTime |
integer |
線上版本切換時間戳記 |
0 |
| commodityCode |
string |
商品 CODE |
opensearch |
| expireOn |
string |
到期時間 |
"xxx" |
| domain |
string |
domain |
"" |
| description |
string |
應用描述 |
"xxx" |
| produced |
integer |
是否生產完成
|
1 |
| lockedByExpiration |
integer |
執行個體到期自動鎖定 |
0 |
| quota |
object |
應用配額資訊 參考: Quota |
{} |
| spec |
string |
規格
|
opensearch.share.common |
| docSize |
integer |
儲存容量(單位:GB) |
1 |
| computeResource |
integer |
計算資源(單位:LCU) |
20 |
| tags |
array<object> |
應用標籤 |
|
|
object |
標籤。 |
||
| key |
string |
標籤鍵 |
foo |
| value |
string |
標籤值 |
bar |
| engineType |
string |
引擎類型 |
ha3 |
樣本
正常返回樣本
JSON格式
{
"totalCount": 1,
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
{
"created": 1575442875,
"currentVersion": "110116134",
"lockMode": "Unlock",
"updated": 1578916076,
"id": "110116134",
"chargeType": "POSTPAY",
"hasPendingQuotaReviewTask": 0,
"name": "os_function_test_v1",
"instanceId": "\"xxx\"",
"chargingWay": 1,
"type": "enhanced",
"status": "normal",
"projectId": "\"xxx\"",
"switchedTime": 0,
"commodityCode": "opensearch",
"expireOn": "\"xxx\"",
"domain": "\"\"",
"description": "\"xxx\"",
"produced": 1,
"lockedByExpiration": 0,
"quota": {
"spec": "opensearch.share.common",
"docSize": 1,
"computeResource": 20
},
"tags": [
{
"key": "foo",
"value": "bar"
}
],
"engineType": "ha3"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。