Permissions

The following methods allow for interaction into the Tenable Vulnerability Management :devportal`permissions <permissions-1>` API endpoints.

Methods available on tio.permissions:

class PermissionsAPI(api: restfly.session.APISession)[source]
change(otype, id, *acls)[source]

Modify the permission of a specific object.

permissions: change

Parameters
  • otype (str) – The type of object to change.

  • id (int) – The unique identifier of the object.

  • *acls (dict) – ACL dictionaries inform Tenable Vulnerability Management how to handle permissions of the various objects within Tenable Vulnerability Management. Please refer to the permissions documentation for more details.

Returns

The object permissions were successfully changed.

Return type

None

list(otype, id)[source]

List the permissions of a specific object.

permissions: list

Parameters
  • otype (str) – The type of object being queried.

  • id (int) – The unique identifier of the object.

Returns

The permission recourse record listings for the specified object.

Return type

list