Description: Gets a collection of resource versions that were produced in runs. Filter criteria can be supplied via query string parameters.
Security: Requires a valid user
Usage: GET api/v1/runResourceVersions
Query Parameters:
Parameter | Data Type | Description |
---|---|---|
| integer | Optional. A limit on the number of runResourceVersions returned. |
| integer | Optional. A cursor for use in pagination. |
| string | Optional. A filter on the list based on the |
| string | Optional. Comma separated list of pipeline ids for which runs are being retrieved |
| string | Optional. Comma separated list of project ids for which runs are being retrieved |
| string | Optional. Comma separated list of pipeline source ids for which runs are being retrieved |
| string | Optional. Comma separated list of run ids |
| string | Optional. Comma separated list of step ids |
| string | Optional. Comma separated list of resource names |
| string | Optional. Comma separated list of resource version IDs |
| string | Optional. Comma separated list of sort attributes |
| integer | Optional. 1 for ascending and -1 for descending based on |
Produces: application/json
Sample Response:
GET api/v1/runresourceversions?pipelineIds=375&runIds=717 [ { "resourceStaticPropertyBag": {}, "resourceConfigPropertyBag": { "integrationName": "art", "integrationAlias": "sourceArtifactory" }, "resourceVersionContentPropertyBag": { "buildName": "test_gradle_pipeline", "buildNumber": "3", "targetRepo": "test-generic-local" }, "id": 940, "projectId": 1, "pipelineSourceId": 544, "pipelineId": 375, "runId": 717, "stepId": 1278, "resourceName": "promoted_build_info_gradle", "resourceTypeCode": 2018, "resourceVersionId": 2017, "resourceVersionCreatedByStepId": 1278, "createdAt": "2020-02-13T17:57:06.667Z", "updatedAt": "2020-02-13T17:58:06.936Z" }, { "resourceStaticPropertyBag": {}, "resourceConfigPropertyBag": { "integrationName": "art", "integrationAlias": "sourceArtifactory" }, "resourceVersionContentPropertyBag": { "buildName": "test_gradle_pipeline", "buildNumber": "3" }, "id": 941, "projectId": 1, "pipelineSourceId": 544, "pipelineId": 375, "runId": 717, "stepId": 1278, "resourceName": "build_info_gradle", "resourceTypeCode": 2018, "resourceVersionId": 2016, "resourceVersionCreatedByStepId": 1277, "createdAt": "2020-02-13T17:57:06.670Z", "updatedAt": "2020-02-13T17:58:02.906Z" } ]
Response Codes:
200: Success