Accounts-accountNumber-dedicatedServers-serverId-ipAddresses-ipAddr-monitoring-notificationGroups-groupId-contacts:GET
From Hostway API Documentation
(Difference between revisions)
Corinne.chui (Talk | contribs) m (1 revision) |
Latest revision as of 14:36, 30 May 2016
[edit] GET /accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts
This API call is deprecated!
List contacts
Contents |
[edit] Request
GET /accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts
[edit] Request Parameters
- accountNumber - string
- serverId - string
- ipAddr - string
- groupId - string
- Id of the notification group
[edit] URI Parameters
None
[edit] Request Headers
- Authorization
- Specify the Authorization header when requesting details for an order that was already submitted. Follow the instructions for API Authentication.
[edit] Response
[edit] 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
[edit] Response Body
{ "links": [ { "href": "{{APIBaseURL}}/accounts/{accountNumber}/dedicatedServers/{serverId}/ipAddresses/{ipAddr}/monitoring/notificationGroups/{groupId}/contacts", "rel": "self" } ], "contacts": [ { "href": "{contactLocation}", "rel": "related" } ] }
[edit] 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.
[edit] Examples
[edit] 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" } ] }
[edit] See also