get_offer_terms
¶
get_offer_terms(
offer_id: OfferId,
*,
config_overrides: Optional[MarketplaceDiscoveryClientConfig] = None,
locale: Optional[Locale] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> GetOfferTermsOutput
Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.
Parameters:
-
locale(Optional[Locale], default:None) –A BCP 47 language tag or comma-separated priority list specifying the preferred locale for response content. See
Localefor supported values, constraints, fallback behavior, and the default locale. If omitted, the service returns content in the default locale. -
offer_id(OfferId) –The unique identifier of the offer whose terms to retrieve.
-
max_results(Optional[int], default:None) –The maximum number of results that are returned per call. You can use
nextTokento get more results. -
next_token(Optional[NextToken], default:None) –If
nextTokenis returned, there are more results available. Make the call again using the returned token to retrieve the next page.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–Unexpected error during processing of the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
GetOfferTerms for Usage-based ML Model offer
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleUsageBasedId')
GetOfferTerms for BYOL offer
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleByolId')
GetOfferTerms for configurable upfront pricing
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleConfigUpfrontId')
GetOfferTerms for free trial offer
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleFreeTrialId')
GetOfferTerms for recurring payment
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleRecurringId')
GetOfferTerms for variable payment
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleVariableId')
GetOfferTerms for renewal term
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalId')
GetOfferTerms for renewal term with fixed percentage
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalFixedId')
GetOfferTerms for renewal term with identical pricing (no price increase)
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleRenewalNoPriceIncreaseId')
GetOfferTerms for support term
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleSupportId')
GetOfferTerms for validity term with dates
>>> client.get_offer_terms(locale='en-US', offer_id='offer-sampleValidityId')
GetOfferTerms for net payment term
Source code in docs_src/capo_marketplace_discovery/_services/marketplace_discovery.py
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 | |