システム割り当ての重みを照会します。
操作説明
サポートされているエンジン
ApsaraDB RDS for MySQL
ApsaraDB RDS for SQL Server
説明
読み書きの分離 が有効な場合、この操作はシステム割り当ての重みを計算します。カスタム読み取り重みについては、 DescribeDBInstanceNetInfo を参照してください。
前提条件
この操作の呼び出し時には、インスタンスは以下の要件を満たしている必要があります。満たしていない場合、操作は失敗します。
MySQL インスタンスが共有データベースプロキシを使用していること。
- インスタンスが以下のいずれかのエディションで実行されていること。
MySQL 5.7 高可用性エディション (ローカル SSD)
MySQL 5.6
SQL Server Cluster Edition
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
rds:CalculateDBInstanceWeight |
get |
*DBInstance
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBInstanceId |
string |
必須 |
プライマリインスタンスのインスタンス ID。DescribeDBInstances 操作を呼び出してインスタンス ID を取得できます。 |
rm-uf6wjk5**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| Items |
object |
||
| DBInstanceWeight |
array<object> |
システム割り当ての重みのリスト。 |
|
|
object |
システム割り当ての重みの詳細。 |
||
| DBInstanceId |
string |
インスタンスの ID。 |
rm-uf6wjk5xxxxxxx |
| DBInstanceType |
string |
インスタンスタイプ。有効な値:
|
Master |
| ReadonlyInstanceSQLDelayedTime |
string |
読み取り専用インスタンスのレプリケーションの遅延。読み取り専用インスタンスは、プライマリインスタンスからのデータ同期を ReadonlyInstanceSQLDelayedTime の値だけ遅延させます。単位: 秒。 |
30 |
| Weight |
string |
システムによって計算された実時間のインスタンスの重み。 |
100 |
| RequestId |
string |
リクエストの ID。 |
C816A4BF-A6EC-4722-95F9-2055859CCFD2 |
例
成功レスポンス
JSONJSON
{
"Items": {
"DBInstanceWeight": [
{
"DBInstanceId": "rm-uf6wjk5xxxxxxx",
"DBInstanceType": "Master",
"ReadonlyInstanceSQLDelayedTime": "30",
"Weight": "100"
}
]
},
"RequestId": "C816A4BF-A6EC-4722-95F9-2055859CCFD2"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. | 利用可能なアカウント残高が 0 未満です。購入を試みる前にアカウントにチャージしてください。 |
| 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. | Alibaba Cloud は現在のリージョンの最適化と調整を計画しており、このリージョンのクラウドサービスは提供終了となります。業務継続性とデータ移行の円滑なトランジションを確保するため、この時間は新規購入の注文は受け付けておりません。ご理解とご協力のほどよろしくお願いいたします。 |
| 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. | 現在の API オペレーションはサポートされていません。 |
| 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. | SQL コマンドの実行に失敗したか、制限時間を超過しました。 |
| 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 | InvalidConnectionString.Duplicate | Specified connection string already exists in the RDS. | エンドポイント名が重複しています。新しい接続文字列を指定してください。 |
| 400 | RequiredParam.NotFound | Required input param is not found. | 必須パラメーターが指定されていません。 |
| 400 | Parameters.Invalid | Parameter error, please check the parameters. | 1 つ以上のパラメーターが無効です。パラメーターを確認してください。 |
| 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. | この操作は、VPC ネットワークタイプのインスタンスではサポートされていません。 |
| 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. | ApsaraDB RDS API サービスが失敗したため、リクエストプロセスは失敗しました。 |
| 403 | IncorrectDBInstanceType | Current DB instance engine and type does not support operations. | 現在のデータベースインスタンスのエンジンおよびタイプがサポートされていないため、操作は失敗した。 |
| 403 | IncorrectDBInstanceConnType | Current DB instance conn type does not support this operation. | 現在のデータベースインスタンスの接続タイプでは、この操作はサポートされていません。 |
| 403 | IncorrectDBType | The current DB type does not support this operation. | 操作が失敗した理由は、現在のデータベースタイプではこの操作がサポートされていないためです。別のデータベースタイプを使用してください。 |
| 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. | 標準 SSD では、この操作はサポートされていません。ESSD にアップグレードしてください。 |
| 403 | InvalidUserOperatorPermission | The user permission does not support this operation. | ユーザーには、この操作フォームを実行するために必須の権限がありません。 |
| 403 | InvalidVswitchId | Specified conn vswitch id is not valid. | 指定された VSwitchId のフォームが正しくないか、または空です。 |
| 403 | IncorrectMinorVersion | Current engine minor version does not support operations. | 現在のエンジンのマイナーバージョンでは、この操作はサポートされていません。 |
| 403 | OperationDenied.ZoneResource | There is no available zone for inventory. | 利用可能なリソースを持つゾーンがありません。 |
| 403 | NotInFlowController | Sorry,no permission. | 企業クラウド移行ユーザーではないため、この特徴は利用できず、必須の権限も付与されていません。 |
| 403 | InvalidKmsKey | Kms key is disabled. | 指定された KMS キーは無効化されています。 |
| 403 | InvalidInstanceLevel.Malformed | Current DB instance level does not support this operation. | 指定された仕様コードではそのエンドポイント数がサポートされていないため、操作が失敗した。シャード数と現在のエンドポイント数を確認してください。 |
| 404 | InvalidDBInstanceName.NotFound | Invalid DBInstanceId NotFound. | 指定されたインスタンス ID は存在しません。インスタンス ID を確認して、もう一度お試しください。 |
| 404 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | インスタンスがロック済みであるため、操作は失敗しました。 |
| 404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. | 指定されたインスタンスタイプが無効であるか、販売終了となっています。パラメーターが正しいかどうか確認してください。 |
| 404 | InvalidClusterKms | The current instance does not authorized to access the Key Management Service. | 現在のインスタンスには、Key Management サービスへのアクセス権限が付与されていません。 |
| 404 | Request.NotFound | The requested resource is not available. | リクエストされたリソースは利用できません。 |
| 404 | HostInfo.NotFound | The specified host info is not found. | 指定されたホスト情報 (フォーム、フォーマット) は存在しません。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。