Assets

The following methods leverage stored queries relating to asset metadata within Cloud Security.

class AssetsAPI(api: GraphQLSession)[source]
compute(page_size: int = 10) CloudSecurityAssetIterator[source]

Requests compute asset metadata.

Parameters:

page_size (int, optional) – How many items should be returned per page?

Returns:

An iterable is returned that handles paging of the data.

Example

>>> for asset in cloudsecurity.assets.compute():
...     print(asset)
container(page_size: int = 10)[source]

Requests container asset metadata.

Parameters:

page_size (int, optional) – How many items should be returned per page?

Returns:

An iterable is returned that handles paging of the data.

Example

>>> for asset in cloudsecurity.assets.container():
...     print(asset)
class CloudSecurityAssetIterator(api, **kw)[source]