hawkbit icon indicating copy to clipboard operation
hawkbit copied to clipboard

Does requestAttributes during target creation have an effect?

Open fkromer opened this issue 3 months ago • 0 comments

Could you cross-check if the requestAttributes == false has an effect when creating a target? Nothing critical. Would be good to know however to prevent from wrong expectations and worth a hint in the API docs I guess.

For reproduction the pseudo http file below could be helpful.

@baseUrl = http://localhost:8080

# mgmt api
@basicAuth = <some-base64-encoded-user:pwd>

### mgmt api: create target

POST {{baseUrl}}/rest/v1/targets
Authorization: Basic {{basicAuth}}
Content-Type: application/json

[
    {
        "name": "target-3",
        "description": "Exemplary target",
        "controllerId": "3",
        "requestAttributes": false
    }
]

### mgmt api: get target

GET {{baseUrl}}/rest/v1/targets/6
Authorization: Basic {{basicAuth}}

with a response of...
{
  "createdBy": "some-user",
  "createdAt": 1760024962956,
  "lastModifiedBy": "some-user",
  "lastModifiedAt": 1760024962956,
  "name": "target-3",
  "description": "Exemplary target",
  "controllerId": "3",
  "updateStatus": "unknown",
  "securityToken": "<some-security-token>",
  "requestAttributes": true,
  "_links": {
    "self": {
      "href": "http://localhost:8080/rest/v1/targets/3"
    },
    "assignedDS": {
      "href": "http://localhost:8080/rest/v1/targets/3/assignedDS"
    },
    "installedDS": {
      "href": "http://localhost:8080/rest/v1/targets/3/installedDS"
    },
    "attributes": {
      "href": "http://localhost:8080/rest/v1/targets/3/attributes"
    },
    "actions": {
      "href": "http://localhost:8080/rest/v1/targets/3/actions?offset=0&limit=50&sort=id%3ADESC"
    },
    "metadata": {
      "href": "http://localhost:8080/rest/v1/targets/3/metadata"
    }
  }
}

fkromer avatar Oct 09 '25 15:10 fkromer