This configuration page is used to define a remote site with an associated IP network segment and a to-be-checked IP address.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | ip | ipaddr | |
| default | mask_prefix | UnionField | |
| default | checker | asso | Sets the accessibility check rule to be associated with the remote site. |
| default | checker_ip | ipaddr | Sets an IP address in the remote site network to be checked. This parameter is not required to be specified when the Network IP is set to an IP address. |
| statistics | status | string | |
| statistics | total_detect_times | StorableField | |
| statistics | total_detect_up_times | StorableField | |
| statistics | total_detect_down_times | StorableField |
{
"LLBRSiteNetwork": {
"meta": {
"abstract": false,
"verbose_name": Remote Site Network,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| name | string | ||||||||||
| ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| mask_prefix | UnionField (Nested Field. It should be a dict.)
|
||||||||||
| checker | asso | Sets the accessibility check rule to be associated with the remote site. | |||||||||
| checker_ip | ipaddr (Nested Field. It should be a dict.)
|
Sets an IP address in the remote site network to be checked. This parameter is not required to be specified when the Network IP is set to an IP address. |
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"LLBRSiteNetwork": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, statistics, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: name, ip, mask_prefix, checker, checker_ip, status, total_detect_times, total_detect_up_times, total_detect_down_times, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | ip | ipaddr | |
| default | mask_prefix | UnionField | |
| default | checker | asso | Sets the accessibility check rule to be associated with the remote site. |
| default | checker_ip | ipaddr | Sets an IP address in the remote site network to be checked. This parameter is not required to be specified when the Network IP is set to an IP address. |
| statistics | status | string | |
| statistics | total_detect_times | StorableField | |
| statistics | total_detect_up_times | StorableField | |
| statistics | total_detect_down_times | StorableField |
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: checker_ip, |
| Field Name | Type | Description |
|---|---|---|
| checker_ip | ipaddr | Sets an IP address in the remote site network to be checked. This parameter is not required to be specified when the Network IP is set to an IP address. |
All configuration fields and their values are replied:
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"LLBRSiteNetwork": {
"instance_id":<instance_id>,
"checker":<value>
}
}