Menginisiasi tugas untuk menganalisis jangkauan jaringan.
Deskripsi operasi
Anda dapat memanggil operasi ini untuk menginisiasi tugas analisis jangkauan jaringan hanya dengan menentukan informasi sumber dan tujuan. Anda tidak perlu membuat jalur jaringan terlebih dahulu untuk melakukan analisis tersebut. Hasil analisis tidak disimpan dalam sistem. Jika Anda ingin mencatat parameter jalur dan hasil analisis di Konsol Network Intelligence Service (NIS), kami menyarankan agar Anda memanggil operasi createNetworkReachableAnalysis.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:CreateAndAnalyzeNetworkPath |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SourceId |
string |
Yes |
ID resource sumber. |
i-uf62y8khhbkbdrp6**** |
| SourceIpAddress |
string |
No |
Alamat IP sumber. |
192.168.XX.XX |
| TargetIpAddress |
string |
No |
Alamat IP tujuan. |
172.50.XX.XX |
| SourceType |
string |
Yes |
Jenis resource sumber. Nilai yang valid:
|
ecs |
| SourcePort |
integer |
No |
Port sumber. |
0 |
| TargetId |
string |
No |
ID resource tujuan. |
i-m5eactvw7wtpktv5**** |
| TargetType |
string |
No |
Jenis resource tujuan. Nilai yang valid:
|
ecs |
| TargetPort |
integer |
No |
Port tujuan. |
80 |
| Protocol |
string |
No |
Jenis protokol. Nilai yang valid:
|
tcp |
| RegionId |
string |
No |
ID wilayah tempat Anda ingin menginisiasi task untuk menganalisis jangkauan jaringan. |
cn-shanghai |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
D5E98683-355B-5867-8D3D-A24755F6895B |
| NetworkReachableAnalysisId |
string |
ID task untuk menganalisis jangkauan jaringan yang telah Anda inisiasi. |
nra-dfe9e53d2b524568**** |
| SourceId |
string |
ID resource sumber. |
i-uf62y8khhbkbdrp6**** |
| TargetId |
string |
ID resource tujuan. |
i-m5eactvw7wtpktv5**** |
| SourceType |
string |
Jenis resource sumber. |
ecs |
| TargetType |
string |
Jenis resource tujuan. |
ecs |
| SourcePort |
string |
Port sumber. |
0 |
| TargetPort |
string |
Port tujuan. |
80 |
| Protocol |
string |
Jenis protokol. |
tcp |
| SourceIpAddress |
string |
Alamat IP sumber. |
192.168.XX.XX |
| TargetIpAddress |
string |
Alamat IP tujuan. |
172.50.XX.XX |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D5E98683-355B-5867-8D3D-A24755F6895B",
"NetworkReachableAnalysisId": "nra-dfe9e53d2b524568****",
"SourceId": "i-uf62y8khhbkbdrp6****",
"TargetId": "i-m5eactvw7wtpktv5****",
"SourceType": "ecs",
"TargetType": "ecs",
"SourcePort": "0",
"TargetPort": "80",
"Protocol": "tcp",
"SourceIpAddress": "192.168.XX.XX",
"TargetIpAddress": "172.50.XX.XX"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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 | 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 | IllegalParam.SourceIp | Please enter a valid source IP. | |
| 400 | IllegalParam.SourceType | The specified source type (%s) is invalid. | |
| 400 | IllegalParam.Protocol | The specified Protocol(%s) is invalid. | |
| 400 | IllegalParam.TargetType | The specified target 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.