List Test Files

API Explorer: /tests/{testId}/files

To return a list of files in a test, a testId is required. The sample code returns a list of files for the test with testId of 1234567. Use the actual ID values for the test to return the list of its files.

List Test Files

curl 'https://a.blazemeter.com/api/v4/tests/1234567/files' \
    --user 'api_key_id:api_key_secret'

List Test Files Parameters

Parameters

  • name string

    The unique string for a filename to search for. For example, the string MyScript.yaml will pull all results with this string in the name of the file

List Test Files Response Attributes

All timestamps are in UNIX Epoch time.

Attributes

  • lastModifiedinteger

    The timestamp when the file was last modified

  • namestring

    The name of the file

  • sizeinteger

    The size (in bytes) of the file

  • linkstring

    The download link for the file. This link remains active for 20 minutes

  • linkExpireinteger

    The timestamp of when the link will expire

Response200 OK

{
    "api_version": 4,
    "error": null,
    "result": [
        {
            "lastModified": 1592485932,
            "name": "demoblaze.yml",
            "size": 146,
            "link": "https://storage.blazemeter.com/blazemeter-gcp/users/123456/tests/1234567/data/demoblaze.yml?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200620%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200620T140803Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=2d0d117c03e873ec6c3359807b21c4ae27b3cf8e55aabeb37d912d3177791ba4",
            "linkExpire": 1592748483
        }
    ],
    "request_id": "5eee18439c6ed"
}