Create object address
POST /rest/v1/objects/net_devices/:device_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/50182701/addresses
Body
{
"address": {
"n_addr_type_id": 1006,
"n_obj_addr_type_id": 1016,
"n_region_id": 50563601,
"d_begin": "2019-07-26T10:48:08+03:00"
}
}
Response
Headers
Status
201 Created
Body
{
"address": {
"n_address_id": 50563701,
"n_addr_type_id": 1006,
"vc_addr_type_name": "Обычный адрес",
"n_par_addr_id": null,
"vc_code": null,
"vc_address": null,
"vc_flat": null,
"n_region_id": 50563601,
"vc_entrance_no": null,
"n_floor_no": null,
"n_firm_id": null,
"n_bind_addr_id": null,
"n_obj_address_id": 93728801,
"n_obj_addr_type_id": 1016,
"d_begin": "2019-07-26T10:48:08+03:00",
"d_end": null,
"vc_rem": null,
"vc_intercom_code": null,
"actions": {
"edit": "http://example.org/rest/v1/objects/net_devices/50182701/addresses/93728801/edit"
},
"navigation": {
"self": "http://example.org/rest/v1/objects/net_devices/50182701/addresses",
"net_device": "http://example.org/rest/v1/objects/net_devices/50182701",
"addresses": "http://example.org/rest/v1/objects/net_devices/50182701/addresses"
}
}
}