Click a link to jump to the indicated section.
class
bluecat.ip_object.IPObject
(api, api_entity, ver='')
Bases: bluecat.entity.Entity
Generic IP object for network address and blocks
move_ip_object(address, no_server_update=False)
Allows users to move the IP object to another address
Parameters | Description |
---|---|
address |
New address to be allocated |
no_server_update |
ONLY FOR IPV4 ADDRESSES, A boolean value.
If set to |
Example:
api = g.user.get_api() # get api object
ip4_id = 10234 # ip4 block/ip4 network id
ip4_object = api.get_entity_by_id(ip4_id)
new_ip4_address = '10.0.0.1' # new IP address to be allocated
ip4_object.move_ip_object(new_ip4_address)