Membuat instans Redis Edisi Open-Source dengan arsitektur klasik, instans Redis Edisi Open-Source dengan arsitektur cloud-native, atau instans Tair optimasi memori berarsitektur klasik. Untuk membuat instans Tair berarsitektur cloud-native, gunakan API CreateTairInstance.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:CreateInstance |
create |
*DBInstance
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
|
cn-hangzhou |
| Token |
string |
No |
|
ETnLKlblzczshOTUbOCz**** |
| InstanceName |
string |
No |
|
apitest |
| Password |
string |
No |
|
Pass!123456 |
| Capacity |
integer |
No |
|
16384 |
| InstanceClass |
string |
No |
|
redis.master.small.default |
| ZoneId |
string |
No |
|
cn-hangzhou-h |
| SecondaryZoneId |
string |
No |
|
cn-hangzhou-g |
| ChargeType |
string |
No |
|
PostPaid |
| NodeType |
string |
No |
|
STAND_ALONE |
| NetworkType |
string |
No |
|
VPC |
| VpcId |
string |
No |
|
vpc-bp1nme44gek34slfc**** |
| VSwitchId |
string |
No |
|
vsw-bp1e7clcw529l773d**** |
| Period |
string |
No |
|
12 |
| BusinessInfo |
string |
No |
|
000000000 |
| CouponNo |
string |
No |
|
youhuiquan_promotion_option_id_for_blank |
| SrcDBInstanceId |
string |
No |
|
r-bp1zxszhcgatnx**** |
| BackupId |
string |
No |
|
111111111 |
| InstanceType |
string |
No |
|
Redis |
| EngineVersion |
string |
No |
Valid values:
|
5.0 |
| PrivateIpAddress |
string |
No |
|
172.16.0.*** |
| AutoUseCoupon |
string |
No |
|
false |
| AutoRenew |
string |
No |
|
true |
| AutoRenewPeriod |
string |
No |
|
3 |
| ResourceGroupId |
string |
No |
|
rg-resourcegroupid1 |
| RestoreTime |
string |
No |
|
2019-06-19T16:00:00Z |
| DedicatedHostGroupId |
string |
No |
|
dhg-uv4fnk6r7zff**** |
| ShardCount |
integer |
No |
|
4 |
| ReplicaCount |
integer |
No |
|
2 |
| SlaveReplicaCount |
integer |
No |
|
2 |
| ReadOnlyCount |
integer |
No |
|
2 |
| SlaveReadOnlyCount |
integer |
No |
|
2 |
| GlobalInstanceId |
string |
No |
|
gr-bp14rkqrhac**** |
| GlobalInstance |
boolean |
No |
|
false |
| Port |
string |
No |
|
6379 |
| DryRun |
boolean |
No |
|
false |
| GlobalSecurityGroupIds |
string |
No |
|
g-zsldxfiwjmti0kcm**** |
| Appendonly |
string |
No |
Valid values:
|
yes |
| ConnectionStringPrefix |
string |
No |
|
r-bp1zxszhcgatnx**** |
| ParamGroupId |
string |
No |
|
rpg-test** |
| Tag |
array<object> |
No |
|
|
|
object |
No |
|
||
| Key |
string |
No |
|
testkey |
| Value |
string |
No |
|
testvalue |
| ClusterBackupId |
string |
No |
|
cb-hyxdof5x9kqb**** |
| RecoverConfigMode |
string |
No |
|
whitelist,config,account |
| InstanceEndpointType |
string |
No |
|
AzIndependentEndpoint |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|
||
| VpcId |
string |
|
vpc-bp1nme44gek34slfc**** |
| QPS |
integer |
|
100000 |
| Capacity |
integer |
|
16384 |
| ConnectionDomain |
string |
|
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| ChargeType |
string |
|
PostPaid |
| NetworkType |
string |
|
VPC |
| InstanceId |
string |
|
r-bp1zxszhcgatnx**** |
| Port |
integer |
|
6379 |
| Config |
string |
|
{\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"zset-max-ziplist-entries\":128,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64} |
| RegionId |
string |
|
cn-hongkong |
| EndTime |
string |
|
2019-01-18T16:00:00Z |
| VSwitchId |
string |
|
vsw-bp1e7clcw529l773d**** |
| RequestId |
string |
|
5DEA3CC9-F81D-4387-8E97-CEA40F09**** |
| NodeType |
string |
|
MASTER_SLAVE |
| Connections |
integer |
|
10000 |
| Bandwidth |
integer |
|
32 |
| InstanceName |
string |
|
apitest |
| ZoneId |
string |
|
cn-hangzhou-b |
| InstanceStatus |
string |
|
Creating |
| PrivateIpAddr |
string |
|
172.16.0.10 |
| UserName |
string |
|
r-bp1zxszhcgatnx**** |
| OrderId |
integer |
|
2084452111111 |
Contoh
Respons sukses
JSONformat
{
"VpcId": "vpc-bp1nme44gek34slfc****",
"QPS": 100000,
"Capacity": 16384,
"ConnectionDomain": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"ChargeType": "PostPaid",
"NetworkType": "VPC",
"InstanceId": "r-bp1zxszhcgatnx****",
"Port": 6379,
"Config": "{\\\"EvictionPolicy\\\":\\\"volatile-lru\\\",\\\"hash-max-ziplist-entries\\\":512,\\\"zset-max-ziplist-entries\\\":128,\\\"zset-max-ziplist-value\\\":64,\\\"set-max-intset-entries\\\":512,\\\"hash-max-ziplist-value\\\":64}",
"RegionId": "cn-hongkong",
"EndTime": "2019-01-18T16:00:00Z",
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"RequestId": "5DEA3CC9-F81D-4387-8E97-CEA40F09****",
"NodeType": "MASTER_SLAVE",
"Connections": 10000,
"Bandwidth": 32,
"InstanceName": "apitest",
"ZoneId": "cn-hangzhou-b",
"InstanceStatus": "Creating",
"PrivateIpAddr": "172.16.0.10",
"UserName": "r-bp1zxszhcgatnx****",
"OrderId": 2084452111111
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ZoneIdNotFound | Specify iz not support switch network. | |
| 400 | InvalidShardInfo.Format | Shard total number is out of range. | |
| 400 | InvalidInstancelevel | Specified Instance level dose not match gdc other member instance level. | |
| 400 | InvalidBackupLogStatus | Backup logs are not enabled for the specified source instance. | |
| 400 | InvalidStatus | Specified instance status is Modifying. | |
| 400 | SecurityRisk.AuthVerification | we have detected a risk with your default payment method. An email and notification has been sent to you. Please re-submit your order before after verificaiton. | |
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidToken.Malformed | The Specified parameter Token is not valid. | |
| 400 | InvalidInstanceName.Malformed | The Specified parameter InstanceName is not valid. | |
| 400 | InvalidPassword.Malformed | The Specified parameter Password is not valid. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | QuotaExceed.AfterpayInstance | Living afterpay instances quota exceeded. | |
| 400 | InvalidCapacity.NotFound | The Capacity provided does not exist in our records. | |
| 400 | ResourceNotAvailable | Resource you requested is not available for finance user. | |
| 400 | PaymentMethodNotFound | No payment method has been registered on the account. | |
| 400 | IdempotentParameterMismatch | Request uses a client token in a previous request but is not identical to that request. | |
| 400 | QuotaNotEnough | Quota not enough in this zone. | |
| 400 | QuotaExceed | Living afterpay instances quota exceed. | |
| 400 | VpcServiceError | Invoke vpc service failed. | |
| 400 | IzNotSupportVpcError | Specify iz not support vpc. | |
| 400 | InvalidvSwitchId | The vpc does not cover the vswitch. | |
| 400 | InvalidIzNo.NotSupported | The Specified vpc zone not supported. | |
| 400 | InvalidAccountPassword.Format | Specified account password is not valid. | |
| 400 | InstanceClass.NotMatch | Current instance class and instance type is not match. | |
| 400 | InvalidVPCId.NotFound | Specified virtual vpc is not found. | |
| 400 | AccountMoneyValidateError | Account money validate error. | |
| 400 | RequestTokenConflict | Specified request token conflict. | |
| 400 | InvalidIPNotInSubnet | Error ip not in subnet. | |
| 400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | |
| 400 | Zone.Closed | The specified zone is closed. | |
| 400 | VSwithNotBelongToNotVpcFault | The vSwitch does not belong to current vpc. | |
| 400 | PayIllegalAgreement | Pay mayi with holding agreement illegal. | |
| 400 | IllegalParamError | validateSaleConditionWithSubArticle failed. | |
| 400 | CASH_BOOK_INSUFFICIENT | No payment method is specified for your account. We recommend that you add a payment method or maitain a minimum prepayment balance of INR 1000. | |
| 400 | InvalidRegion.Format | Specified Region is not valid. | |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | |
| 400 | ResourceGroupNotExist | The Specified ResourceGroupId does not exist. | |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. | |
| 403 | AuthorizationFailure | The request processing has failed due to authorization failure. | |
| 403 | TokenServiceError | The specified token is duplicated, please change it. | |
| 404 | InvalidCapacity.NotFound | The Capacity provided does not exist in our records. | |
| 404 | InvalidvSwitchId | The Specified vSwitchId zone not supported. | |
| 404 | InvalidVpcIdOrVswitchId.NotSupported | The Specified vpcId or vSwitchId not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.