List security categories
- async AsyncCogniteClient.iam.security_categories.list(
- limit: int | None = 25,
- sort: Literal['ASC', 'DESC'] = 'ASC',
-
- Parameters:
limit (int | None) – Max number of security categories to return. Defaults to 25. Set to -1, float(“inf”) or None to return all items.
sort (Literal['ASC', 'DESC']) – Sort order of the security categories. Defaults to “ASC”.
- Returns:
List of security categories
- Return type:
Example
List security categories:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> res = client.iam.security_categories.list()