Create entry address
POST /rest/v1/objects/net_devices/:device_id/entries/:entry_id/addresses/
Parameters
Name |
Description |
n_obj_address_id
|
Address to equipment bind
|
n_address_id
|
Address
|
n_addr_type_id
|
Address type
|
n_par_addr_id
|
Parent address
|
n_bind_addr_id
|
Bound address
|
n_obj_addr_type_id
|
Bound address type
|
n_region_id
|
Region
|
d_begin
|
Start date
|
d_end
|
End date
|
n_firm_id
|
Firm
|
vc_code
|
Code
|
vc_address
|
Address as string
|
vc_entrance_no
|
Entrance
|
n_floor_no
|
Floor
|
vc_flat
|
Flat
|
n_mask
|
IP subnet mask
|
c_fl_is_real_subnet
|
Flag of real IP address
|
vc_intercom_code
|
Intercom code
|
vc_rem
|
Remark
|
Request
Headers
Route
POST /rest/v1/objects/net_devices/78290901/entries/78291801/addresses/
Body
{
"address": {
"n_addr_type_id": 3006,
"n_obj_addr_type_id": 1016,
"vc_code": "192.168.45.1",
"d_begin": "2019-07-26T10:48:11+03:00"
}
}
Response
Headers
Status
201 Created
Body
{
"address": {
"n_address_id": 93729001,
"n_addr_type_id": 3006,
"vc_addr_type_name": "IP-адрес",
"n_par_addr_id": null,
"vc_code": "192.168.45.1",
"vc_address": null,
"vc_flat": null,
"n_region_id": null,
"vc_entrance_no": null,
"n_floor_no": null,
"n_firm_id": null,
"n_bind_addr_id": null,
"n_obj_address_id": 93729101,
"n_obj_addr_type_id": 1016,
"d_begin": "2019-07-26T10:48:11+03:00",
"d_end": null,
"vc_rem": null,
"vc_intercom_code": null,
"actions": {
"edit": "http://example.org/rest/v1/objects/net_devices/78290901/entries/78291801/addresses/93729101/edit"
},
"navigation": {
"self": "http://example.org/rest/v1/objects/net_devices/78290901/entries/78291801/addresses/",
"entry": "http://example.org/rest/v1/objects/net_devices/78290901/entries/78291801",
"addresses": "http://example.org/rest/v1/objects/net_devices/78290901/entries/78291801/addresses"
}
}
}