Skip to content

Does requestAttributes during target creation have an effect? #2736

@fkromer

Description

@fkromer

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"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions