Este contenido no está disponible en el idioma seleccionado.
16.6. Updating a Resource in a Collection
To update a resource, you must retrieve it from the collection it resides in, modify the desired parameters, and then call the
update method for the resource to save the changes. Parameter modification is performed by using the set_* methods on the retrieved resource:
Example 16.9. Updating a Network Address
def setHostIp(hostName, hostIP):
host = API.hosts.get(hostName)
host.set_address(hostIP)
host.update()
def setHostIp(hostName, hostIP):
host = API.hosts.get(hostName)
host.set_address(hostIP)
host.update()
22632%2C+Console+Developer+Guide-322-09-2014+17%3A11%3A35Report a bug