QueryInstanceNcd
Queries the network communication distance (NCD) between instances, such as Lingjun nodes and Lingjun ENIs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:QueryInstanceNcd |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-wulanchabu |
| InstanceId1 |
string |
Yes |
The ID of instance 1. If InstanceType is set to node, specify the ID of a Lingjun node. If InstanceType is set to lni, specify the ID of a Lingjun ENI. The two instances must belong to the same Lingjun cluster. |
lni-1235**** |
| InstanceId2 |
string |
Yes |
The ID of instance 2. If InstanceType is set to node, specify the ID of a Lingjun node. If InstanceType is set to lni, specify the ID of a Lingjun ENI. The two instances must belong to the same Lingjun cluster. |
lni-1234**** |
| InstanceType |
string |
Yes |
The instance type. Valid values: node (Lingjun node) and lni (Lingjun ENI). This operation supports only these two values. Valid values:
|
lni |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
AjaxResult |
||
| Code |
integer |
The code. |
0 |
| Message |
string |
The returned message. |
Success |
| RequestId |
string |
The ID of the request. |
BDBCC783-84CA-5733-8EEA-645C88B9009C |
| Content |
object |
The response content. |
|
| Ncd |
integer |
The network communication distance between the instances. |
1 |
| InstanceId1 |
string |
The ID of instance 1. |
lni-1235**** |
| InstanceId2 |
string |
The ID of instance 2. |
lni-1234**** |
| InstanceType |
string |
The instance type. Valid values:
|
lni |
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
Examples
Success response
JSON format
{
"Code": 0,
"Message": "Succeeded",
"RequestId": "BDBCC783-84CA-5733-8EEA-645C88B9009C",
"Content": {
"Ncd": 1,
"InstanceId1": "lni-1235****",
"InstanceId2": "lni-1234****",
"InstanceType": "lni"
},
"AccessDeniedDetail": "None"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.