全部產品
Search
文件中心

OpenSearch:CreateElasticPlan

更新時間:Jul 20, 2026

建立彈性計畫。

調試

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

調試

授權資訊

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

請求文法

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

路徑參數

名稱

類型

必填

描述

樣本值

appGroupIdentity

string

應用程式名稱/應用程式 ID/執行個體 ID。

my_app

請求參數

名稱

類型

必填

描述

樣本值

dryRun

boolean

是否進行建立前驗證。true 表示驗證,false 表示不驗證。

true

body

object

請求主體。

name

string

計畫名稱。

elastic_plan_name

description

string

描述。

my elastic plan

scheduleType

string

工作排程類型。

WEEK

customDates

array

星期清單。

string

星期清單。

MONDAY-SUNDAY

startHour

integer

彈性計畫開始時間。

0

endHour

integer

彈性計畫結束時間。

13

elasticLcu

integer

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

100

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

requestId

string

Id of the request

0FFF39C5-ED93-5234-806D-0824B967E6A3

httpCode

integer

HTTP 狀態碼。

200

code

string

錯誤碼。

ElasticPlan.NotFound

message

string

錯誤訊息。

Elastic plan not found

result

object

傳回結果。

id

integer

計畫 ID。

89047

name

string

計畫名稱。

name

description

string

描述。

desc

scheduleType

string

工作排程類型。

WEEK

customDates

array

星期清單。

string

星期清單。

"MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"

startHour

integer

計畫開始時間。

9

endHour

integer

計畫結束時間。

15

elasticLcu

integer

彈性 LCU。

100

appGroupId

string

應用程式群組 ID。

100298370

enabled

boolean

是否啟用。 取值:

true:啟用。

false:停用。

True

created

integer

建立時間。

1588836130

updated

integer

更新時間。

1588839490

樣本

正常返回樣本

JSON格式

{
  "requestId": "0FFF39C5-ED93-5234-806D-0824B967E6A3",
  "httpCode": 200,
  "code": "ElasticPlan.NotFound",
  "message": "Elastic plan not found",
  "result": {
    "id": 89047,
    "name": "name",
    "description": "desc",
    "scheduleType": "WEEK",
    "customDates": [
      "\"MONDAY\", \"TUESDAY\", \"WEDNESDAY\", \"THURSDAY\", \"FRIDAY\""
    ],
    "startHour": 9,
    "endHour": 15,
    "elasticLcu": 100,
    "appGroupId": "100298370",
    "enabled": true,
    "created": 1588836130,
    "updated": 1588839490
  }
}

錯誤碼

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

變更歷史

更多資訊,參考變更詳情