Aller au contenu
NimbusNexus

Espaces de travail

Un espace de travail est le niveau d’isolation le plus élevé du modèle de compte NimbusNexus. Chaque projet appartient à exactement un espace de travail ; l’accès de chaque utilisateur a pour portée des espaces de travail (et des projets précis en leur sein). La hiérarchie est espace de travail → projet → ressource.

Pour la plupart des comptes, un seul espace de travail suffit. Les grandes organisations utilisent plusieurs espaces de travail pour séparer la facturation, les accès et les limites de ressources au niveau des unités organisationnelles — par exemple un espace de travail par division, ou un par entité juridique. La facturation se fait par espace de travail, et l’accès ne franchit la frontière d’un espace de travail que lorsque vous l’ouvrez : vous y invitez quelqu’un, ou vous partagez un réseau ou une zone DNS avec un autre projet.

Ne confondez pas un espace de travail avec une zone DNS — c’est le même mot dans certains contextes (OpenStack appelle les espaces de travail des « domaines »). L’API garde le mot d’OpenStack : les endpoints des espaces de travail se trouvent sous /api/v1/domains/, et leurs champs emploient aussi « domain » (domain_id, domain_name, domain_description).

Étapes suivantes

  • Projets — le niveau en dessous ; ce que contiennent les espaces de travail.
  • Utilisateurs et Rôles — les autorisations IAM ont pour portée un espace de travail.
  • Délégations inter-projets — des délégations de courte durée qui permettent à NimbusNexus de terminer un travail pour vous sur un projet.

Reference

GET/api/v1/domains/

Find Domain

List domains visible to the caller, optionally filtered by a name search term.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
searchquerystring | null—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 500Internal Server Error

Example

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

Create Domain

Create a new domain. Needs a system admin.

Request body

FieldTypeDescription
name*stringDomain name
descriptionstring | null—
enabledboolean | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/domains/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
PATCH/api/v1/domains/

Update Domain

Update the name, description or enabled state of an existing domain. Needs a system admin. The platform's own domains can't be renamed or disabled.

Request body

FieldTypeDescription
domain_id*stringDomain ID
domain_namestring | null—
domain_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/domains/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain_id": "<domain_id>"
  }'
DELETE/api/v1/domains/

Delete Domain

Disable (if needed) and delete a domain along with its descendants. Needs a system admin. The platform's own domains can't be deleted. If the delete fails, a domain this call disabled is enabled again.

Request body

FieldTypeDescription
id*stringDomain ID

Responses

  • 204Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation Error
  • 500Internal Server Error

Example

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

Invite To Domain

Invite a user by email to a domain with the specified role and notify them in-app and via email.

Request body

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

Responses

  • 201Successful Response
  • 422Validation Error

Example

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

Invite Action

Accept or decline a pending domain 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/domains/invite_action" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "access": true,
    "notification_id": "<notification_id>"
  }'
GET/api/v1/domains/{domain_id}

Show Domain

Retrieve a single domain by ID. Needs a role on the domain or on one of its projects, or a session in admin mode.

Parameters

NameInTypeDescription
domain_id*pathstring—

Responses

  • 200Successful Response
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/domains/<domain_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY"

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