openapi: 3.2.0 info: title: Harbor Schedule API description: These APIs provide services for manipulating Harbor project. version: '2.0' servers: - url: http://localhost/api/v2.0 - url: https://localhost/api/v2.0 security: - basic: [] - {} tags: - name: Schedule paths: /schedules: get: operationId: listSchedules summary: List schedules tags: - Schedule parameters: - $ref: '#/components/parameters/requestId' - $ref: '#/components/parameters/page' - $ref: '#/components/parameters/pageSize' responses: '200': description: list schedule successfully. headers: X-Total-Count: description: The total count of available items schema: type: integer Link: description: Link to previous page and next page schema: type: string content: application/json: schema: type: array items: type: object $ref: '#/components/schemas/ScheduleTask' '400': $ref: '#/components/responses/400' '401': $ref: '#/components/responses/401' '403': $ref: '#/components/responses/403' '404': $ref: '#/components/responses/404' '500': $ref: '#/components/responses/500' /schedules/{job_type}/paused: get: operationId: getSchedulePaused summary: Get scheduler paused status tags: - Schedule parameters: - $ref: '#/components/parameters/requestId' - name: job_type in: path required: true description: The type of the job. 'all' stands for all job types, current only support query with all schema: type: string responses: '200': description: Get scheduler status successfully. content: application/json: schema: $ref: '#/components/schemas/SchedulerStatus' '400': $ref: '#/components/responses/400' '401': $ref: '#/components/responses/401' '403': $ref: '#/components/responses/403' '404': $ref: '#/components/responses/404' '500': $ref: '#/components/responses/500' components: responses: '400': description: Bad request. The request body or query parameters are invalid. Inspect the `errors` array in the response body for details. headers: X-Request-Id: description: The ID of the corresponding request for the response schema: type: string content: application/json: schema: $ref: '#/components/schemas/Errors' '500': description: Internal server error. Inspect the `errors` array in the response body for details. headers: X-Request-Id: description: The ID of the corresponding request for the response schema: type: string content: application/json: schema: $ref: '#/components/schemas/Errors' '404': description: Not found. The requested resource does not exist. headers: X-Request-Id: description: The ID of the corresponding request for the response schema: type: string content: application/json: schema: $ref: '#/components/schemas/Errors' '401': description: Unauthorized. Authentication is required to access this resource. headers: X-Request-Id: description: The ID of the corresponding request for the response schema: type: string content: application/json: schema: $ref: '#/components/schemas/Errors' '403': description: Forbidden. The caller does not have sufficient permission to perform the requested operation. headers: X-Request-Id: description: The ID of the corresponding request for the response schema: type: string content: application/json: schema: $ref: '#/components/schemas/Errors' schemas: ScheduleTask: type: object description: the schedule task info properties: id: type: integer description: the id of the Schedule task vendor_type: type: string description: the vendor type of the current schedule task vendor_id: type: integer description: the vendor id of the current task cron: type: string description: the cron of the current schedule task update_time: type: string format: date-time description: the update time of the schedule task Errors: description: The error array that describe the errors got during the handling of request type: object properties: errors: type: array items: $ref: '#/components/schemas/Error' SchedulerStatus: type: object description: the scheduler status properties: paused: type: boolean description: if the scheduler is paused x-omitempty: false Error: description: a model for all the error response coming from harbor type: object properties: code: type: string description: The error code message: type: string description: The error message example: code: NOT_FOUND message: artifact library/hello-world:latest not found parameters: requestId: name: X-Request-Id description: An unique ID for the request in: header required: false schema: type: string minLength: 1 pageSize: name: page_size in: query required: false description: The size of per page schema: type: integer format: int64 default: 10 maximum: 100 page: name: page in: query required: false description: The page number schema: type: integer format: int64 default: 1 securitySchemes: basic: type: http scheme: basic