Перейти до вмісту
NimbusNexus

Дані про ціни

Ендпоінти даних про ціни — це потік лише для читання з цінами NimbusNexus, по одному ендпоінту на кожен вид ресурсу:

  • GET /api/v1/pricing/vm — розміри VM. architecture і vm_class обовʼязкові; cpu і ram звужують список.
  • GET /api/v1/pricing/storage — блокове сховище, для одного volume_type.
  • GET /api/v1/pricing/port, /api/v1/pricing/floating_ip і /api/v1/pricing/image — мережеві порти, плаваючі IP і зберігання образів.
  • GET /api/v1/pricing/bandwidth — вихідний трафік.

Кожна ціна має свій розрахунковий період: одноразово, щогодини, щодня, щомісяця або щороку. Щоб їх прочитати, входити не потрібно. Виклик, привʼязаний до одного з ваших проєктів, отримує ціни, що діють для вашого робочого простору; будь-який інший — ціни з прайс-листа.

Сценарії використання: вбудовування оцінок вартості в реальному часі у ваш процес розгортання (показати «ця VM коштуватиме $X/міс», перш ніж користувач натисне Launch), створення внутрішніх інструментів для розподілу витрат або просто ведення власної таблиці «скільки NimbusNexus бере за X прямо зараз».

Ціни вказано в USD.

Що далі

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 →