getOffer

Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.

Samples


fun main() { 
   //sampleStart 
   // Invoke GetOffer for Contract Pricing offer
val resp = marketplaceDiscoveryClient.getOffer {
    offerId = "offer-sampleContractId"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Invoke GetOffer for Usage Pricing offer
val resp = marketplaceDiscoveryClient.getOffer {
    offerId = "offer-sampleUsageId"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Invoke GetOffer for BYOL Pricing offer
val resp = marketplaceDiscoveryClient.getOffer {
    offerId = "offer-sampleByolId"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Invoke GetOffer for FREE Pricing offer
val resp = marketplaceDiscoveryClient.getOffer {
    offerId = "offer-sampleFreeId"
} 
   //sampleEnd
}