All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
get_schedule_paused | GET /schedules/{job_type}/paused | |
list_schedules | GET /schedules |
SchedulerStatus get_schedule_paused(job_type, x_request_id=x_request_id)
Get scheduler paused status
from __future__ import print_function
import time
import harbor_client
from harbor_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = harbor_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = harbor_client.ScheduleApi(harbor_client.ApiClient(configuration))
job_type = 'job_type_example' # str | The type of the job. 'all' stands for all job types, current only support query with all
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
try:
api_response = api_instance.get_schedule_paused(job_type, x_request_id=x_request_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScheduleApi->get_schedule_paused: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
job_type | str | The type of the job. 'all' stands for all job types, current only support query with all | |
x_request_id | str | An unique ID for the request | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ScheduleTask] list_schedules(x_request_id=x_request_id, page=page, page_size=page_size)
List schedules
from __future__ import print_function
import time
import harbor_client
from harbor_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic
configuration = harbor_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = harbor_client.ScheduleApi(harbor_client.ApiClient(configuration))
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)
page = 1 # int | The page number (optional) (default to 1)
page_size = 10 # int | The size of per page (optional) (default to 10)
try:
api_response = api_instance.list_schedules(x_request_id=x_request_id, page=page, page_size=page_size)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScheduleApi->list_schedules: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | str | An unique ID for the request | [optional] |
page | int | The page number | [optional] [default to 1] |
page_size | int | The size of per page | [optional] [default to 10] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]