This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true
to the request query parameters.
Execute multiple get requests on Build.
The maximum batch size for this endpoint is 100.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:orchestration-read
.
list<GetBuildsBatchRequestElement>
object
object
map<BuildRid, Build>
1
2
3
4
5
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/orchestration/builds/getBatch?preview=true" \
-d '[{"buildRid":"ri.foundry.main.build.a4386b7e-d546-49be-8a36-eefc355f5c58"}]'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"data": {
"ri.foundry.main.build.a4386b7e-d546-49be-8a36-eefc355f5c58": {
"abortOnFailure": false,
"createdBy": "f05f8da4-b84c-4fca-9c77-8af0b13d11de",
"retryBackoffDuration": {
"unit": "SECONDS",
"value": 30
},
"retryCount": 1,
"fallbackBranches": [
"master"
],
"branchName": "master",
"createdTime": "2003-05-06T12:34:56.789Z",
"jobRids": [
"ri.foundry.main.job.aaf94076-d773-4732-a1df-3b638eb50448"
],
"rid": "ri.foundry.main.build.a4386b7e-d546-49be-8a36-eefc355f5c58",
"status": "RUNNING"
}
}
}