Skip to content
NimbusNexus

Projects

A project is the unit of isolation on NimbusNexus — for resources and access control. Every project belongs to one workspace. Every resource (VM, volume, bucket, network, …) belongs to exactly one project, and every API key is scoped to exactly one project. Billing is per workspace: one bill covers all of its projects.

Why projects matter

Two guarantees the project boundary gives you:

  1. Blast radius. A compromised API key for the dev project can't touch prod resources. They literally aren't visible from inside dev.
  2. Quota. Quotas are per-project. One project running away with VM creates doesn't drain another project's headroom.

Creating a project

POST /api/v1/projects/ takes the workspace's ID as domain_id, a project_name and, optionally, a project_description and enabled. The name must be unique in the workspace, or the API answers 409. A workspace can have a limit on how many projects it holds; past it, create answers 403.

Projects sit side by side in their workspace. The API has no way to nest one project under another.

What lives in a project

  • VMs, volumes, backups
  • Buckets
  • Networks, subnets, routers, security groups, floating IPs, load balancers
  • DNS zones + records
  • Role assignments and API keys (the users they belong to live in the workspace)

Projects can't be merged. To consolidate two projects, you'd export-and-reimport the resources and delete the original — there's no atomic merge operation, deliberately, because the resulting "what got merged where" attribution would be unauditable.

Deletion

DELETE /api/v1/projects/ takes the project's id in the request body, and it's irreversible. It removes the project's default network, then deletes the project and its role assignments. It deletes nothing else, so delete the project's VMs, volumes, buckets and other resources first.

What's next

  • Workspaces — the container projects live in.
  • Roles — what users hold to do anything.
  • Quotas — per-project resource limits.

Reference

GET/api/v1/projects/

Find Projects

List projects accessible to the caller within the current scope, optionally filtered by a search term.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
userquerystring | null—
domainquerystring | null—
parentquerystring | null—
searchquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/projects/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/projects/

Project Create

Create a new project in the given domain (subject to the per-domain limit) and grant the caller the manager role on it.

Request body

FieldTypeDescription
domain_id*string—
project_name*string—
project_descriptionstring | null—
enabledboolean—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/projects/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_id": "<domain_id>",
    "project_name": "example"
  }'
DELETE/api/v1/projects/

Project Delete

Delete a project after first removing any networks attached to it. Needs the manager role in a session scoped to the project's workspace, or a system admin in a session that holds the admin role.

Request body

FieldTypeDescription
id*stringProject ID

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/projects/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "example"
  }'
POST/api/v1/projects/invite

Invite To Project

Invite a user by email to a project with the specified role and notify them in-app and via email. Refused with 403 where the deployment signs in through Keycloak: invite people in the account console there.

Request body

FieldTypeDescription
project_id*stringProject ID
role_id*string—
email*string—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/projects/invite" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "<project-id>",
    "role_id": "<role_id>",
    "email": "[email protected]"
  }'
POST/api/v1/projects/invite_action

Invite Action

Accept or decline a pending project invitation, applying or revoking the offered role accordingly.

Request body

FieldTypeDescription
access*boolean—
notification_id*string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/projects/invite_action" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "access": true,
    "notification_id": "<notification_id>"
  }'
PATCH/api/v1/projects/{project_id}

Project Update

Update the mutable attributes (name, description, enabled) of an existing project.

Parameters

NameInTypeDescription
project_id*pathstring—

Request body

FieldTypeDescription
project_namestring | null—
project_descriptionstring | null—
enabledboolean | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/projects/<project-id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Need to make a real call? Try these endpoints in the live Swagger UI →