Aller au contenu
NimbusNexus

Données tarifaires

Les endpoints des données tarifaires sont un flux en lecture seule de ce que facture NimbusNexus, avec un endpoint par type de ressource :

  • GET /api/v1/pricing/vm — les tailles de VM. architecture et vm_class sont obligatoires ; cpu et ram restreignent la liste.
  • GET /api/v1/pricing/storage — le stockage en bloc, pour un volume_type donné.
  • GET /api/v1/pricing/port, /api/v1/pricing/floating_ip et /api/v1/pricing/image — les ports réseau, les IP flottantes et le stockage des images.
  • GET /api/v1/pricing/bandwidth — la bande passante sortante.

Chaque prix est accompagné de sa période de facturation : unique, horaire, journalière, mensuelle ou annuelle. Vous n’avez pas besoin de vous connecter pour les lire. Un appelant dont la portée est l’un de vos projets voit les prix qui s’appliquent à votre espace de travail ; tout autre appelant voit les prix catalogue.

Cas d’usage : intégrer des estimations de coûts en temps réel dans votre processus de provisionnement (afficher « cette VM coûtera $X/mois » avant que l’utilisateur clique sur Launch), construire des outils internes d’attribution des coûts, ou simplement tenir votre propre tableur « ce que NimbusNexus facture pour X en ce moment ».

Les prix sont exprimés en USD.

Étapes suivantes

Reference

GET/api/v1/pricing/bandwidth

Bandwidth Pricing

Returns prices for outbound network bandwidth available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—

Responses

  • 200Successful Response
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/bandwidth" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/pricing/floating_ip

Floating Ip Pricing

Returns prices for floating IP addresses available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—

Responses

  • 200Successful Response
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/floating_ip" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/pricing/image

Image Pricing

Returns prices for image storage available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—

Responses

  • 200Successful Response
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/image" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/pricing/port

Port Pricing

Returns prices for networking ports available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—

Responses

  • 200Successful Response
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/port" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/pricing/storage

Storage Pricing

Returns prices for block storage volumes available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—
volume_type*querystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/storage?volume_type=example" \
  -H "Authorization: Bearer $NIMBUS_KEY"
GET/api/v1/pricing/vm

Vm Pricing

Returns prices for virtual machine flavors available to the caller.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
product_categoryquerystring—
plan_typequeryPlanType | null—
architecture*querystring—
vm_class*querystring—
cpuqueryinteger | null—
ramqueryinteger | null—

Responses

  • 200Successful Response
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/pricing/vm?architecture=example&vm_class=example" \
  -H "Authorization: Bearer $NIMBUS_KEY"

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