Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions platform/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ paths:
$ref: "./paths/announcements/announcements.yml"

# --Billing
"/v1/billing/status":
$ref: "./paths/billing/status.yml"
## Credits
"/v1/billing/credits":
$ref: "./paths/billing/credits/credits.yml"
Expand Down Expand Up @@ -377,10 +379,10 @@ paths:
$ref: "./paths/containers/instances/tasks.yml"
"/v1/containers/{containerId}/instances/{instanceId}/volumes":
$ref: "./paths/containers/instances/volumes.yml"
"/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/report":
$ref: paths/containers/instances/telemetry/report.yml
"/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/stream":
$ref: paths/containers/instances/telemetry/stream.yml
? "/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/report"
: $ref: paths/containers/instances/telemetry/report.yml
? "/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/stream"
: $ref: paths/containers/instances/telemetry/stream.yml
"/v1/containers/{containerId}/instances/{instanceId}/console":
$ref: "paths/containers/instances/console.yml"
"/v1/containers/{containerId}/functions/tasks":
Expand Down
27 changes: 27 additions & 0 deletions platform/paths/billing/status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
get:
operationId: "getBillingStatus"
summary: Get Billing Status
description: |
Retrieve meta details about the billing status of this Cycle core. It is unlikely that someone would need this endpoint outside
of Cycle's internal teams.
tags:
- Billing
parameters: []
responses:
200:
description: Returns details about the billing status of this Cycle core.
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
properties:
enabled:
type: boolean
description: Whether billing is enabled for this core. Generally, this will only be false for dedicated cores.
default:
$ref: ../../../components/responses/errors/DefaultError.yml