Export (0) Print
Expand All

Retrieve Network Alerts

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves all health alerts in the network.

URI Template

GET services/builtin/AlertManagement.svc/alerts/index/{index}/count/{count}

{count}
The number of items to be retrieved.

{index}
The numerical position of the first item to be retrieved.

Sample Request

GET https://www.contoso.com/services/builtin/AlertManagement.svc/alerts/index/0/count/100 HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname


Sample Response

HTTP/1.1 200 OK
<PartialCollection_Of_AlertInfo
    xmlns="http://contracts.microsoft.com/WindowsServerSolutions/2011/09/ManagementWebApi"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CollectionChunk>
    <AlertInfo>
      <CanRepair>false</CanRepair>
      <DateAndTime>2011-10-31T07:14:51.718463Z</DateAndTime>
      <Description>
        Your server must be activated now to restore full functionality. &#xD;
        &#xD;
        Note: If you set up your server to be activated automatically, you may see this message if the activation process did not succeed.
      </Description>
      <IsSuppressed>false</IsSuppressed>
      <Key>S-1-5-21-803684111-2214504341-3166393602-1000$MicrosoftBase$GracePeriodExpiredRetail</Key>
      <MachineName>SERVERNAME</MachineName>
      <Severity>Critical</Severity>
      <Title>Activate now</Title>
      <TroubleshootingSteps i:nil="true"/>
    </AlertInfo>
  <CollectionModified>2011-10-31T00:31:45.8129912-07:00</CollectionModified>
  <CollectionSize>6</CollectionSize>>
</PartialCollection_Of_AlertInfo>

Error Codes

 

Error Code Error Message

400

One or more parameters are not valid.

401

Access is denied to the requested resource.

See Also

Show:
© 2015 Microsoft