Python SDK
Pricing
Public price catalog for all billable resources
2 methods
GET
list_prices()
List all prices
Parameters
servicestring
- Filter by service
resource_typestring
- Filter by resource type
active_onlyboolean
- Only return active prices
Example
from bycloud import ByCloudclient = ByCloud(token="YOUR_ACCESS_TOKEN")result = client.pricing.list_prices()print(result)
GET
get_price()
Get price by SKU
Parameters
skustring
required- SKU identifier
Example
from bycloud import ByCloudclient = ByCloud(token="YOUR_ACCESS_TOKEN")result = client.pricing.get_price(sku="example")print(result)