Zudoku
Unikraft Cloud Platform API

Users

Server

Unikraft Cloud user accounts are used to manage resources, grant permissions and control usage quotas when interacting with the Unikraft Cloud API.


Get Current User Quotas

GET
https://api.sfo.unikraft.cloud
/v1/users/quotas

List quota usage and limits of your user account.

Get Current User Quotas › Responses

200

The request has succeeded.

The response message for getting the quota of a user given their UUID.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.


Resume Users

PUT
https://api.sfo.unikraft.cloud
/v1/users/resume

Resume suspended user accounts by UUID(s). Removes the suspension and restores the instances that the suspension brought to rest. Requires the root permission.

Resume Users › Request Body

A single request item to resume a user account.
uuid
​string · uuid · required

The UUID of the user.

Resume Users › Responses

200

The request has succeeded.

The response message for resuming one or more user account(s) given their UUID(s).
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.


Suspend Users

PUT
https://api.sfo.unikraft.cloud
/v1/users/suspend

Suspend user accounts by UUID(s). A suspended user keeps read access to its resources but cannot create, modify, start, stop, or delete them. Its scheduled operations fail, autoscaling of its service groups stops, and autokill of its instances pauses. Requires the root permission; root users cannot be suspended.

Suspend Users › Request Body

A single request item to suspend a user account.
uuid
​string · uuid · required

The UUID of the user.

suspend_instances
​boolean

Whether to also bring all instances of the user to rest. Autostart is disabled, running instances are suspended (or stopped if they cannot be suspended, or if they only return to standby and are not stateful), and pending restarts are cancelled. Instances that are draining, stopping, or in a start-stop cycle finish that transition first. Booting instances are brought to rest once they are running. Without this flag only the account is suspended and its instances are left as they are.

Example: true

Suspend Users › Responses

200

The request has succeeded.

The response message for suspending one or more user account(s) given their UUID(s).
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.


Get User Quotas by UUID

GET
https://api.sfo.unikraft.cloud
/v1/users/{uuid}/quotas

List quota usage and limits of a user account by UUID.

Get User Quotas by UUID › path Parameters

uuid
​string · uuid · required

Get User Quotas by UUID › Responses

200

The request has succeeded.

The response message for getting the quota of a user given their UUID.
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.


Resume User by UUID

PUT
https://api.sfo.unikraft.cloud
/v1/users/{uuid}/resume

Resume a suspended user account by UUID. Removes the suspension and restores the instances that the suspension brought to rest. Requires the root permission.

Resume User by UUID › path Parameters

uuid
​string · uuid · required

Resume User by UUID › Responses

200

The request has succeeded.

The response message for resuming one or more user account(s) given their UUID(s).
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.


Suspend User by UUID

PUT
https://api.sfo.unikraft.cloud
/v1/users/{uuid}/suspend

Suspend a user account by UUID. A suspended user keeps read access to its resources but cannot create, modify, start, stop, or delete them. Its scheduled operations fail, autoscaling of its service groups stops, and autokill of its instances pauses. Requires the root permission; root users cannot be suspended.

Suspend User by UUID › path Parameters

uuid
​string · uuid · required

Suspend User by UUID › Request Body optional

Parameters for suspending a user account.
suspend_instances
​boolean

Whether to also bring all instances of the user to rest. Autostart is disabled, running instances are suspended (or stopped if they cannot be suspended, or if they only return to standby and are not stateful), and pending restarts are cancelled. Instances that are draining, stopping, or in a start-stop cycle finish that transition first. Booting instances are brought to rest once they are running. Without this flag only the account is suspended and its instances are left as they are.

Example: true

Suspend User by UUID › Responses

200

The request has succeeded.

The response message for suspending one or more user account(s) given their UUID(s).
status
​string · enum · required

The status of the response.

Enum values:
success
error
partial_success
op_time_us
​integer · uint64 · required

The operation time in microseconds.

message
​string

An optional message providing additional information about the status.

​object

The response data for this request.

A list of errors which may have occurred during the request.