Get the identifier of a job

get

/v1/jobs/{jobName}/id

Returns the job identifier that corresponds to the specified job name

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

JOBID-{jobId}

400 Response

ERROR: Job identified by {jobIdentifier} no longer exists
Back to Top

Examples

The following example shows how to retrieve the job identifier (JOBID-24) that corresponds to a job name (Params) by submitting a GET request on the REST resource using curl.

curl -X GET -u alex.admin https://myinstance.oracle.com/myorg/rest/myorg_bobtest_1/cibuild/v1/jobs/Params/id
Enter host password for user 'alex.admin':
JOBID-24

A {jobIdentifier} is accepted in place of {jobName}.

If you searched by {jobIdentifier} and the job can't be found, you'll see this error:

ERROR: Job identified by {jobIdentifier} no longer exists

If you searched by {jobName} and the job can't be found, you'll see this error:

ERROR: Job {jobName} no longer exists

If you aren't authorized to view the job, you'll see this error:

Not authorized

Errors

If you searched by {jobIdentifier} and the job can't be found, you'll see this error:

ERROR: Job identified by {jobIdentifier} no longer exists

If you searched by {jobName} and the job can't be found, you'll see this error:

ERROR: Job {jobName} no longer exists

If the job is protected and you are not authorized to view it, you'll see this error:

ERROR: Not authorized
Back to Top