Search Jobs¶
- You can search for jobs based on the following criteria:
tags
state
Searching by Job State¶
By default, the search API will match jobs in any state. To specify searching for jobs in a specific state, you can provide the “state” query parameter with one of the test phases:
$ curl 'http://localhost:8000/v1/job/search?state=provision'
You can also search specify more than one state to match against. Obviously, since a job can only be in one state at a given moment, the matching mode for this will always be “any”.
$ curl 'http://localhost:8000/v1/job/search?state=cancelled&state=completed'
To only search for jobs that have not been cancelled or completed, you can specify “active” for the state.
$ curl 'http://localhost:8000/v1/job/search?state=active'
Searching for jobs by state can be done with or without providing tags in the search query.