Перейти к содержимому
R-Service R-Service
Руководство разработчика RR Tech Service Management

Service Level Agreements - Organizations API

Эта документация пока недоступна на вашем языке, поэтому показана английская версия.

This API works only for service level agreements which Coverage field value is set to organizations_and_descendants , organizations or organizations_and_sites .

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

GET /slas/:id/organizations
Status: 200 OK
[
{
"id": 44,
"sourceID": null,
"name": "Widget Data Center, External IT",
"parent": {
"id": 6,
"name": "Widget Data Center"
},
"manager": {
"id": 6,
"name": "Howard Tanner"
},
"created_at": "2016-03-22T21:02:50-05:00",
"updated_at": "2016-03-25T16:54:52-05:00"
},
{
"id": 50,
"sourceID": null,
"name": "Widget North America, Finance",
"parent": {
"id": 51,
"name": "Widget North America, Inc."
},
"manager": {
"id": 120,
"name": "Carolyn Goldrat"
},
"created_at": "2016-03-22T21:02:50-05:00",
"updated_at": "2016-03-22T21:03:36-05:00"
},
"..."
]

The response contains these fields by default.

The following predefined filters are available:

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

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

POST /slas/:id/organizations/:organization_id
Status: 200 OK
{}

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

DELETE /slas/:id/organizations/:organization_id
Status: 204 No Content

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

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