Skip to content

RUN-2950: Create new rest API endpoint that uses logic from nodesQueryAjax/nodesFragmentData#9488

Closed
mrdubr wants to merge 2 commits intomainfrom
RUN-2950
Closed

RUN-2950: Create new rest API endpoint that uses logic from nodesQueryAjax/nodesFragmentData#9488
mrdubr wants to merge 2 commits intomainfrom
RUN-2950

Conversation

@mrdubr
Copy link
Copy Markdown
Contributor

@mrdubr mrdubr commented Dec 4, 2024

Is this a bugfix, or an enhancement? Please describe.
Adds a new GET project/{project}/nodes API endpoint to get a project nodes

Additional context

  • Docs PR:

Testing

Project with nodes

GET http://localhost:4440/api/50/project/P1/nodes

HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8

{
  "nodes": [
    {
      "osVersion": "14.7",
      "osName": "Mac OS X",
      "osFamily": "unix",
      "attributes": {
        "nodename": "localhost",
        "hostname": "localhost",
        "osFamily": "unix",
        "osVersion": "14.7",
        "framework.node.tags": "local,local_node",
        "osArch": "aarch64",
        "description": "Rundeck server node",
        "osName": "Mac OS X",
        "username": "",
        "tags": ""
      },
      "editUrl": null,
      "tags": [],
      "description": "Rundeck server node",
      "username": "",
      "hostname": "localhost",
      "remoteUrl": null,
      "osArch": "aarch64",
      "nodename": "localhost"
    },
    {
      "osVersion": "",
      "osName": "",
      "osFamily": "",
      "attributes": {
        "nodename": "stb-0",
        "hostname": "stbhost",
        "osFamily": "",
        "osVersion": "",
        "osArch": "",
        "description": "",
        "osName": "",
        "node-executor": "stub",
        "file-copier": "stub",
        "username": "stbuser",
        "tags": "stub, stub2"
      },
      "editUrl": null,
      "tags": [
        "stub",
        "stub2"
      ],
      "description": "",
      "username": "stbuser",
      "hostname": "stbhost",
      "remoteUrl": null,
      "osArch": "",
      "nodename": "stb-0"
    },
    {
      "osVersion": "",
      "osName": "",
      "osFamily": "",
      "attributes": {
        "nodename": "stb-1",
        "hostname": "stbhost",
        "osFamily": "",
        "osVersion": "",
        "osArch": "",
        "description": "",
        "osName": "",
        "node-executor": "stub",
        "file-copier": "stub",
        "username": "stbuser",
        "tags": "stub, stub2"
      },
      "editUrl": null,
      "tags": [
        "stub",
        "stub2"
      ],
      "description": "",
      "username": "stbuser",
      "hostname": "stbhost",
      "remoteUrl": null,
      "osArch": "",
      "nodename": "stb-1"
    },
    {
      "osVersion": "",
      "osName": "",
      "osFamily": "",
      "attributes": {
        "nodename": "stb-2",
        "hostname": "stbhost",
        "osFamily": "",
        "osVersion": "",
        "osArch": "",
        "description": "",
        "osName": "",
        "node-executor": "stub",
        "file-copier": "stub",
        "username": "stbuser",
        "tags": "stub, stub2"
      },
      "editUrl": null,
      "tags": [
        "stub",
        "stub2"
      ],
      "description": "",
      "username": "stbuser",
      "hostname": "stbhost",
      "remoteUrl": null,
      "osArch": "",
      "nodename": "stb-2"
    }
  ]
}

API Specs
Screenshot 2024-12-04 at 3 49 17 PM

@mrdubr mrdubr changed the base branch from main to RUN-2952 December 4, 2024 20:33
@mrdubr mrdubr added this to the 5.9.0 milestone Dec 4, 2024
@mrdubr mrdubr force-pushed the RUN-2952 branch 2 times, most recently from b2a4c37 to 2f684f7 Compare December 10, 2024 17:56
Base automatically changed from RUN-2952 to main December 16, 2024 15:22
@fdevans fdevans modified the milestones: 5.9.0, 5.10.0 Jan 31, 2025
@gschueler gschueler removed this from the 5.10.0 milestone Feb 28, 2025
@gschueler gschueler closed this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants