Closed Bug 1390867 Opened 7 years ago Closed 7 years ago

Expand the /provisioners/:provisionerId/worker-types endpoint to return metadata

Categories

(Taskcluster :: Services, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hassan, Assigned: hassan)

References

Details

Presently, the /provisioners endpoint returns a list of provisionerIds. It needs to be expanded to return metadata:

GET /v1/provisioners/:provisionerId/worker-types/
signature: workerTypes(provisionerId, {continuation})
scopes:    -
response: {
  workerTypes: [
    {
      provisionerId:  '...',
      workerType:     '...',
      expires:        '...',
      description:    '...',
      documentation:  '...',
      payloadSchema:  {...},
      stability:      'experimental|stable|deprecated',
    },
    ...
  ],
  continuation: '...',  // optional contiunation token
}
Assignee: nobody → helfi92
Commit pushed to master at https://github.com/taskcluster/taskcluster-queue

https://github.com/taskcluster/taskcluster-queue/commit/69e245968cbce879d2263d462fd6d8b77a4eabc4
Merge pull request #187 from helfi92/expand-workertypes

Bug 1390867 - Expand the worker-types endpoint to return metadata
payloadSchema and documentation was omitted in the final commit because it was not really clear where we wanted to store that data. We will tackle this issue later.
Blocks: 1394809
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Queue → Services
You need to log in before you can comment on or make changes to this bug.