Skip to content

/AWS1/CL_MPG=>SEARCHAGREEMENTS()

About SearchAgreements

Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.

The following filter combinations are supported:

  • PartyType as Proposer + AgreementType + ResourceIdentifier

  • PartyType as Proposer + AgreementType + OfferId

  • PartyType as Proposer + AgreementType + AcceptorAccountId

  • PartyType as Proposer + AgreementType + Status

  • PartyType as Proposer + AgreementType + ResourceIdentifier + Status

  • PartyType as Proposer + AgreementType + OfferId + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + Status

  • PartyType as Proposer + AgreementType + ResourceType + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId

  • PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceIdentifier

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceIdentifier + Status

  • PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType

Method Signature

IMPORTING

Optional arguments:

IV_CATALOG TYPE /AWS1/MPGCATALOG /AWS1/MPGCATALOG

The catalog in which the agreement was created.

IT_FILTERS TYPE /AWS1/CL_MPGFILTER=>TT_FILTERLIST TT_FILTERLIST

The filter name and value pair used to return a specific list of results.

The following filters are supported:

  • ResourceIdentifier – The unique identifier of the resource.

  • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

  • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

  • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

  • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

  • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

  • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

  • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

  • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

IO_SORT TYPE REF TO /AWS1/CL_MPGSORT /AWS1/CL_MPGSORT

An object that contains the SortBy and SortOrder attributes.

IV_MAXRESULTS TYPE /AWS1/MPGMAXRESULTS /AWS1/MPGMAXRESULTS

The maximum number of agreements to return in the response.

IV_NEXTTOKEN TYPE /AWS1/MPGNEXTTOKEN /AWS1/MPGNEXTTOKEN

A token to specify where to start pagination.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MPGSRCHAGREEMENTSOUT /AWS1/CL_MPGSRCHAGREEMENTSOUT