リージョン間でデータを新しいインスタンスに復元します。
操作説明
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
rds:CreateDdrInstance |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
宛先インスタンスのリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| Engine |
string |
必須 |
宛先インスタンスのデータベースエンジン。 有効値:
|
MySQL |
| EngineVersion |
string |
必須 |
宛先インスタンスのメジャーエンジンバージョン。 このパラメーターの値は、Engine の値によって異なります。
|
5.6 |
| DBInstanceClass |
string |
任意 |
宛先インスタンスのインスタンスタイプ。 詳細については、「プライマリ ApsaraDB RDS インスタンスタイプ」をご参照ください。 |
rds.mysql.s1.small |
| DBInstanceStorage |
integer |
任意 |
宛先インスタンスのストレージ容量。 有効値:5~2000。 単位:GB。 5 GB 単位でストレージ容量を増やすことができます。 詳細については、「プライマリインスタンスタイプ」をご参照ください。 |
20 |
| SystemDBCharset |
string |
任意 |
宛先インスタンスの文字セット。 有効値:
|
uft8 |
| DBInstanceNetType |
string |
必須 |
宛先インスタンスのネットワーク接続タイプ。 有効値:
|
Intranet |
| DBInstanceDescription |
string |
任意 |
インスタンス名。 名前は 2~256 文字である必要があります。 値には、文字、数字、アンダースコア (_)、ハイフン (-) を使用でき、先頭は文字である必要があります。 説明
値の先頭に http:// または https:// を使用することはできません。 |
testdb |
| SecurityIPList |
string |
必須 |
宛先インスタンスの IP アドレスホワイトリスト。 IP アドレスホワイトリストに複数のエントリを追加する場合は、エントリをコンマ (,) で区切ります。 各エントリは一意である必要があります。 最大 1,000 個のエントリを追加できます。 詳細については、「ApsaraDB RDS for MySQL インスタンスの IP アドレスホワイトリストの設定」をご参照ください。 IP アドレスホワイトリストのエントリは、次のいずれかの形式である必要があります。
|
127.0.0.1 |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、トークンが異なるリクエスト間で一意であることを確認する必要があります。 トークンには ASCII 文字のみを含めることができ、長さは 64 文字を超えることはできません。 |
ETnLKlblzczshOTUbOCz**** |
| PayType |
string |
必須 |
インスタンスの課金方法。 有効値:
|
Prepaid |
| ZoneId |
string |
任意 |
宛先インスタンスのゾーン ID。 宛先インスタンスが複数のゾーンにデプロイされている場合は、ゾーンの ID をコロン (:) で区切ります。 説明
VPC と vSwitch を指定する場合は、このパラメーターを指定して vSwitch のゾーンを識別する必要があります。 |
cn-hangzhou-b |
| InstanceNetworkType |
string |
任意 |
インスタンスのネットワークタイプ。 有効値:
デフォルト値:Classic。 説明
このパラメーターを VPC に設定する場合は、VpcId と VSwitchId も指定する必要があります。 |
Classic |
| ConnectionMode |
string |
任意 |
宛先インスタンスの接続モード。 有効値:
デフォルト値:Standard。 |
Standard |
| VPCId |
string |
任意 |
宛先インスタンスの VPC ID。 このパラメーターは、InstanceNetworkType パラメーターを VPC に設定した場合にのみ使用できます。 説明
このパラメーターを指定する場合は、ZoneId パラメーターも指定する必要があります。 |
vpc-**** |
| VSwitchId |
string |
任意 |
宛先インスタンスの vSwitch ID。 複数の vSwitch を指定する場合は、vSwitch の ID をコンマ (,) で区切ります。 このパラメーターは、InstanceNetworkType パラメーターを VPC に設定した場合にのみ使用できます。 説明
このパラメーターを指定する場合は、ZoneId パラメーターも指定する必要があります。 |
vsw-**** |
| PrivateIpAddress |
string |
任意 |
宛先インスタンスのプライベート IP アドレス。 プライベート IP アドレスは、指定された vSwitch でサポートされている CIDR ブロック内にある必要があります。 システムは、VPCId および VSwitchId パラメーターの値に基づいて内部 IP アドレスを自動的に割り当てます。 |
172.XX.XX.69 |
| UsedTime |
string |
任意 |
インスタンスのサブスクリプション期間。
説明
PayType を Prepaid に設定した場合は、UsedTime を指定する必要があります。 |
2 |
| Period |
string |
任意 |
宛先インスタンスのサブスクリプション期間を測定するために使用される単位。 有効値:
説明
PayType を Prepaid に設定した場合は、UsedTime を指定する必要があります。 |
Year |
| ResourceGroupId |
string |
任意 |
リソースグループ ID。 |
rg-acfmy**** |
| RestoreType |
string |
必須 |
使用する復元方法。 有効値:
|
BackupSet |
| BackupSetId |
string |
任意 |
復元に使用するバックアップセット ID。 DescribeCrossRegionBackups 操作を呼び出して、バックアップセット ID を照会できます。 説明
このパラメーターは、RestoreType パラメーターを BackupSet に設定した場合に必要です。 |
14**** |
| BackupSetRegion |
string |
任意 |
バックアップセットが配置されているリージョン。 |
cn-beijing |
| RestoreTime |
string |
任意 |
データを復元する特定時点。 指定する特定時点は、現在の時刻より前である必要があります。 時刻は、yyyy-MM-ddTHH:mm:ssZ 形式の ISO 8601 規格で指定します。 時刻は協定世界時 (UTC) である必要があります。 説明
RestoreType が BackupTime に設定されている場合は、このパラメーターを指定する必要があります。 |
2019-05-30T03:29:10Z |
| SourceRegion |
string |
任意 |
特定時点にデータを復元する場合のソースインスタンスのリージョン ID。 説明
RestoreType を BackupTime に設定した場合は、このパラメーターを指定する必要があります。 |
cn-hangzhou |
| SourceDBInstanceName |
string |
任意 |
特定時点にデータを復元する場合に使用されるソースインスタンス ID。 説明
このパラメーターは、RestoreType パラメーターを BackupTime に設定した場合に必要です。 |
rm-uf6wjk5**** |
| DBInstanceStorageType |
string |
任意 |
宛先インスタンスのストレージタイプ。 ローカル SSD ストレージタイプのみがサポートされています。 デフォルト値:local_ssd。 |
local_ssd |
| RoleARN |
string |
任意 |
Resource Access Management (RAM) ユーザーのために Alibaba Cloud アカウントによって提供される Alibaba Cloud リソース名 (ARN)。 RAM ユーザーは ARN を使用して ApsaraDB RDS から Key Management Service (KMS) に接続できます。 CheckCloudResourceAuthorized 操作を呼び出して ARN を照会できます。 説明
このパラメーターは、ApsaraDB RDS for SQL Server インスタンスにのみ適用されます。 |
acs:ram::1406****:role/aliyunrdsinstanceencryptiondefaultrole |
| EncryptionKey |
string |
任意 |
クラウドディスク暗号化のためのカスタマーマスターキー (CMK) の ID。 このパラメーターを指定すると、クラウドディスク暗号化が有効になり、RoleARN パラメーターも指定する必要があります。 クラウドディスク暗号化は、有効にした後は無効にできません。 KMS コンソールでキーの ID を取得するか、キーを作成できます。 詳細については、「キーの作成」をご参照ください。 ** 注意事項
|
749c1df7-****-****-****-**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| ConnectionString |
string |
宛先インスタンスへの接続に使用されるエンドポイント。 説明
DBInstanceNetType パラメーターは、エンドポイントが内部かパブリックかを示します。 |
rm-****.mysql.rds.aliyuncs.com |
| DBInstanceId |
string |
宛先インスタンス ID。 |
rm-**** |
| OrderId |
string |
注文 ID。 |
2038691**** |
| Port |
string |
宛先インスタンスへの接続に使用されるポート番号。 説明
DBInstanceNetType は、ポートが内部かパブリックかを示します。 |
3306 |
| RequestId |
string |
リクエストの ID。 |
E52666CC-330E-418A-8E5B-A19E3FB42D13 |
例
成功レスポンス
JSONJSON
{
"ConnectionString": "rm-****.mysql.rds.aliyuncs.com",
"DBInstanceId": "rm-****",
"OrderId": "2038691****",
"Port": "3306",
"RequestId": "E52666CC-330E-418A-8E5B-A19E3FB42D13"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidZoneId.NotSupported | The Specified vpc Zone not supported. | |
| 400 | InvalidDBInstanceName.Format | Specified DB instance name is not valid. | |
| 400 | InvalidDBInstanceName.Duplicate | Specified DB instance name already exists in the Aliyun RDS. | |
| 400 | InvalidRegion.Format | Specified Region is not valid. | |
| 400 | InvalidServiceType.Format | Specified service type is not valid. | |
| 400 | InvalidEngine.Malformed | Specified engine is not valid. | |
| 400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | |
| 400 | InvalidConnectionString.Format | Specified connection string is not valid. | |
| 400 | InvalidConnectionString.Duplicate | Specified connection string already exists in the Aliyun RDS. | |
| 400 | InvalidCharacterSetName.Format | Specified character set name is not valid. | |
| 400 | InvalidDBInstanceType.Format | Specified instance type is not valid. | |
| 400 | InvalidPort.Malformed | Specified port is not valid. | |
| 400 | InvalidBackupRetentionPeriod.Malformed | Specified backup retention period is not valid. | |
| 400 | InvalidPreferredBackupTime.Format | Specified preferred backup time is not valid. | |
| 400 | InvalidPreferredBackupPeriod.Malformed | Specified backup period is not valid. | |
| 400 | InvalidOptmizationService | Specified optmization service is not valid. | |
| 400 | InvalidExpiredTime.Format | Specified expired time is not valid. | |
| 400 | InvalidSecurityIPList.Format | Specified security IP list format is not valid. | |
| 400 | InvalidSecurityIPList.Duplicate | Specified security IP list is not valid: Duplicate IP address in the list | |
| 400 | InvalidSecurityIPList.QuotaExceeded | Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list. | |
| 400 | InvalidDBInstanceDescription.Format | Specified DB instance description is not valid. | |
| 400 | InvalidStorage.Format | Specified Storage is not valid. | |
| 400 | InvalidDBInstanceConnType.Format | Specified DB instance conn type is not valid. | |
| 400 | PreCheckInvalid | CreateDdrInstance PreCheck Is Invalid | |
| 400 | IncorrectDBInstanceType | Current DB instance engine and type does not support operations. | |
| 400 | InvalidRestoreType.Format | Specified restore type is not valid. | |
| 400 | NoBackupSetRegion | BackupSetRegion is absence. | |
| 400 | IncorrectBackupSetType | Backup set type should be value ddr. | |
| 400 | NoBaksetName | BaksetName is absence. | |
| 400 | NoSourceInstanceName | No SourceDBInstanceName. | |
| 400 | NoAvailableDisasterRestoreBakset | No available disaster restore bakset. | |
| 400 | InvalidBackupType.Format | Specified backup type is not valid. | |
| 400 | IncorrectEngineVersion | Current engine version does not support operations. | |
| 400 | DisasterRestoreRegionNotMatched | Disaster restore should be operated in the ddr region or source region. | |
| 400 | InvalidVpcIdRegion.NotSupported | The Specified vSwitchId zone not supported. | |
| 400 | VswitchIpExhausted | No available ip in the specified vswitch. | |
| 400 | Order.ComboInstanceNotAllowOperate | A package instance is not allowed to operate independently. | |
| 400 | Price.PricingPlanResultNotFound | Pricing plan price result not found. | |
| 400 | Order.NoRealNameAuthentication | You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication. | |
| 400 | InsufficientAvailableQuota | Your account quota limit is less than 0, please recharge before trying to purchase. | |
| 400 | CommodityServiceCalling.Exception | Failed to call commodity service. | |
| 400 | RegionDissolvedEOM | Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support. | |
| 400 | Commodity.InvalidComponent | The module you purchased is not legal, please buy it again. | |
| 400 | RegionEndTimeDissolvedAustralia | Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024. | |
| 400 | Price.CommoditySys | Commodity system call exception. | |
| 400 | Pay.InsufficientBalance | Insufficient available balance. | |
| 400 | Order.PeriodInvalid | There is a problem with the period you selected, please choose again. | |
| 400 | pay.noCreditCard | Account not bound to credit card. | |
| 400 | Order.InstHasUnpaidOrder | There is an unpaid order for the service you have purchased. Please pay or void it before placing the order. | |
| 400 | noAvailablePaymentMethod | No payment method is specified for your account. We recommend that you add a payment method. | |
| 400 | BasicInfoUncompleted | Your information is incomplete. Complete your information before the operation. | |
| 400 | Risk.RiskControlRejection | Your account is abnormal, please contact customer service for details. | |
| 400 | Api.NotSupport | Specified api is not supported. | |
| 400 | ContainForbiddenLabelError | There is a label that prohibits placing orders. Please contact your distributor for assistance. | |
| 400 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in records. | |
| 400 | InvalidInstanceLevel.DiskType | Specified instance level not support request disk type | |
| 400 | InvalidParam | Sepcified wal level Parameter is invalid. There are still logical slots in instance, so it can not be set as replica. | |
| 400 | KmsApiError | User secret key invalid. | |
| 400 | System.SaleValidateFailed | Sales expression validation system error. | |
| 400 | Abs.InvalidAccount.NotFound | account is not found. | |
| 400 | SqlExecuteFailedOrTimeout | sql command execution failed or timed out:%s. | |
| 400 | ColdData.EngineVersionNotSupport | The current instance engine version not support coldDataEnabled. | |
| 400 | ColdData.MinorVersionNotSupport | The current instance minor version not support coldDataEnabled. | |
| 400 | IncorrectTargetClasscode | The current instance type does not support this operation. | |
| 400 | RequiredParam.NotFound | Required input param is not found. | |
| 400 | Parameters.Invalid | Parameter error, please check the parameters. | |
| 400 | BackupPolicyNotSupport | Cold Data won't open with CrossBackup or Flash Backup, please check Backup Policy. | |
| 400 | InvalideStatus.Format | The instance status does not support this operation. | |
| 400 | InvalidReleasedKeepPolicy.Format | Specified Released Keep Policy is not valid. | |
| 400 | InvalidDBInstanceEngineType.Format | the DB instance engine type does not support this operation. | |
| 400 | Pay.NoCreditCard | No credit cards. | |
| 400 | VpcNetworkTypeNotSupport | The vpc network type instance does not support this operation. | |
| 400 | MirrorInsExists | Specified DB instance mirror ins already existed. | |
| 400 | UnsupportedClassCode | The specified DB instance class stops selling. | |
| 400 | InvalidBackupSet | The specified database does not exist in the backup set. | |
| 400 | OrdTCommodityQueryError | Failed to query for product. | |
| 400 | ProductInstanceReleased | The instance has been released. Please check before placing the order. | |
| 400 | RegionEndTimeDissolvedIndia | The region is no longer supported. | |
| 500 | ExternalFailure | The request processing has failed due to external service failure. | |
| 500 | RequestMetaDataFailed | The service request failed. Please try again later or contact service personnel. | |
| 500 | InvokeProxyFailure | The request processing has failed due to service failure of rds api. | |
| 403 | IncorrectBackupSetMethod | Current backup set method does not support operations. | |
| 403 | IncorrectBaksetVersion | Current bakset version does not support operations. | |
| 403 | CrossRegionUnsupportTDE | Cross-region disaster restore not support TDE bakset. | |
| 403 | OperationDenied.Resource | Specified DB instance class or storage is not available in all Availability Zones. | |
| 403 | OperationDenied.ZoneResource | There is no available zone for inventory. | |
| 403 | OrderStatus.UnPaid | The specified db instance has unpaid order. | |
| 403 | InvalidReduceDiskSize | The storage capacity after the scale-down must be larger than the used amount. | |
| 403 | CloudSSDNotSupport | Cloud ssd does not support this operation, please upgrade to essd. | |
| 403 | InvalidUserOperatorPermission | The user permission does not support this operation. | |
| 403 | InvalidVswitchId | Specified conn vswitch id is not valid. | |
| 403 | IncorrectMinorVersion | Current engine minor version does not support operations. | |
| 403 | NotInFlowController | Sorry,no permission. | |
| 403 | InvalidKmsKey | Kms key is disabled. | |
| 403 | InvalidInstanceLevel.Malformed | Current DB instance level does not support this operation. | |
| 404 | InvalidRegion.NotFound | Specified Region does not exist in the RDS | |
| 404 | InvalidClusterName.NotFound | The specified cluster name is not available. | |
| 404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. | |
| 404 | InvalidDBInstanceNetType.NotFound | Specified DB instance net type is not found. | |
| 404 | RestoreType.NotFound | RestoreType is not found. | |
| 404 | InvalidBackupSetID.NotFound | Specified backup set ID does not exist. | |
| 404 | InvalidClusterKms | The current instance does not authorized to access the Key Management Service. | |
| 404 | Request.NotFound | The requested resource is not available. | |
| 404 | HostInfo.NotFound | The specified host info is not found. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。