kind: state

A resource is a fully configurable object for which the CURDLE methods are supported.

In the F5® SDK, a resource is instantiated via its collection. Once created or loaded, resources contain attributes that map to the JSON fields returned by the BIG-IP®.

Example: Load a Resource object.

>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('', 'myuser', 'mypass')
>>> n ='Common', name='')
>>> print n.raw

The output of the (above) shows all of the available attributes.

Once you have loaded the object, you can access the attributes as shown below.

>>> n.fqdn['downInterval'] = 10
>>> n.logging = 'enabled'
>>> n.update()