Retrieve the Pricing Information for an Add-on
Applies To: Windows Azure Pack
Retrieves the pricing information for an add-on.
Request
Replace <BillingSystem> with the name of the computer that hosts the usage endpoint for the Windows Azure Pack.
Method |
Request URI |
HTTP version |
---|---|---|
GET |
https:// <BillingSystem>:30022/addonPrice |
HTTP/1.1 |
URI Parameters
The following table describes the URI parameters.
URI parameter |
Description |
---|---|
id |
The identifier of the add-on to retrieve the price for. |
region |
The region to which the price applies. |
username |
The tenant user name. |
subscriptionid |
The identifier of the tenant’s subscription. |
Request Headers
The following table describes required and optional request headers.
Request header |
Description |
---|---|
Authorization: Basic |
Required. The basic authorization token. |
Request Body
None.
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
A successful operation returns status code 200 (OK).
For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).
Response Headers
The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
Response Body
The following table describes the key elements of the response body.
Element name |
Description |
---|---|
String |
A string that contains the pricing information. |
Remarks
This API is implemented in the billing adapter and is called when a tenant user adds an add-on to their account in the MyAccounts extension.
The implementation of this API is optional. If the API is implemented, the pricing information for the add-on is displayed in the Windows Azure Pack tenant site when the add-on is added.
The price information is not cached by Windows Azure Pack and is returned in real-time.