GetAgreementTerms
Obtains details about the terms in an agreement that you participated in as proposer or acceptor.
The details include:
-
TermType
– The type of term, such asLegalTerm
,RenewalTerm
, orConfigurableUpfrontPricingTerm
. -
TermID
– The ID of the particular term, which is common between offer and agreement. -
TermPayload
– The key information contained in the term, such as the EULA forLegalTerm
or pricing and dimensions for various pricing terms, such asConfigurableUpfrontPricingTerm
orUsageBasedPricingTerm
.
-
Configuration
– The buyer/acceptor's selection at the time of agreement creation, such as the number of units purchased for a dimension or setting theEnableAutoRenew
flag.
Request Syntax
{
"agreementId": "string
",
"maxResults": number
,
"nextToken": "string
"
}
Request Parameters
The request accepts the following data in JSON format.
Note
In the following list, the required parameters are described first.
- agreementId
-
The unique identifier of the agreement.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
^[A-Za-z0-9_/-]+$
Required: Yes
- maxResults
-
The maximum number of agreements to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 50.
Required: No
- nextToken
-
A token to specify where to start pagination
Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
^[a-zA-Z0-9+/=]+$
Required: No
Response Syntax
{
"acceptedTerms": [
{ ... }
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- acceptedTerms
-
A subset of terms proposed by the proposer that have been accepted by the acceptor as part of the agreement creation.
Type: Array of AcceptedTerm objects
- nextToken
-
A token to specify where to start pagination
Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
^[a-zA-Z0-9+/=]+$
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
User does not have sufficient access to perform this action.
HTTP Status Code: 400
- InternalServerException
-
Unexpected error during processing of request.
HTTP Status Code: 500
- ResourceNotFoundException
-
Request references a resource which does not exist.
HTTP Status Code: 400
- ThrottlingException
-
Request was denied due to request throttling.
HTTP Status Code: 400
- ValidationException
-
The input fails to satisfy the constraints specified by the service.
HTTP Status Code: 400
Examples
Sample request
This example illustrates one usage of GetAgreementTerms.
{ "agreementId": "fEXAMPLE-0aa6-4e42-8715-6a1EXAMPLE95" }
Sample response
This example illustrates one usage of GetAgreementTerms.
{ "AcceptedTerms": [{ "ConfigurableUpfrontPricingTerm": { "Type": "ConfigurableUpfrontPricingTerm", "CurrencyCode": "USD", "RateCards": [{ "Selector": { "Type": "Duration", "Value": "P24M" }, "Constraints": { "MultipleDimensionSelection": "Allowed", "QuantityConfiguration": "Allowed" }, "RateCard": [{ "DimensionKey": "AdminUsers", "Price": "0.5" }, { "DimensionKey": "ReadOnlyUsers", "Price": "1" } ] }, { "Selector": { "Type": "Duration", "Value": "P36M" }, "Constraints": { "MultipleDimensionSelection": "Allowed", "QuantityConfiguration": "Allowed" }, "RateCard": [{ "DimensionKey": "AdminUsers", "Price": "1" }, { "DimensionKey": "ReadOnlyUsers", "Price": "2" } ] } ], "Configuration": { "Dimensions": [{ "DimensionKey": "AdminUsers", "DimensionValue": 1 }], "SelectorValue": "P24M" } } }, { "RenewalTerm": { "Type": "RenewalTerm", "Configuration": { "EnableAutoRenew": false } } }, { "legalTerm": { "type": "LegalTerm", "documents": [{ "type": "CustomEula", "url": "URL" }] } } ], "nextToken": null }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: