Retrieves all ExportConnection Runs for the specified connection.
Authentication
Requires Authorization
header with valid Bearer token for scope itwin-platform
.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Request parameters
Connection Id
Request headers
OAuth access token with itwin-platform
scope
Setting to application/vnd.bentley.itwin-platform.v1+json
is recommended.
Response 200 OK
OK
{ "runs": [{ "id": "75d94fca-4a9b-4ff0-8f3a-eeedbc1fea97", "state": "Completed", "result": "Success", "startDateTime": "2023-09-14T12:00:06.8727565Z", "endDateTime": "2023-09-14T12:07:11.4138469Z", "jobs": [{ "id": "899537ea-2945-4c98-9737-3bb4891fe8da", "startDateTime": "2023-09-14T12:00:09.801086Z", "endDateTime": "2023-09-14T12:06:31.4310333Z", "state": "Completed", "result": "Error", "tasks": [{ "id": "fe2f628d-1beb-453f-bf49-2468ca48b9a8", "startDateTime": "2023-09-14T12:06:03.105039Z", "endDateTime": "2023-09-14T12:06:31.3820011Z", "retryAttempts": 0, "state": "Completed", "result": "Error", "exportOutputFileId": "fa310a48-d89c-493a-8124-80406ac46f66", "error": { "errorCode": "TAE_BRW_1000", "message": "Failed to orchestrate file processing.", "details": "Error exit code received from bridge wrapper. Details from wrapper: ''.", "bridgeExitCode": -7002, "system": "Exporter", "phase": "export_file", "category": "other", "descriptionKey": "FailedToExport", "description": "Failed to export your file.", "kbArticleLink": "", "canUserFix": false } }] }] }], "_links": { "self": { "href": "https://api.bentley.com/export/connections/VRZHoBhrnkGrAev0-_-d_xwvyrzjgaVGka5wU967Q7M/runs&$skip=0&$top=50" }, "next": { "href": "https://api.bentley.com/export/connections/VRZHoBhrnkGrAev0-_-d_xwvyrzjgaVGka5wU967Q7M/runs&$skip=50&$top=50" } } }
Response 401 Unauthorized
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 403 Forbidden
This response indicates that user does not have required permissions to get specified connection runs.
{ "error": { "code": "InsufficientPermissions", "message": "The user has insufficient permissions for the requested operation." } }
Response 422 Unprocessable Entity
Invalid request to get connection.
{ "error": { "code": "InvalidConnectionRunsRequest", "message": "Cannot perform operation.", "details": [{ "code": "MissingRequiredParameter", "message": "imodelId was not provided.", "target": "imodelId" }, { "code": "InvalidValue", "message": "Page size is out of limits.", "target": "$top" }, { "code": "InvalidValue", "message": "Provided imodelId value is not valid.", "target": "imodelId" } ] } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Link
Links
Export Runs Response
export-run
export-job
export-task
task-error
Execution State
One of 'NotStarted', 'Idle', 'WaitingToExecute', 'WaitingToRetry', 'Executing', 'Finalizing', 'Completed', 'Queued'.
Execution Result
One of 'Undetermined', 'Success', 'Error', 'PartialSuccess', 'Skipped', 'Canceled', 'TimedOut'.
Error
Contains error information.
One of a server-defined set of error codes.
A human-readable representation of the error.
The target of the error.
Error Response
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.