Skip to content

Latest commit

 

History

History
74 lines (42 loc) · 2.32 KB

OffersApi.md

File metadata and controls

74 lines (42 loc) · 2.32 KB

\OffersApi

All URIs are relative to https://api.scaleway.com

Method HTTP request Description
get_offer GET /baremetal/v1/zones/{zone}/offers/{offer_id} Get offer
list_offers GET /baremetal/v1/zones/{zone}/offers List offers

get_offer

crate::models::ScalewayPeriodBaremetalPeriodV1PeriodOffer get_offer(zone, offer_id) Get offer

Return specific offer for the given ID.

Parameters

Name Type Description Required Notes
zone String The zone you want to target [required]
offer_id String ID of the researched Offer [required]

Return type

crate::models::ScalewayPeriodBaremetalPeriodV1PeriodOffer

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_offers

crate::models::ScalewayPeriodBaremetalPeriodV1PeriodListOffersResponse list_offers(zone, page, page_size, subscription_period) List offers

List all available server offers.

Parameters

Name Type Description Required Notes
zone String The zone you want to target [required]
page Option<i32> Page number [default to 1]
page_size Option<i32> Number of offers per page [default to 20]
subscription_period Option<String> Period of subscription to filter offers [default to unknown_subscription_period]

Return type

crate::models::ScalewayPeriodBaremetalPeriodV1PeriodListOffersResponse

Authorization

scaleway

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]