Share via


Retrieve the Pricing Information for a Plan

 

Applies To: Windows Azure Pack

Retrieves the pricing information for a plan.

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/planPrice

HTTP/1.1

URI Parameters

The following table describes the URI parameters.

URI parameter

Description

id

The identifier of the plan to retrieve the price for.

region

The region to which the price applies.

username

The user name of the tenant.

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 a plan to their account in the MyAccounts extension.

The implementation of this API is optional. If the API is implemented, the pricing information for the plan is displayed in the Windows Azure Pack tenant site when the plan is added.

The price information is not cached by Windows Azure Pack and is returned in real-time.

See Also

Windows Azure Pack Usage Service Pricing REST API Reference