Revoke a session

async AsyncCogniteClient.iam.sessions.revoke(
id: int | Sequence[int],
) RevokedSession | RevokedSessionList

Revoke access to a session.

Revocation of a session may in some cases take up to 1 hour to take effect.

Parameters:

id (int | Sequence[int]) – Id or list of session ids

Returns:

Revoked session(s). If the caller lacks sessionsAcl:LIST, only the

session ID will be present; all other fields will be None.

Return type:

RevokedSession | RevokedSessionList