| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| sip_multireg | sip_multiregistration | boolean | |
| sip_nat | sip_nat | asso | |
| sip_nat_stats | sip_nat_stats | clitext |
{
"SIPSettings": {
"meta": {
"abstract": false,
"verbose_name": SIP Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/SIPSettings/meta |
| Request Data | None |
| Response Data | {
"SIPSettings": {
"meta": {
"abstract": false,
"verbose_name": "SIP Settings"
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": "SIP Multi Registration",
"field_name": "sip_multiregistration"
}
],
"group_name": "sip_multireg"
},
{
"fields": [
{
"verbose_name": "SIP NAT List",
"field_name": "sip_nat"
}
],
"group_name": "sip_nat"
},
{
"fields": [
{
"verbose_name": "SIP NAT Statistics",
"field_name": "sip_nat_stats"
}
],
"group_name": "sip_nat_stats"
}
]
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: sip_multireg, sip_nat, sip_nat_stats, 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: sip_multiregistration, sip_nat, sip_nat_stats, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| sip_multireg | sip_multiregistration | boolean | |
| sip_nat | sip_nat | asso | |
| sip_nat_stats | sip_nat_stats | clitext |
{
"SIPSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SIPSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SIPSettings": {
<field>:<value>,
}
}
| Method | GET |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/SIPSettings/sip_multireg |
| Request Data | None |
| Response Data | {
"SIPSettings": {
"sip_multiregistration": false
}
} |
| Comment | None |
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: sip_multiregistration, sip_nat, sip_nat_stats, |
| Field Name | Type | Description |
|---|---|---|
| sip_multiregistration | boolean |
All configuration fields and their values are replied:
{
"SIPSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Method | PUT |
|---|---|
| URL | https://10.8.6.91:9997/rest/apv/loadbalancing/slb/SIPSettings/sip_multiregistration |
| Request Data | {
"sip_multiregistration": "true"
} |
| Response Data | {
"SIPSettings": {
"sip_multiregistration": true,
"sip_nat": []
}
} |
| Comment | None |
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SIPSettings": {
"instance_id":<instance_id>,
"sip_nat":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| virtual_ip | ipaddr | |
| virtual_port | port | |
| real_ip | ipaddr | |
| real_port | port | |
| protocol | enum | Available values:
|
| timeout | int | |
| persistence_mode | enum | Available values:
|
{
"SIPNAT": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}