Object addresses API

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 Date of begin
d_end Date of end
n_firm_id Firm
vc_code Code
vc_address Address as string
n_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

Accept: application/json
Content-Type: application/json

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":"2016-09-26T04:26:16+03:00"}}

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 714

Status

201 Created

Body

{"address":{"n_address_id":50563701,"n_addr_type_id":1006,"n_par_addr_id":null,"vc_code":null,"vc_address":null,"vc_flat":null,"n_region_id":50563601,"n_entrance_no":null,"n_floor_no":null,"n_firm_id":null,"n_bind_addr_id":null,"n_obj_address_id":88432701,"n_obj_addr_type_id":1016,"d_begin":"2016-09-26T04:26:16+03:00","d_end":null,"vc_rem":null,"vc_intercom_code":null,"actions":{"edit":"http://example.org/rest/v1/objects/net_devices/50182701/addresses/88432701/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"}}}