{{getMsg('Help_YouAreHere')}}:
/
{{page.title}}
{{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}}
{{helpModel.downloadHelpPdfDataStatus}}
SLA Details
By adding an SLA's key in the URL, you will be able to retrieve information about this SLA. It contains a list of fields with label and value for the specific SLA.
GET /api/inventory/sla/<sla-id>
Get SLA detail information in the form of a list of property entries.
RESPONSE Fields | Value Type | Description |
---|---|---|
id | String | The ID of the selected entry |
name | String | The name of the selected entry |
icon | String | The icon URL |
deleted | Boolean | True, if the entry is marked as deleted |
detailFields | List | A list of detail field entries |
detailFields.key | String | The unique key for this field |
detailFields.label | String | The label of this field |
detailFields.value | String | The value of this field for the requested SLA |
Example Request
# Request GET /api/inventory/sla/4 HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json { "id": "4", "name": "Entwicklung", "icon": "4", "deleted": false, "detailFields": [ { "key": "resource", "label": "Resource", "value": "" }, { "key": "agreement", "label": "Agreement", "value": "Die Entwicklung wird durch die Firma DEBZ betreut." } ] }
Application Example
# Browser access http://127.0.0.1:9000/api/inventory/sla/1 # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/inventory/sla/1" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/inventory/sla/1"