修改一個彈性保障服務的部分資訊,包含名稱、描述、容量(暫時只支援縮容)。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:ModifyElasticityAssurance |
update |
*ElasticityAssurance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
彈性保障服務所屬地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| PrivatePoolOptions.Id |
string |
是 |
彈性保障服務 ID。 |
eap-bp67acfmxazb4**** |
| PrivatePoolOptions.Name |
string |
否 |
彈性保障服務的名稱。長度為 2~128 個英文或中文字元。必須以大小寫字母或中文開頭,不能以 http://和 https://開頭。可以包含數字、半形冒號(:)、底線(_)或者連字號(-)。 |
eapTestName |
| Description |
string |
否 |
彈性保障服務的描述資訊。長度為 2~256 個英文或中文字元,不能以 |
This is description. |
| InstanceAmount |
integer |
否 |
彈性保障服務需要預留的執行個體總數量。取值範圍:已使用的執行個體數量~1000。該參數不能與其他參數同時修改。 |
10 |
| ClientToken |
string |
否 |
保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證等冪性。 |
123e4567-e89b-12d3-a456-426655440000 |
| RecurrenceRules |
array<object> |
否 |
彈性保障-分時保障重複規則列表。 |
|
|
object |
否 |
彈性保障-分時保障重複規則。 說明
修改後的重複規則將於次日生效。 |
||
| RecurrenceType |
string |
否 |
重複規則的策略類型。取值範圍:
說明
必須同時指定 |
Daily |
| RecurrenceValue |
string |
否 |
重複規則執行數值。
說明
必須同時指定 |
5 |
| StartHour |
integer |
否 |
分時保障生效時間,取值必須為整點。 說明
同時指定 |
4 |
| EndHour |
integer |
否 |
分時保障結束時間,取值必須為整點。 |
10 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
8455DD10-84F8-43C9-8365-5F448EB169B6 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidRecurrenceRules.CountLimitExceeded | The count of RecurrenceRules exceeds the limit. | 參數RecurrenceRules的個數超過限定值。 |
| 400 | InvalidRecurrenceRules.Unsupported | The specified parameter RecurrenceRules does not support for this resource package. | 該資源套件不支援指定參數RecurrenceRules。 |
| 400 | InvalidRecurrenceRulesStartHourEndHour.TooShort | The recurrence hour between RecurrenceRules.StartHour and RecurrenceRules.EndHour is too short. | 參數RecurrenceRules.StartHour和RecurrenceRules.EndHour之間的生效時間小於最小要求。 |
| 400 | InvalidParameter.RecurrenceRulesStartHourEndHour | The specified parameter RecurrenceRules.StartHour or RecurrenceRules.EndHour is invalid. | 為RecurrenceRules指定的參數RecurrenceRules.StartHour或RecurrenceRules.EndHour不符合規範。 |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueMonthly | The specified parameter RecurrenceRules.RecurrenceValue for Monthly is invalid. | 為RecurrenceRules.RecurrenceType=Monthly指定的參數RecurrenceRules.RecurrenceValue不符合規範。 |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueWeekly | The specified parameter RecurrenceRules.RecurrenceValue for Weekly is invalid. | 為RecurrenceRules.RecurrenceType=Weekly指定的參數RecurrenceRules.RecurrenceValue不符合規範。 |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueDaily | The specified parameter RecurrenceRules.RecurrenceValue for Daily is invalid. | 為RecurrenceRules.RecurrenceType=Daily指定的參數RecurrenceRules.RecurrenceValue不符合規範。 |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceType | The specified parameter RecurrenceRules.RecurrenceType is invalid. | 指定的參數RecurrenceRules.RecurrenceType不符合規範。 |
| 400 | InvalidInstanceAmount.ValueNotSupported | The specified parameter InstanceAmount is not valid. | |
| 400 | InvalidDescription.ValueNotSupported | The specified Description is invalid. | |
| 400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | |
| 400 | InvalidParameter.PrivatePoolOptions.Name | The parameter PrivatePoolOptions.Name is invalid. | 指定的參數PrivatePoolOptions.Name不符合要求。 |
| 400 | InvalidParameter.ClientToken | The parameter ClientToken is invalid. | 指定的參數ClientToken不符合要求。 |
| 400 | InvalidParameter.Description | The parameter Description is invalid. | 指定的參數Description不符合要求。 |
| 401 | InvalidUser.Unauthorized | The user is not authorized. | 您當前使用的帳號無許可權。 |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidOperation.ModifyTotalActiveTimeUnsupported | Not support to modify the total active time of resource package. | 不支援修改資源套件的總生效時間。 |
| 403 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | 參數中指定的私人池狀態不支援當前操作 |
| 403 | OperationDenied.NoStock | The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. | 庫存不足。 |
| 403 | InvalidPrivatePoolOptionsName.ValueNotSupported | The specified PrivatePoolOptions.Name is invalid. | |
| 403 | InvalidPlatform.ValueNotSupported | The specified Platform is invalid. | |
| 403 | OperationDenied.PlatformNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.EndTimeTypeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.StartTimeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.InstanceAmountNotSupported | The specified private pool does not support this operation. | |
| 403 | InvalidInstanceAmount.ValueNotSupported | The specified InstanceAmount is invalid. | |
| 403 | InvalidPrivatePoolOptions.Id | The specified private pool does not support this operation. | |
| 403 | InvalidInstanceAmount.LessThanUsedAmount | The specified parameter InstanceAmount is less than UsedAmount. | 指定的參數InstanceAmount小於已使用容量。 |
| 403 | InvalidOperation.InstanceAmountAndOtherAttributesUnsupported | Modify InstanceAmount and other attributes simultaneously is not supported. | 不支援InstanceAmount和其他屬性同時修改。 |
| 403 | QuotaExceed.ElasticityAssuranceCapacity | ElasticityAssurance Capacity quota exceeded. | 彈性保障服務容量配額超出限制。 |
| 404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。