İçeriğe geç
R-Service R-Service
Документация Р-Сервис

Service Level Agreements - Sites API

Bu içerik henüz dilinizde mevcut değil.

This API only works for service level agreements whose Coverage field value is set to sites or organizations_and_sites .

List all sites of a service level agreement with a specific ID.

GET /slas/:id/sites
Status: 200 OK
[
{
"name": "Widget Data Center",
"created_at": "2016-03-14T03:09:52-06:00",
"sourceID": null,
"updated_at": "2016-03-14T03:09:52-06:00",
"id": 13
},
{
"name": "IT Training Facility",
"created_at": "2016-03-14T09:10:17-06:00",
"sourceID": null,
"updated_at": "2014-01-18T11:29:02-06:00",
"id": 29,
"disabled": true
},
"..."
]

The response contains these fields by default.

The following predefined filters are available:

  • /slas/:id/sites/disabled : List all disabled sites of a service level agreement with a specific ID
  • /slas/:id/sites/enabled : List all enabled sites of a service level agreement with a specific ID

Add a link between a service level agreement with a specific ID and a site with a specific ID.

POST /slas/:id/sites/:site_id
Status: 200 OK
{}

Remove the link between a service level agreement with a specific ID and a site with a specific ID.

DELETE /slas/:id/sites/:site_id
Status: 204 No Content

Remove all links between a service level agreement with a specific ID and its sites.

DELETE /slas/:id/sites
Status: 204 No Content