Retrieve Subscription Add-on Events

 

Applies To: Windows Azure Pack

Retrieves the list of subscription add-on events.

Replace <UsageEndpoint> with the name of the computer that hosts the usage endpoint for the Windows Azure Pack.

Method

Request URI

HTTP version

GET

https://<UsageEndpoint>:30022/billing/subscriptionAddons

HTTP/1.1

The following table describes the URI parameters.

URI parameter

Description

startId

The identifier of the first record to retrieve.

batchSize

The maximum number of records to retrieve.

The following table describes required and optional request headers.

Request header

Description

Authorization: Basic

Required. The basic authorization token.

The response includes an HTTP status code, a set of response headers, and a response body.

A successful operation returns status code 200 (OK).

For information about status codes, see Status and Error Codes (Windows Azure Pack Service Management).

The response for this operation includes standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

The following table describes the key elements of the response body.

Element name

Description

UsageEventList

A list of subscription add-on events. For more information, see UsageEvent (Usage Metering Object).

The following code example shows a Get Subscription Add-on Events request.

https://<Computer>:30022/billing/subscriptionAddons?startId=0&batchSize=1 HTTP/1.1
Accept: application/json
Authorization: basic <Token>
Host: <Computer>:30022
Connection: Keep-Alive

The following code example shows a Get Subscription Add-on Events response.

[
  {
    "EventId": 344,
    "State": 0,
    "Method": "POST",
    "Entity": {
      "AddOnId": "mabcahkmvf2qd",
      "AddOnInstanceId": null,
      "AcquisitionTime": null
    },
    "EntityParentId": "6e2cefaa-73e8-44a1-80b3-a5fbd8dcff39",
    "NotificationEventTimeCreated": "2013-08-21T20:38:21.143"
  }
]













Show: