Accounts-accountNumber-dedicatedServers-serverId-ipAddresses-ipAddr-monitoring-notificationGroups-groupId-contacts:GET
From Hostway API Documentation
Revision as of 07:08, 13 May 2015 by Mitko.georgiev (Talk)
GET /accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts
This API call is deprecated!
List contacts
Contents |
Request
GET /accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts
Request Parameters
- accountNumber - string
- serverId - string
- ipAddr - string
- groupId - string
- Id of the notification group
URI Parameters
None
Request Headers
- Authorization
- Specify the Authorization header when requesting details for an order that was already submitted. Follow the instructions for API Authentication.
Response
Status Code
- 200 OK
- Success
- 401 Unauthorized
- This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required
- 404 Not Found
- The resource requested is not found
Response Body
{ "links": [ { "href": "{{APIBaseURL}}/accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts", "rel": "self" } ], "contacts": [ { "href": "{contactLocation}", "rel": "related" } ] }
Parameters
- contacts - list
- A list of all the contacts defined for the given notification group
- contactLocation - string
- URL of the specific contact's details
- links - list
- Hypermedia for this resource.
Examples
Success scenario
Request
GET https://api.hostway.com/accounts/test-ng-358536378/dedicatedServers/test-ng-358536378-000001338fd091e0419d18a5000a3122/ipAddresses/11.11.10.3/monitoring/notificationGroups/186/contacts/
Response
{ "links": [ { "href": "{{APIBaseURL}}/accounts/test-ng-358536378/dedicatedServers/test-ng-358536378-000001338fd091e0419d18a5000a3122/ipAddresses/11.11.10.3/monitoring/notificationGroups/186/contacts/", "rel": "self" } ], "contacts": [ { "href": "{{APIBaseURL}}/accounts/test-ng-358536378/dedicatedServers/test-ng-358536378-000001338fd091e0419d18a5000a3122/ipAddresses/11.11.10.3/monitoring/notificationGroups/186/contacts/337", "rel": "related" }, { "href": "{{APIBaseURL}}/accounts/test-ng-358536378/dedicatedServers/test-ng-358536378-000001338fd091e0419d18a5000a3122/ipAddresses/11.11.10.3/monitoring/notificationGroups/186/contacts/338", "rel": "related" } ] }
See also