指定されたリージョンにある 1 つ以上のレプリケーションペアに関する情報をクエリします。
操作説明
説明
-
非同期レプリケーションをサポートするリージョンについては、「ディスクの非同期レプリケーションの概要」をご参照ください。
-
非同期レプリケーションペアのプライマリディスクまたはセカンダリディスクが指定されたリージョンにある場合、クエリはそのレプリケーションペアに関する情報を返します。
-
ページングクエリを実行するには、MaxResults パラメーターと NextToken パラメーターを使用します。最初のページでは、MaxResults を設定して返されるエントリ数を制限します。応答の
NextToken値は、次のページのトークンです。後続のページでは、NextTokenを前の応答の値に設定し、MaxResultsを設定してエントリ数を制限します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ebs:DescribeDiskReplicaPairs |
get |
*DiskReplicaPair
*DiskReplicaPair
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
レプリケーションペアのプライマリディスクまたはセカンダリディスクが存在するリージョンの ID。DescribeRegions 操作を呼び出して、非同期レプリケーションをサポートするリージョンをクエリします。 |
cn-beijing |
| MaxResults |
integer |
任意 |
各ページで返すエントリの最大数。NextToken と一緒に使用します。 有効値:1~500。 デフォルト値:10。 |
1 |
| NextToken |
string |
任意 |
クエリトークン。このパラメーターを、この操作の前の呼び出しから返された NextToken 値に設定します。最初の呼び出しでは、このパラメーターを設定する必要はありません。NextToken を設定すると、PageSize パラメーターと PageNumber パラメーターは無視され、応答の TotalCount 値は無効になります。 |
AAAAAdDWBF2**** |
| PairIds |
string |
任意 |
レプリケーションペアの ID。1 つ以上のレプリケーションペア ID を指定します。ID は このパラメーターを空のままにすると、現在のリージョン内のすべてのレプリケーションペアがクエリされます。最大 100 個のレプリケーションペア ID を指定できます。 |
pair-cn-dsa**** |
| Site |
string |
任意 |
データをクエリするサイト。本番サイトまたはディザスタリカバリサイトからデータをクエリします。有効値:
デフォルト値:production。 |
production |
| ReplicaGroupId |
string |
任意 |
レプリケーション整合性グループの ID。レプリケーション整合性グループの ID を指定して、グループ内のレプリケーションペアをクエリします。ID は このパラメーターを空のままにすると、現在のリージョン内のすべてのレプリケーションペアがクエリされます。 説明
このパラメーターを |
pg-**** |
| PageNumber |
integer |
任意 |
ページ番号。 |
5 |
| PageSize |
integer |
任意 |
ページあたりのエントリ数。 有効値:1~100。 |
10 |
| ResourceGroupId |
string |
任意 |
レプリケーションペアが属するリソースグループの ID。 |
rg-acfmvs****** |
| Name |
string |
任意 |
レプリケーションペアの名前。あいまい一致がサポートされています。 |
name*** |
| Tag |
array<object> |
任意 |
タグ。最大 20 個のタグを指定できます。 |
|
|
object |
任意 |
タグ。 |
||
| Value |
string |
任意 |
タグの値。 |
TestValue |
| Key |
string |
任意 |
タグのキー。 |
TestKey |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答スキーマ。 |
||
| RequestId |
string |
リクエスト ID。 |
AAA478A0-BEE6-1D42-BEB6-A9CFEAD6**** |
| NextToken |
string |
この呼び出しから返されたクエリトークン。 |
AAAAAdDWBF2**** |
| ReplicaPairs |
array<object> |
レプリケーションペア。 |
|
|
array<object> |
|||
| Site |
string |
レプリケーションペアまたはレプリケーション整合性グループのサイトタイプ。有効値:
|
production |
| DestinationDiskId |
string |
セカンダリディスクの ID。 |
d-asdfjl2342kj2l3k4**** |
| Description |
string |
レプリケーションペアの説明。 |
This is description. |
| StandbyZone |
string |
レプリケーションペアの初期ターゲットゾーン。 |
cn-shanghai-b |
| ResourceGroupId |
string |
レプリケーションペアが属するリソースグループの ID。 |
rg-acfmvs***** |
| DestinationRegion |
string |
セカンダリディスクのリージョン。 |
cn-shanghai |
| ReplicaPairId |
string |
レプリケーションペアの ID。 |
pair-cn-dsa**** |
| LastRecoverPoint |
integer |
最後の非同期レプリケーションが完了した時刻。この値は UNIX タイムスタンプです。単位:秒。 |
1649751977 |
| ReplicaGroupId |
string |
レプリケーションペアが属するレプリケーション整合性グループの ID。 |
pg-xxxx**** |
| SourceDiskId |
string |
プライマリディスクの ID。 |
d-bp131n0q38u3a4zi**** |
| RPO |
integer |
レプリケーションペアの目標復旧時点 (RPO)。単位:秒。 |
900 |
| PairName |
string |
レプリケーションペアの名前。 |
TestReplicaPair |
| Bandwidth |
integer |
非同期レプリケーションに使用される帯域幅。単位:Kbit/s。 |
10240 |
| ExpiredTime |
integer |
レプリケーションペアの有効期限。この値は UNIX タイムスタンプです。単位:秒。 |
1649750977 |
| PrimaryZone |
string |
レプリケーションペアの初期ソースゾーン。 |
cn-beijing-a |
| SourceZoneId |
string |
プライマリディスクのゾーン。 |
cn-beijing-a |
| Tags |
array<object> |
レプリケーションペアのタグ。 |
|
|
object |
タグ。 |
||
| TagKey |
string |
タグのキー。 |
testKey |
| TagValue |
string |
タグの値。 |
testValue |
| Status |
string |
レプリケーションペアのステータス。有効値:
|
created |
| PrimaryRegion |
string |
レプリケーションペアの初期ソースリージョン。 |
cn-beijing |
| CreateTime |
integer |
作成時刻。この値は UNIX タイムスタンプです。単位:秒。 |
1649750977 |
| SourceRegion |
string |
プライマリディスクのリージョン。 |
cn-beijing |
| StatusMessage |
string |
レプリケーションペアのステータスメッセージ。このパラメーターは、ステータスが
|
PrePayOrderExpired |
| EnableRtc |
boolean |
リアルタイムコントロール (RTC) が有効になっているかどうかを指定します。有効値:
説明
レプリケーションペアがレプリケーション整合性グループ内にある場合、このパラメーターの値はグループの値と同じです。 |
|
| ChargeType |
string |
レプリケーションペアの課金方法。 有効値:
|
PREPAY |
| DestinationZoneId |
string |
セカンダリディスクのゾーン。 |
cn-shanghai-b |
| ReplicaGroupName |
string |
レプリケーションペアが属するレプリケーション整合性グループの名前。 |
pg-name**** |
| StandbyRegion |
string |
レプリケーションペアの初期ターゲットリージョン。 |
cn-shanghai |
| PageNumber |
integer |
ページ番号。 |
1 |
| PageSize |
integer |
ページあたりのエントリ数。 |
10 |
| TotalCount |
integer |
エントリの総数。 |
60 |
例
成功レスポンス
JSONJSON
{
"RequestId": "AAA478A0-BEE6-1D42-BEB6-A9CFEAD6****",
"NextToken": "AAAAAdDWBF2****",
"ReplicaPairs": [
{
"Site": "production",
"DestinationDiskId": "d-asdfjl2342kj2l3k4****",
"Description": "This is description.",
"StandbyZone": "cn-shanghai-b",
"ResourceGroupId": "rg-acfmvs*****",
"DestinationRegion": "cn-shanghai",
"ReplicaPairId": "pair-cn-dsa****",
"LastRecoverPoint": 1649751977,
"ReplicaGroupId": "pg-xxxx****",
"SourceDiskId": "d-bp131n0q38u3a4zi****",
"RPO": 900,
"PairName": "TestReplicaPair",
"Bandwidth": 10240,
"ExpiredTime": 1649750977,
"PrimaryZone": "cn-beijing-a",
"SourceZoneId": "cn-beijing-a",
"Tags": [
{
"TagKey": "testKey",
"TagValue": "testValue"
}
],
"Status": "created",
"PrimaryRegion": "cn-beijing",
"CreateTime": 1649750977,
"SourceRegion": "cn-beijing",
"StatusMessage": "PrePayOrderExpired",
"EnableRtc": false,
"ChargeType": "PREPAY",
"DestinationZoneId": "cn-shanghai-b",
"ReplicaGroupName": "pg-name****",
"StandbyRegion": "cn-shanghai"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 60
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | OperationDenied | The operation is not allowed. | |
| 403 | OperationDenied.InvalidStatus | The operation is not allowed in current status. | |
| 403 | Forbidden | User is not authorized to operate. | |
| 403 | Forbidden.Action | User is not authorized to operate this action. | |
| 404 | NoSuchResource | The specified resource does not exist. | |
| 504 | RequestTimeout | The request is timeout, please try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。