到達可能性分析のためのネットワークパスを作成します。
操作説明
CreateNetworkPath 操作を呼び出すことで、複数のネットワークシナリオやリソース間でネットワークパスを作成できます。パスが作成されると、パスのパラメーターが保存され、繰り返し分析できるようになります。
1 つの Alibaba Cloud アカウントで最大 100 個のネットワークパスを作成できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
nis:CreateNetworkPath |
create |
*NetworkPath
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
作成するネットワークパスのリージョン ID。 |
cn-hangzhou |
| NetworkPathName |
string |
必須 |
ネットワークパスの名前。 |
ecs2PublicIp |
| SourceId |
string |
必須 |
ソースリソースの ID。 |
i-2zef4ngqfarepyun**** |
| SourceType |
string |
必須 |
ソースリソースのタイプ。有効な値:
|
ecs |
| SourceIpAddress |
string |
任意 |
送信元 IP アドレス。 |
172.17.XX.XX |
| SourcePort |
integer |
任意 |
送信元ポート。 |
443 |
| TargetId |
string |
任意 |
宛先リソースの ID。 |
i-bp13d0e064gubm**** |
| TargetType |
string |
任意 |
宛先リソースのタイプ。有効な値:
|
ecs |
| TargetIpAddress |
string |
任意 |
宛先 IP アドレス。 |
192.168.0.210 |
| TargetPort |
integer |
任意 |
宛先ポート。 |
80 |
| Protocol |
string |
任意 |
プロトコルタイプ。有効な値:
|
tcp |
| NetworkPathDescription |
string |
任意 |
ネットワークパスの説明。 |
Analyze the path from ECS to ECS |
| Tag |
array<object> |
任意 |
リソースに追加するタグ。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
リソースに追加するタグ N のキー。タグキーの長さは最大 128 文字で、 各呼び出しで最大 20 個のタグを追加できます。 |
role |
| Value |
string |
任意 |
リソースに追加するタグ N の値。最大 20 個のタグ値を指定できます。タグ値は空の文字列でもかまいません。 タグ値の長さは最大 128 文字で、 |
ops |
| ResourceGroupId |
string |
任意 |
リソースグループ ID。 |
rg-acfm27qsxjj**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| NetworkPathId |
string |
ネットワークパスの ID。 |
np-4cbf598673d14d27**** |
| RequestId |
string |
リクエスト ID。 |
92DD9FFB-06FB-56F7-83EF-5CEF98F5562A |
例
成功レスポンス
JSONJSON
{
"NetworkPathId": "np-4cbf598673d14d27****",
"RequestId": "92DD9FFB-06FB-56F7-83EF-5CEF98F5562A"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IllegalParam.InternetIP | The specified IP address (%s) is not an internet IP address. | |
| 400 | IllegalParam.IP | The specified IP address (%s) is invalid. | |
| 400 | QuotaExceeded.NetworkPath | The quota of %s is exceeded, usage %s/%s. | |
| 400 | ResourceAlreadyExist.NetworkPath | The specified resource of %s already exists. | |
| 400 | Mismatch.SourceIdAndTargetId | Reachability Analyzer does not support the scenario in which source and target Internet IP addresses and ECS instance ID (%s and %s) are bound. | |
| 400 | IllegalParam.SourceAndTargetInternetIp | Both source ID and target ID are IP addresses, but are not Internet IP addresses. Reachability Analyzer does not support the scenario. | |
| 400 | IllegalParam.SourcePort | The specified SourcePort(%s) value is invalid. The value must be within the range of (0,65536]. | |
| 400 | IllegalParam.TargetPort | The specified TargetPort(%s) value is invalid. The value must be within the range of (0,65536]. | |
| 400 | IllegalParam.SourceId | The specified SourceId(%s) may be not exist. | |
| 400 | IllegalParam.TargetId | The specified TargetId(%s) may be not exist. | |
| 400 | MissingParameter.TagValue | You must specify Tag.N.Value. | |
| 400 | NumberExceed.Tags | The maximum number of Tags is exceeded. | |
| 400 | Duplicate.TagKey | The Tag.N.Key contains duplicate keys. | |
| 400 | MissingParameter.TagKey | You must specify Tag.N.Key. | |
| 400 | InvalidParameter.TagKey | The Tag.N.Key parameter is invalid. | |
| 400 | InvalidParameter.TagValue | The Tag.N.Value parameter is invalid. | |
| 400 | IllegalParam.SourceIp | Please enter a valid source IP. | |
| 400 | IllegalParam.Protocol | The specified Protocol(%s) is invalid. | |
| 400 | IllegalParam.TargetType | The specified target type (%s) is invalid. | |
| 400 | IllegalParam.SourceType | The specified source type (%s) is invalid. | |
| 400 | IllegalParam.TargetIp | The specified target ip (%s) is invalid. | |
| 400 | IllegalParam.NotSupportHaVpn | The specified VPN(%s), which is not currently supported for such instances. | |
| 400 | IllegalParam.SourceNotBound | Elastic public network IP(%s) is not bound to resources, and analysis is not supported for the time being. | |
| 400 | IllegalParam.TargetNotBound | Elastic public network IP(%s) is not bound to resources, and analysis is not supported for the time being. | |
| 400 | IllegalParam.NotPublicIp | The specified (%s) is invalid. | |
| 400 | IllegalParam.SourceEqualTarget | The specified source and destination are identical, which is not supported for analysis. | |
| 400 | IllegalParam.TypeAndIdMismatch | The specified instanceId (%s) and type do not match. | |
| 403 | Forbidden.NetworkPath | The current user has not activated NIS and is not authorized to use the path analysis interface. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。