@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api MarketplaceOrdering.Agreements
@base https://management.azure.com
@version 2015-06-01
@auth OAuth2
@common_fields {api-version: any # The API version to use for the request.}
@endpoints 7
@toc subscriptions(6), providers(1)

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current
@desc Get marketplace terms.
@required {subscriptionId: any # The subscription ID that identifies an Azure subscription., offerType: any # Offer Type, currently only virtualmachine type is supported., publisherId: any # Publisher identifier string of image being deployed., offerId: any # Offer identifier string of image being deployed., planId: any # Plan identifier string of image being deployed.}
@returns(200) Terms returned successfully
@errors {415: Unsupported Media Type}

@endpoint PUT /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/offerTypes/{offerType}/publishers/{publisherId}/offers/{offerId}/plans/{planId}/agreements/current
@desc Save marketplace terms.
@required {offerType: any # Offer Type, currently only virtualmachine type is supported., subscriptionId: any # The subscription ID that identifies an Azure subscription., publisherId: any # Publisher identifier string of image being deployed., offerId: any # Offer identifier string of image being deployed., planId: any # Plan identifier string of image being deployed., parameters: map # Parameters supplied to the Create Marketplace Terms operation.}
@returns(200) OK. The request was successfully processed and the terms were accepted or acceptance revoked as per the request body.
@errors {415: Unsupported Media Type}

@endgroup

@group providers
@endpoint GET /providers/Microsoft.MarketplaceOrdering/operations
@desc Lists all of the available Microsoft.MarketplaceOrdering REST API operations.
@returns(200) OK. The request has succeeded.
@errors {415: Unsupported Media Type}

@endgroup

@group subscriptions
@endpoint POST /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign
@desc Sign marketplace terms.
@required {subscriptionId: any # The subscription ID that identifies an Azure subscription., publisherId: any # Publisher identifier string of image being deployed., offerId: any # Offer identifier string of image being deployed., planId: any # Plan identifier string of image being deployed.}
@returns(200) OK. The request was successfully processed and the terms were accepted.
@errors {415: Unsupported Media Type}

@endpoint POST /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/cancel
@desc Cancel marketplace terms.
@required {subscriptionId: any # The subscription ID that identifies an Azure subscription., publisherId: any # Publisher identifier string of image being deployed., offerId: any # Offer identifier string of image being deployed., planId: any # Plan identifier string of image being deployed.}
@returns(200) OK. The request was successfully processed and the terms were rejected.
@errors {415: Unsupported Media Type}

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}
@desc Get marketplace agreement.
@required {subscriptionId: any # The subscription ID that identifies an Azure subscription., publisherId: any # Publisher identifier string of image being deployed., offerId: any # Offer identifier string of image being deployed., planId: any # Plan identifier string of image being deployed.}
@returns(200) Terms returned successfully
@errors {415: Unsupported Media Type}

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements
@desc List marketplace agreements in the subscription.
@required {subscriptionId: any # The subscription ID that identifies an Azure subscription.}
@returns(200) Terms returned successfully
@errors {415: Unsupported Media Type}

@endgroup

@end
