openapi: 3.1.0 info: title: CloudBees CI REST API (Jenkins-compatible) Computer Xml API description: 'CloudBees CI exposes the Jenkins remote-access REST API for inspecting and controlling jobs, builds, queues, and computers. Append `/api/json`, `/api/xml`, or `/api/python` to any URL on the controller to retrieve machine-readable metadata. Use the `tree` query parameter to limit the payload (recommended for performance). Authenticate with an API token via HTTP Basic Auth. ' version: 1.0.0 servers: - url: https://example.cloudbees.com description: CloudBees CI controller (replace with your JENKINS_URL) security: - basicAuth: [] tags: - name: Xml paths: /api/xml: get: summary: Get controller metadata as XML parameters: - $ref: '#/components/parameters/XPath' - $ref: '#/components/parameters/Tree' - $ref: '#/components/parameters/Depth' responses: '200': description: XML controller metadata content: application/xml: schema: type: string tags: - Xml components: parameters: XPath: name: xpath in: query schema: type: string Tree: name: tree in: query description: 'Tree filter for selecting and trimming response fields. Example: `jobs[name,url,color]`. ' schema: type: string Depth: name: depth in: query schema: type: integer default: 0 securitySchemes: basicAuth: type: http scheme: basic description: Jenkins username + API token