Ir para o conteúdo
NimbusNexus

Dados de preços

Os endpoints de dados de preços são um feed somente leitura do que a NimbusNexus cobra, com um endpoint por tipo de recurso:

  • GET /api/v1/pricing/vm — tamanhos de VM. architecture e vm_class são obrigatórios; cpu e ram restringem a lista.
  • GET /api/v1/pricing/storage — armazenamento em blocos, para um volume_type.
  • GET /api/v1/pricing/port, /api/v1/pricing/floating_ip e /api/v1/pricing/image — portas de rede, IPs flutuantes e armazenamento de imagens.
  • GET /api/v1/pricing/bandwidth — largura de banda de saída.

Cada preço vem com o seu período de faturamento: uma única vez, por hora, por dia, por mês ou por ano. Não é preciso fazer login para lê-los. Quem chama com escopo de um dos seus projetos vê os preços que valem para o seu workspace; qualquer outra pessoa vê os preços de tabela.

Casos de uso: integrar estimativas de custo em tempo real ao seu fluxo de provisionamento (mostrar "esta VM vai custar $X/mês" antes que o usuário clique em Launch), criar ferramentas internas de atribuição de custos ou simplesmente manter sua própria planilha de "quanto a NimbusNexus cobra por X agora".

Os preços são cotados em USD.

Próximos passos

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 →