ByCloud Docs
GuidesCLIAPISDK

JavaScript SDK

Pricing

Public price catalog for all billable resources

2 methods

GET

listPrices()

List all prices

Parameters

service

string

- Filter by service

resource_type

string

- Filter by resource type

active_only

boolean

- Only return active prices

Example

import { ByCloud } from "@bycoded/bycloud-sdk";
const client = new ByCloud({
token: "YOUR_ACCESS_TOKEN",
});
const result = await client.pricing.listPrices();
console.log(result);
GET

getPrice()

Get price by SKU

Parameters

sku

string

required

- SKU identifier

Example

import { ByCloud } from "@bycoded/bycloud-sdk";
const client = new ByCloud({
token: "YOUR_ACCESS_TOKEN",
});
const result = await client.pricing.getPrice({
sku: "example"
});
console.log(result);