Skip to content
Get started

Get Status

assets.download.get_status(strjob_id, DownloadGetStatusParams**kwargs) -> DownloadGetStatusResponse
GET/assets/download/{jobId}

Retrieve the status and the url of a batch download assets request

ParametersExpand Collapse
job_id: str
project_id: Optional[str]

The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)

ReturnsExpand Collapse
class DownloadGetStatusResponse:
job_id: str

The job id associated with the download request

job_status: str

The current job status

download_url: Optional[str]

The download url

Get Status

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
response = client.assets.download.get_status(
    job_id="jobId",
)
print(response.job_id)
{
  "jobId": "jobId",
  "jobStatus": "jobStatus",
  "downloadUrl": "downloadUrl"
}
Returns Examples
{
  "jobId": "jobId",
  "jobStatus": "jobStatus",
  "downloadUrl": "downloadUrl"
}