Skip to content
NimbusNexus

Cross-project trusts

A trust is a short-lived delegation from you to NimbusNexus's own service user, on one of your projects. NimbusNexus creates one when it has to finish work for you after your call returns, such as a queued VM create or delete or a volume create, and when you mint an object-storage credential. A trust record shows the trustor_user_id (you), the trustee_user_id (NimbusNexus), the project_id, the roles (member on every trust NimbusNexus creates), an expires_at and an impersonation flag.

The trust you create on purpose is an object-storage credential. POST /api/v1/object_storage/credentials mints one for your current project and returns its trust_id. A standalone editor presents that id in the X-Trust-Id header on object-storage calls, so it reaches the project's storage without holding your full token. ttl_seconds is a hint; the server caps it.

GET /api/v1/trusts/ lists your trusts, and GET /api/v1/trusts/{trust_id} reads one. DELETE /api/v1/trusts/{trust_id} revokes one, for example a storage credential you no longer need.

What's next

Reference

GET/api/v1/trusts/

List Trusts

List the trust delegations the caller has granted to NimbusNexus's service account.

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/trusts/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/trusts/{trust_id}

Get Trust

Retrieve a single trust delegation by ID.

Parameters

NameInTypeDescription
trust_id*pathstring—

Responses

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

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/trusts/<trust_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/trusts/{trust_id}

Delete Trust

Revoke and delete a trust delegation to NimbusNexus's service account by ID. Any other trust answers as an unknown ID does.

Parameters

NameInTypeDescription
trust_id*pathstring—

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/trusts/<trust_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

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