全部產品
Search
文件中心

OpenSearch:ModifyElasticPlan

更新時間:Oct 26, 2026

更新彈性計畫。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

opensearch:ModifyElasticPlan

update

*全部資源。

*

無 無

請求文法

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

路徑參數

名稱

類型

必填

描述

樣本值

appGroupIdentity

string

否

應用名稱。

my_app_group_name

planId

integer

否

彈性計畫 ID。

11

請求參數

名稱

類型

必填

描述

樣本值

dryRun

boolean

否

是否校驗入參資料合法性,預設 false。

取值:

  • true

  • false

false

body

object

否

請求參數。

description

string

否

描述。

Updated description

scheduleType

string

否

任務排程類型。

WEEK

customDates

array

否

星期清單。

string

否

星期清單。

TUESDAY

startHour

integer

否

彈性計畫開始時間。

9

endHour

integer

否

彈性計畫結束時間。

16

elasticLcu

integer

否

彈性增量 LCU。

100

enabled

boolean

否

計畫是否啟用。

true

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

requestId

string

Id of the request

D77D0DAF-790D-F5F5-A9C0-133738165014

httpCode

integer

HTTP 狀態碼。

200

code

string

異常狀態碼。

ElasticPlan.NotFound

message

string

異常資訊。

Elastic plan not found

result

object

返回結果。

id

integer

彈性計畫 ID。

286

appGroupId

integer

應用 ID。

120123456

name

string

彈性計畫名稱。

plan name

description

string

描述。

test

scheduleType

string

任務排程類型。

WEEK

customDates

array

星期清單。

string

星期清單。

WEDNESDAY

startHour

integer

彈性計畫開始時間。

6

endHour

integer

彈性計畫結束時間。

10

elasticLcu

integer

彈性增量 LCU(大於 >0,小於等於 min(baseLcu 8 0.5, 50000))。

100

enabled

boolean

計畫是否啟用。

true

created

integer

建立時間。

1588839490

updated

integer

更新時間。

1539158313

樣本

正常返回樣本

JSON格式

{
  "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
  "httpCode": 200,
  "code": "ElasticPlan.NotFound",
  "message": "Elastic plan not found",
  "result": {
    "id": 286,
    "appGroupId": 120123456,
    "name": "plan name",
    "description": "test",
    "scheduleType": "WEEK",
    "customDates": [
      "WEDNESDAY"
    ],
    "startHour": 6,
    "endHour": 10,
    "elasticLcu": 100,
    "enabled": true,
    "created": 1588839490,
    "updated": 1539158313
  }
}

錯誤碼

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

變更歷史

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