全部產品
Search
文件中心

OpenSearch:ModifyElasticPlan

更新時間:Jul 20, 2026

更新彈性計畫。

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求文法

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
  }
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情