KeyPair Functions¶
-
class
ai.backend.client.keypair.
KeyPair
(access_key)[source]¶ Provides interactions with keypairs.
-
session
= None¶ The client session instance that this function class is bound to.
-
classmethod await
create
(user_id, is_active=True, is_admin=False, resource_policy=None, rate_limit=None, fields=None)[source]¶ Creates a new keypair with the given options. You need an admin privilege for this operation.
- Return type
-
classmethod await
update
(access_key, is_active=None, is_admin=None, resource_policy=None, rate_limit=None)[source]¶ Creates a new keypair with the given options. You need an admin privilege for this operation.
- Return type
-
classmethod await
list
(user_id=None, is_active=None, fields=None)[source]¶ Lists the keypairs. You need an admin privilege for this operation.
-
await
info
(fields=None)[source]¶ Returns the keypair’s information such as resource limits.
New in version 18.12.
- Return type
-