全部產品
Search
文件中心

OpenSearch:ModifyAppGroup

更新時間:Oct 21, 2026

修改 OpenSearch 應用程式屬性或設定應用程式線上版本。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

opensearch:ModifyAppGroup

update

*AppGroup

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

無 無

請求文法

PUT /v4/openapi/app-groups/{appGroupIdentity} HTTP/1.1

路徑參數

名稱

類型

必填

描述

樣本值

appGroupIdentity

string

是

應用程式名稱。

my_app_group_name

請求參數

名稱

類型

必填

描述

樣本值

body

object

否

請求參數。

description

string

否

描述。

"執行個體描述"

currentVersion

string

否

線上版本。

1223232

domain

string

否

行業類型:

  • general:通用行業。

  • ecommerce:電商行業。

  • education:教育行業。

  • esports:遊戲行業。

  • community:內容社群。

"ecommerce"

resourceGroupId

string

否

執行個體所屬的資源群組 ID。

rg-****

dryRun

boolean

否

是否進行升級前校驗。true 表示校驗,false 表示不校驗。

true

請求主體

欄位類型是否必要範例值描述
chargingWayInteger否1計費模型
- 1 運算資源
- 2 qps






descriptionString否"my_first_app"應用程式描述
currentVersionInteger否12345678應用程式版本 ID

註:優先執行「設定應用程式線上版本」,即若所有欄位都存在,則預設 currentVersion 有效。

返回參數

名稱

類型

描述

樣本值

object

回應主體。

{}

requestId

string

請求 ID。

D77D0DAF-790D-F5F5-A9C0-133738165014

result

object

回傳資料。

{}

beaconAppCreated

integer

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

0

chargeType

string

付費類型

  • POSTPAY 後付費(按量付費)

  • PREPAY 預付費(包年包月)

POSTPAY

chargingWay

integer

計費類型

  • 1:運算資源

  • 2:qps

1

commodityCode

string

商品 CODE。

opensearch

created

integer

建立時間戳記。

159013954

currentVersion

string

目前線上版本。

100302903

description

string

應用程式描述。

1

domain

string

行業類型

  • GENERAL 通用

  • ECOMMERCE 電商

  • IT_CONTENT IT 內容

GENERAL

domainName

string

應用程式的網域名稱。

foo-xxxx

engineType

string

引擎類型。

ha3

hasPendingQuotaReviewTask

integer

是否配額審核中

  • 0:正常

  • 1:配額審核中

0

id

string

應用程式 ID。

100302881

inDebt

boolean

是否欠費。

instanceId

string

執行個體 ID。

10030288

lockMode

string

鎖定狀態。

  • Unlock 正常

  • LockByExpiration 執行個體過期自動鎖定

  • ManualLock 手動觸發鎖定

Unlock

name

string

應用程式名稱。

lsh_test_1

produced

integer

是否生產完成

  • 0:生產中

  • 1:生產完成

1

quota

object

應用程式配額資訊。

{}

computeResource

integer

運算資源(單位:LCU)

20

docSize

integer

儲存容量(單位:GB)

1

spec

string

規格。

  • opensearch.share.junior 入門型

  • opensearch.share.common 共享通用型

  • opensearch.share.compute 共享運算型

  • opensearch.share.storage 共享儲存型

  • opensearch.private.common 獨享通用型

  • opensearch.private.compute 獨享運算型

  • opensearch.private.storage 獨享儲存型

opensearch.share.common

resourceGroupId

string

執行個體所屬的資源群組 ID。

rg-acfmoiyerh6nzly

status

string

應用程式狀態

  • producing 生產中

  • review_pending 生產審核中

  • config_pending 待設定

  • normal 正常

  • frozen 已凍結

normal

switchedTime

integer

線上版本切換時間戳記。

1590486386

type

string

應用程式類型

  • standard 標準版

  • advance 舊進階版(新應用程式不支援此類型)

  • enhanced 新進階版

enhanced

updated

integer

更新時間戳記。

1590978265

zoneId

string

內部網路可用區

  • center: 內部網路中心區

  • nantong:內部網路中心南通區 外部網路可用區:

  • vpc: vpc 區域

  • classic: oxs 區域

nantong

components

array<object>

應用程式執行個體的銷售元件參數。

object

code

string

銷售元件編碼。

appname

value

string

銷售元件取值。

zaojiu_test_speaker

tags

array<object>

應用程式標籤。

object

標籤。

key

string

標籤鍵。

foo

value

string

標籤值。

bar

versions

array

版本集合。

string

應用程式版本 ID。

100302903

樣本

正常返回樣本

JSON格式

{
  "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
  "result": {
    "beaconAppCreated": 0,
    "chargeType": "POSTPAY",
    "chargingWay": 1,
    "commodityCode": "opensearch",
    "created": 159013954,
    "currentVersion": "100302903",
    "description": "1",
    "domain": "GENERAL",
    "domainName": "foo-xxxx",
    "engineType": "ha3",
    "hasPendingQuotaReviewTask": 0,
    "id": "100302881",
    "inDebt": false,
    "instanceId": "10030288",
    "lockMode": "Unlock",
    "name": "lsh_test_1",
    "produced": 1,
    "quota": {
      "computeResource": 20,
      "docSize": 1,
      "spec": "opensearch.share.common"
    },
    "resourceGroupId": "rg-acfmoiyerh6nzly",
    "status": "normal",
    "switchedTime": 1590486386,
    "type": "enhanced",
    "updated": 1590978265,
    "zoneId": "nantong",
    "components": [
      {
        "code": "appname",
        "value": "zaojiu_test_speaker"
      }
    ],
    "tags": [
      {
        "key": "foo",
        "value": "bar"
      }
    ],
    "versions": [
      "100302903"
    ]
  }
}

錯誤碼

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

變更歷史

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