Spectra Logic
1-800-833-1132 : 1-303-449-6400


Notification Operations : Notification Operations : Create Azure Target Failure Notification Registration

Create Azure Target Failure Notification Registration
Description
Create a notification registration for Azure target failures.
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/azure_target_failure_notification_registration?notification_end_point={string}[&format=DEFAULT|JSON|XML][&naming_convention=CONCAT_LOWERCASE|CONSTANT|​​UNDERSCORED|CAMEL_CASE_WITH_FIRST_LETTER_UPPERCASE|CAMEL_CASE_WITH_FIRST_LETTER_LOWERCASE][&notification_http_method=POST|PUT]
Request Parameters
The scheme used for naming within the notification sent. Values: CONCAT_LOWERCASE, CONSTANT, UNDERSCORED, CAMEL_CASE_WITH_FIRST_LETTER_UPPERCASE (default), CAMEL_CASE_WITH_FIRST_LETTER_LOWERCASE
Responses
Response Elements
<Data>
   <CreationDate>{
YYYY-MM-DDThh:mm:ss.xxxZ}</CreationDate>
   <Format>DEFAULT|JSON|XML</Format>
   <Id>{string}</Id>
   <LastFailure>{string}</LastFailure>
   <LastHttpResponseCode>{32‑bit integer}</LastHttpResponseCode>
   <LastNotification>{YYYY-MM-DDThh:mm:ss.xxxZ}</LastNotification>
   <NamingConvention>
      CONCAT_LOWERCASE|CONSTANT|UNDERSCORED|
      CAMEL_CASE_WITH_FIRST_LETTER_UPPERCASE|
      CAMEL_CASE_WITH_FIRST_LETTER_LOWERCASE
   </NamingConvention>
   <NotificationEndPoint>{string}</NotificationEndPoint>
   <NotificationHttpMethod>POST|PUT</NotificationHttpMethod>
   <NumberOfFailuresSinceLastSuccess>
      {32‑bit integer}
   </NumberOfFailuresSinceLastSuccess>
   <UserId>{string}</UserId>
</Data>
where the response elements are defined as follows:
The scheme used for naming within the notification sent. Values: CONCAT_LOWERCASE, CONSTANT, UNDERSCORED, CAMEL_CASE_WITH_FIRST_LETTER_UPPERCASE, CAMEL_CASE_WITH_FIRST_LETTER_LOWERCASE
Example
Sample Request
This request creates a registration for Azure target failure notifications to be sent to Azure-client-hostname.
POST http://blackpearl-hostname/_rest_/azure_target_failure_notification_registration
?notification_end_point=Azure-client-hostname HTTP/1.1
 
Sample Notification Payload
Below is a sample Azure target failure notification payload:
<Name>AzureTargetFailureNotificationPayload</Name>
<Payload>
   <Date>2016-04-07T23:27:27.000Z</Date>
   <ErrorMessage>{
text}</ErrorMessage>
   <NotificationGenerationDate/>
   <TargetId>f42e7219-6285-4d39-801a-8987254e341e</TargetId>
   <Type>NOT_ONLINE</Type>
</Payload>