If the fields Network IP and Netmask/Prefix identify a single IP address, the system will perform DD detection on this IP address when it receives a packet whose destination IP address belongs to the same network segment of the specified IP address. If the two parameters identify a network segment, the system will perform DD detection on the network segment when it receive a packet whose destination IP belongs to this network segment.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | ip | ipaddr | |
| default | mask_prefix | UnionField |
{
"DDStatic": {
"meta": {
"abstract": false,
"verbose_name": Static DD,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| mask_prefix | UnionField (Nested Field. It should be a dict.)
|
{
"DDStatic": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"DDStatic": [
{
"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, 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: ip, mask_prefix, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | ip | ipaddr | |
| default | mask_prefix | UnionField |
{
"DDStatic": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"DDStatic": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"DDStatic": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}