全部產品
Search
文件中心

OpenSearch:ListAppGroups

更新時間:Oct 20, 2026

取得 OpenSearch 應用清單。

介面說明

  • 支援按照 name、instanceId、type 進行篩選

  • 支援按照應用的建立時間排序

  • 支援分頁參數。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

opensearch:ListAppGroup

list

*AppGroup

acs:opensearch:{#regionId}:{#accountId}:app-groups/*

無 無

請求文法

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 標準版

  • enhanced 新進階版。

standard

sortBy

integer

否

排列順序

  • 0:按建立時間降序排列

  • 1:按修改時間降序排列

預設 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

object

應用資訊。

參考: AppGroup

[]

beaconAppCreated

integer

是否啟用烽火台業務:0 表示未啟用,1 表示已啟用。

0

chargeType

string

付費類型:POSTPAY 表示按量計費,PREPAY 表示包年包月。

POSTPAY

chargingWay

integer

計費類型:1 表示按運算資源計費,2 表示按 QPS 計費。

1

commodityCode

string

商品編碼。

opensearch

components

array<object>

應用執行個體的販售元件參數。

object

code

string

販售元件編碼。

appname

value

string

販售元件取值。

zaojiu_test_speaker

created

integer

應用建立時間戳記。

1575442875

currentVersion

string

目前線上版本的 ID。

110116134

description

string

應用描述。

測試! 空格等字元

domain

string

應用的產業類型。

domain_1

domainName

string

應用的網域名稱。

foo-xxxx

engineType

string

搜尋引擎類型。

ha3

hasPendingQuotaReviewTask

integer

配額審批狀態:0 表示正常,1 表示審批中。

0

id

string

應用 ID。

110116134

inDebt

boolean

是否欠費。

instanceId

string

執行個體 ID。

ops-cn-2y91h10s6403

lockMode

string

鎖定狀態:Unlock 表示正常,LockByExpiration 表示執行個體過期自動鎖定,ManualLock 表示手動鎖定。

Unlock

name

string

應用名稱。

os_function_test_v1

produced

integer

是否生產完成:0 表示生產中,1 表示生產完成。

1

quota

object

應用配額資訊。

{}

computeResource

integer

運算資源,單位為 LCU。

20

docSize

integer

儲存容量,單位為 GB。

1

spec

string

應用規格。

opensearch.share.common

resourceGroupId

string

應用所屬的資源群組 ID。

rg-1

status

string

應用狀態:producing 為生產中,review_pending 為生產審批中,config_pending 為待設定,normal 為正常,frozen 為已凍結。

normal

switchedTime

integer

線上版本切換時間戳記。

0

tags

array<object>

應用標籤清單。

object

key

string

標籤鍵。

foo

value

string

標籤值。

bar

type

string

應用類型:standard 為標準版,enhanced 為新進階版。

enhanced

updated

integer

應用更新時間戳記。

1578916076

versions

array

應用版本集合。

string

應用版本 ID。

100302903

zoneId

string

應用所屬可用區 ID。

nantong

elasticLcu

integer

彈性運算資源,單位為 LCU。

0

樣本

正常返回樣本

JSON格式

{
  "totalCount": 1,
  "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  "result": {
    "beaconAppCreated": 0,
    "chargeType": "POSTPAY",
    "chargingWay": 1,
    "commodityCode": "opensearch",
    "components": [
      {
        "code": "appname",
        "value": "zaojiu_test_speaker"
      }
    ],
    "created": 1575442875,
    "currentVersion": "110116134",
    "description": "\"xxx\"",
    "domain": "\"\"",
    "domainName": "foo-xxxx",
    "engineType": "ha3",
    "hasPendingQuotaReviewTask": 0,
    "id": "110116134",
    "inDebt": false,
    "instanceId": "\"xxx\"",
    "lockMode": "Unlock",
    "name": "os_function_test_v1",
    "produced": 1,
    "quota": {
      "computeResource": 20,
      "docSize": 1,
      "spec": "opensearch.share.common"
    },
    "resourceGroupId": "rg-1",
    "status": "normal",
    "switchedTime": 0,
    "tags": [
      {
        "key": "foo",
        "value": "bar"
      }
    ],
    "type": "enhanced",
    "updated": 1578916076,
    "versions": [
      "100302903"
    ],
    "zoneId": "nantong",
    "elasticLcu": 0
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。