Delete Subscription Add-on Approval Event Notification
Applies To: Windows Azure Pack
Creates a subscription Add-on deletion approval notification event. A request for subscription Add-on deletion approval can be determined from the Plan Add-on Reference UsageEvent notification object Method element passed with the request body. The value will be “DELETE” for a subscription Add-on deletion request.
Request
<BillingAdapterEndpoint> is the name of the computer that hosts the billing adapter endpoint.
Method |
Request URI |
HTTP version |
---|---|---|
POST |
http://<BillingAdapterEndpoint>/subscriptionAddons |
HTTP/1.1 |
URI Parameters
None.
Request Headers
The following table describes required and optional request headers.
Request header |
Description |
---|---|
Authorization: Basic |
Required. The basic authorization token. |
Request Body
The following table describes the key elements of the request body.
Element name |
Description |
---|---|
UsageEvent |
Plan Add-on reference event information. For more information, see UsageEvent (Usage Metering Object). For deletion, the Method element value will be “Delete”. |
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
This call is registered as blocking. Windows Azure Pack for Windows Server waits until a response is received. Return a status code less than 400 to indicate approval of the event. Return a status code greater than or equal to 400 to indicate the event is not approved.
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
None.
Example
The following code example shows a Delete Subscription Add-on Approval Event Notification request.
POST /usage/subscriptionAddons HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: 10.121.217.127:8888
Content-Length: 279
Expect: 100-continue
{
"EventId": 6542,
"State": 2,
"Method": "DELETE",
"Entity": {
"AddOnId": "Examphlztgjzw",
"AddOnInstanceId": "e19a33a4-db8d-46d8-ac84-9c87e3c80531",
"AcquisitionTime": null
},
"EntityParentId": "0a53e53d-1334-424e-8c63-ade05c361be2",
"NotificationEventTimeCreated": "2013-09-25T00:37:59.4974839Z"
}