Get Run Resource Versions

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

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

limit

integer

Optional. A limit on the number of runResourceVersions returned.

skip

integer

Optional. A cursor for use in pagination. skip defines the number of runResourceVersions skipped.

runResourceVersionIds

string

Optional. A filter on the list based on the id property of the runResourceVersion. Expects a comma separated string of runResourceVersionIds.

pipelineIds

string

Optional. Comma separated list of pipeline ids for which runs are being retrieved

projectIds

string

Optional. Comma separated list of project ids for which runs are being retrieved

pipelineSourceIds

string

Optional. Comma separated list of pipeline source ids for which runs are being retrieved

runIds

string

Optional. Comma separated list of run ids

stepIds

string

Optional. Comma separated list of step ids

resourceNames

string

Optional. Comma separated list of resource names

resourceVersionIds

string

Optional. Comma separated list of resource version IDs

sortBy

string

Optional. Comma separated list of sort attributes

sortOrder

integer

Optional. 1 for ascending and -1 for descending based onsortBy

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