ByCloud Docs
GuidesCLIAPISDK

Python SDK

Pricing

Public price catalog for all billable resources

2 methods

GET

list_prices()

List all prices

Parameters

service

string

- Filter by service

resource_type

string

- Filter by resource type

active_only

boolean

- Only return active prices

Example

from bycloud import ByCloud
client = ByCloud(token="YOUR_ACCESS_TOKEN")
result = client.pricing.list_prices()
print(result)
GET

get_price()

Get price by SKU

Parameters

sku

string

required

- SKU identifier

Example

from bycloud import ByCloud
client = ByCloud(token="YOUR_ACCESS_TOKEN")
result = client.pricing.get_price(sku="example")
print(result)