The Tag class wraps the BAM Tag Entity type.
class tag.Tag(api, api_entity)
Bases: tag.TagGroup
Instantiate a Tag.
Parameter | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
get_shared_networks
Returns multiple IPv4 networks linked to the given shared network tag.
Returns: Array of IPv4 networks entities linked to the given shared network tag.
Example:
api = g.user.get_api() # get api object tag_id = 10543 # tag id tag = api.get_entity_by_id(tag) networks = tag.get_shared_networks()