Zamana dayalı esnek bir kural oluşturur.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:CreateElasticRule |
create |
*Tüm kaynaklar.
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DbInstanceId |
string |
Yes |
Örnek kimliği. |
selectdb-cn-7213cjv**** |
| ClusterId |
string |
Yes |
Küme kimliği. |
selectdb-xxxb9f2w-be |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
| ElasticRuleStartTime |
string |
Yes |
Zamana dayalı esnek kuralın başlangıç saati. Saat HH:mm biçimindedir. |
00:00 |
| ExecutionPeriod |
string |
Yes |
Çalıştırma dönemi. Valid values:
|
Day |
| ClusterClass |
string |
Yes |
Kümenin hedef işlem kaynağı kuralı. |
selectdb.2xlarge |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| RequestId |
string |
İstek kimliği. |
F8900A96-67F7-5274-A41B-7722E1ECF8C9 |
| Data |
object |
Döndürülen sonuç. |
|
| DbInstanceId |
string |
Örnek kimliği. |
selectdb-cn-7213cjv**** |
| ClusterId |
string |
Küme kimliği. |
selectdb-xxxb9f2w-be |
| RuleId |
integer |
Kural kimliği. |
5465 |
| ExecutionPeriod |
string |
Çalıştırma dönemi. Valid values:
|
Day |
| ElasticRuleStartTime |
string |
Zamana dayalı esnek kuralın başlangıç saati. Saat HH:mm biçimindedir. |
00:00 |
| ClusterClass |
string |
Kümenin hedef işlem kaynağı kuralı. |
selectdb.2xlarge |
Examples
Success response
JSON format
{
"RequestId": "F8900A96-67F7-5274-A41B-7722E1ECF8C9",
"Data": {
"DbInstanceId": "selectdb-cn-7213cjv****\n",
"ClusterId": "selectdb-xxxb9f2w-be",
"RuleId": 5465,
"ExecutionPeriod": "Day",
"ElasticRuleStartTime": "00:00",
"ClusterClass": "selectdb.2xlarge"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBInstanceId.Malformed | The specified parameter "DBInstanceId" is not valid. | DBInstanceId parametresi geçersiz. |
| 400 | InvalidClusterId.Malformed | The specified parameter "ClusterId" is not valid. | ClusterId parametresi geçersiz. |
| 400 | InvalidRegionId.Malformed | The specified parameter "RegionId" is not valid. | RegionId parametresi geçersiz. |
| 400 | InvalidElasticRuleStartTime.Malformed | The specified parameter "ElasticRuleStartTime" is not valid. | ElasticRuleStartTime parametresi geçersiz. |
| 400 | InvalidExecutionPeriod.Malformed | The specified parameter "ExecutionPeriod" is not valid. | ExecutionPeriod parametresi geçersiz. |
| 400 | InvalidClusterClass.Malformed | The specified parameter "ClusterClass" is not valid. | ClusterClass parametresi geçersiz. |
| 400 | InvalidChargeType.NotSupport | The specified parameter "ChargeType" does not meet the requirements. | Mevcut faturalandırma yöntemi bu işlemi desteklemez. |
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | Dosya boyutu sistem sınırını aştığı için belge dönüştürme işlemi başarısız oldu. |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | RAM kullanıcısı gerekli izinlere sahip değildir. Önce gerekli izinleri verin. |
| 400 | InvalidDBName | The specified database name is not allowed. | Veritabanı adı gereksinimleri karşılamıyor. Veritabanı adının doğru olup olmadığını kontrol edin. |
| 400 | CreateOrderFailed | Failed to create order. | Sipariş oluşturulamadı. |
| 400 | InvalidInstanceType | The operator is not permitted due to the instance type. | Örnek türü nedeniyle bu işleme izin verilmiyor. |
| 403 | OperationDenied.GetResourceLockFailed | the operator is not permitted due to get resource lock failed. | Sistem kaynak kilidini alamadığından istek reddedildi. |
| 403 | OperationDenied.AdjacentRulesClusterIsTheSame | the operator is not permitted due to adjacent rules cluster class is the same. | Ardışık zamana dayalı ölçeklendirme kuralları aynı hedef işlem kaynaklarına sahip olduğundan bu işleme izin verilmez. |
| 403 | OperationDenied.AdjacentRulesIntervalLessThanOneHour | the operator is not permitted due to adjacent rules interval less than one hour. | Ardışık zamana dayalı ölçeklendirme kuralları arasındaki zaman aralığı 1 saatten az olduğundan bu işleme izin verilmez. |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | Küme çalışır durumda değilken istenen işlem gerçekleştirilemez. |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | Mevcut örnek durumu bu işlemi desteklemez. |
| 403 | InstanceEngineType.NotSupport | The instance engine and type does not support operations. | Örnek motoru ve türü bu işlemi desteklemediği için işlem başarısız oldu. |
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | Belirtilen örnek durumu bu işlemi desteklemiyor. |
| 403 | MoneyLessThan100 | The Account Monet less Than 100. | Mevcut Alibaba Cloud hesap bakiyesi 100'den az. Hesabınıza bakiye yükleyin. |
| 403 | OperationDenied.DBNameAndAccountPrivilegeCount | The operation is not permitted due to count of database or account privilege. | Veritabanı sayısı ile izin sayısı eşleşmediğinden işlem başarısız oldu. |
| 403 | InsufficientResourceCapacity | The resource is out of usage. | Kaynaklar yetersiz. Daha sonra tekrar deneyin. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | Küme mevcut değil. |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | Mevcut örnek kilitli olduğu için işlem başarısız oldu. |
| 404 | IncorrectVswitchId | The specified parameter VSwitchId is not valid. | vSwitch parametresi geçersiz. |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstance.NotFound | The specified instance is not found. | Belirtilen örnek bulunamadı. Örnek kimliğinin doğru olup olmadığını kontrol edin. |
| 404 | InvalidDBInstanceClass.NotFound | The specified instance classic does not exist. | Seçilen yapılandırma veya örnek türü mevcut değil ya da artık kullanılamıyor. Farklı bir tane seçin. |
| 404 | InvalidRegionId.NotFound | The provided RegionId does not exist in our records. | Belirtilen bölge ve kullanılabilirlik bölgesi mevcut olmadığı için işlem başarısız oldu. |
| 404 | QueryPrice.Failed | The inquiry failed. Contact Alibaba Cloud customer service representatives. | Fiyat sorgulaması başarısız oldu. Müşteri hizmetleri ile iletişime geçin. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.