インターネットNATゲートウェイのスイッチステータスを照会します。
デバッグ
リクエストパラメーター
項目 | データ型 | 必須/任意 | 例: | 説明 |
---|---|---|---|---|
操作 | String | 必須 | GetNatGatewayConvertStatus | 実行する操作です。 値をGetNatGatewayConvertStatusに設定します。 |
NatGatewayId | String | 必須 | ngw-bp1b0lic8uz4r6vf2 **** | 照会するインターネットNATゲートウェイのID。 |
RegionId | String | 必須 | cn-qingdao | NAT gatewayが属するリージョンのID。 |
レスポンスパラメーター
項目 | データ型 | 例: | 説明 |
---|---|---|---|
ConvertSteps | ConvertStepの配列 | 切り替え中のステータス。 | |
StepName | String | init | 有効な値:
|
StepStartTime | String | 202008-26T08: 27:19Z | スイッチが開始された時刻。 |
StepStatus | String | successful | スイッチのステータス。 有効な値:
|
DstNatType | String | Enhanced | NATゲートウェイのタイプ。 値を [拡張] に設定します。これは、拡張インターネットNATゲートウェイを指定します。 |
NatGatewayId | String | ngw-bp1b0lic8uz4r6vf2 **** | インターネットNATゲートウェイのID。 |
RequestId | String | 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 | リクエストの ID です。 |
例
リクエストの例
http(s):// vpc.aliyuncs.com/?Action=GetNatGatewayConvertStatus
&NatGatewayId=ngw-bp1b0lic8uz4r6vf2 ****
&RegionId=cn-qingdao
&<共通リクエストパラメーター>
正常に処理された場合のレスポンス例
XML
形式
<GetNatGatewayConvertStatusResponse>
<RequestId>566678F2-BF11-4701-9569-D888191DAF5F</RequestId>
<DstNatType> 拡張 </DstNatType>
<ConvertSteps>
<StepName>init</StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:27:19Z</StepStartTime>
</ConvertSteps>
<ConvertSteps>
<StepName> チェック </StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:27:19Z</StepStartTime>
</ConvertSteps>
<ConvertSteps>
<StepName> 設定 </StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:27:19Z</StepStartTime>
</ConvertSteps>
<ConvertSteps>
<StepName> 有効化 </StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:27:54Z</StepStartTime>
</ConvertSteps>
<ConvertSteps>
<StepName>conf_delete</StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:27:58Z</StepStartTime>
</ConvertSteps>
<ConvertSteps>
<StepName>end_success</StepName>
<StepStatus> 成功 </StepStatus>
<StepStartTime>2020-08-26T08:28:00Z</StepStartTime>
</ConvertSteps>
<NatGatewayId>ngw-p0w4fb0mospbkaw9n ****</NatGatewayId>
</GetNatGatewayConvertStatusResponse>
JSON
形式
{
"RequestId": "566678F2-BF11-4701-9569-D888191DAF5F" 、
"DstNatType": "Enhanced" 、
"ConvertSteps": [
{
"StepName": "init" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:27:19Z"
},
{
"StepName": "チェック" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:27:19Z"
},
{
"StepName": "configure" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:27:19Z"
},
{
"StepName": "activate" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:27:54Z"
},
{
"StepName": "conf_delete" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:27:58Z"
},
{
"StepName": "end_success" 、
"StepStatus": "successful" 、
"StepStartTime": "2020-08-26T08:28:00Z"
}
],
"NatGatewayId": "ngw-p0w4fb0mospbkaw9n ****" 、}
エラーコード
HttpCode | エラーコード | エラーメッセージ | 説明 |
---|---|---|---|
404 | InvalidRegionId.NotFound | 指定された RegionId はレコードに存在しません。 | 指定されたリージョンIDが存在しない場合に返されるエラーメッセージ。 |
エラーコードリストについては、「API エラーセンター」をご参照ください。