2023-09-27 11:44:30 +03:00
|
|
|
---
|
2018-08-01 11:01:02 +02:00
|
|
|
title: Management API
|
|
|
|
|
parent: API
|
|
|
|
|
weight: 81
|
2016-11-14 15:21:29 +01:00
|
|
|
---
|
|
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
The Management API is a RESTful API that enables to perform Create/Read/Update/Delete operations for provisioning
|
|
|
|
|
targets (i.e. devices) and repository content (i.e. software).
|
2018-08-01 11:01:02 +02:00
|
|
|
<!--more-->
|
2018-05-24 16:10:01 +02:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
Based on the Management API you can manage and monitor software update operations via HTTP/HTTPS. The _Management API_
|
|
|
|
|
supports JSON payload with hypermedia as well as filtering, sorting and paging. Furthermore the Management API provides
|
|
|
|
|
permission based access control and standard roles as well as custom role creation.
|
2016-11-14 15:21:29 +01:00
|
|
|
|
|
|
|
|
The API is protected and needs authentication and authorization based on the security concept.
|
|
|
|
|
|
|
|
|
|
## API Version
|
|
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
hawkBit provides an consistent Management API interface that guarantees backwards compatibility for future releases by
|
|
|
|
|
version control.
|
2016-11-14 15:21:29 +01:00
|
|
|
|
|
|
|
|
The current version of the Management API is `version 1 (v1)` with the URI http://localhost:8080/rest/v1/
|
|
|
|
|
|
|
|
|
|
## API Resources
|
|
|
|
|
|
|
|
|
|
Supported HTTP-methods are:
|
|
|
|
|
|
|
|
|
|
- GET
|
|
|
|
|
- POST
|
|
|
|
|
- PUT
|
|
|
|
|
- DELETE
|
|
|
|
|
|
|
|
|
|
## Headers
|
|
|
|
|
|
|
|
|
|
For all requests an `Authorization` header has to be set.
|
|
|
|
|
|
2023-02-27 14:37:59 +01:00
|
|
|
* Username: `username`
|
2016-11-14 15:21:29 +01:00
|
|
|
* Password: `password`
|
|
|
|
|
|
2018-08-01 11:01:02 +02:00
|
|
|
Also have a look to the [Security](../../concepts/authentication/) chapter.
|
2016-11-14 15:21:29 +01:00
|
|
|
|
|
|
|
|
In addition, for POST and PUT requests the `Content-Type` header has to be set. Accepted content-types are.
|
|
|
|
|
|
|
|
|
|
* `application/json`
|
|
|
|
|
* `application/hal+json`
|
|
|
|
|
|
|
|
|
|
## Request Body
|
|
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
Besides the relevant data (name, description, createdBy etc.) of a resource entity, a resource entity also has
|
|
|
|
|
URIs (`_links`) to linked resource entities.
|
2016-11-14 15:21:29 +01:00
|
|
|
|
2024-11-05 11:41:56 +02:00
|
|
|
A _Distribution Set_ entity may have for example URIs to artifacts, _Software Modules_, _Software Module Types_ and
|
|
|
|
|
metadata.
|
2016-11-14 15:21:29 +01:00
|
|
|
|
2018-08-01 11:01:02 +02:00
|
|
|
```json
|
2016-11-14 15:21:29 +01:00
|
|
|
"_links": {
|
|
|
|
|
"artifacts": {
|
|
|
|
|
"href": "http://localhost:8080/rest/v1/softwaremodules/83/artifacts"
|
|
|
|
|
},
|
|
|
|
|
"self": {
|
|
|
|
|
"href": "http://localhost:8080/rest/v1/softwaremodules/83"
|
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"href": "http://localhost:8080/rest/v1/softwaremoduletypes/43"
|
|
|
|
|
},
|
|
|
|
|
"metadata": {
|
|
|
|
|
"href": "http://localhost:8080/rest/v1/softwaremodules/83/metadata?offset=0&limit=50"
|
|
|
|
|
}
|
2023-09-27 11:44:30 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Management APIs
|
|
|
|
|
|
|
|
|
|
<iframe style="padding-top: 20px;" width="100%" height="900px" frameborder="0" src="../../rest-api/mgmt.html"></iframe>
|