Sessions

The /sessions resource collection represents statistics for every performed Veeam Backup for AWS session.

Get Collection of Sessions

For every performed operation (EC2 instance backup, restore, snapshot creation and so on) Veeam Backup for AWS starts a new session. The HTTP GET request to the /sessions endpoint retrieves a list of sessions stored in the Veeam Backup for AWS database.

SecurityBearer
Request
query Parameters
Offset
integer <int32> >= 0

Excludes from a response the first N items of a resource collection.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection to return in a response.

PolicyId
string <uuid>

Returns only sessions of a backup policy with the specified ID.

ParentSessionId
string <uuid>

Returns child sessions of a session with the specified ID.

Status
Array of strings

Returns only sessions with the specified session status.

Items Enum: "Running" "NeverExecuted" "Succeeded" "Warning" "Failed" "Canceled"
Types
Array of strings

Returns only sessions of the specified session type.

Items Enum: "Policy" "Job" "Task" "UserPolicy" "RetentionActivity" "RestoreTask" "FLRTask" "ConfigurationBackupActivity" "ImportPolicy" "TombstoneRetention" "ArchiveRetrieval" "ArchiveRetrievalProlongation" "ManualTask" "FlrEfsTask"
FromUtc
string <date-time>

Returns only sessions run after the specified date and time.

ToUtc
string <date-time>

Returns only sessions run before the specified date and time.

Usn
integer <int64>

Returns only sessions with the specified update sequence number.

Sort
Array of strings (SessionsSortColumns)

Specifies the order of items in the response. For more information, see the Veeam Backup for AWS REST API Reference Overview, section Sort Parameter.

Items Enum: "startTimeAsc" "startTimeDesc" "stopTimeAsc" "stopTimeDesc" "durationAsc" "durationDesc" "typeAsc" "typeDesc" "reasonAsc" "reasonDesc" "usnAsc" "usnDesc"
VmId
string

Returns only sessions where an EC2 instance with the specified ID is processed.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions?Offset=0&Limit=-1&PolicyId=497f6eca-6276-4993-bfeb-53cbbbba6f08&ParentSessionId=497f6eca-6276-4993-bfeb-53cbbbba6f08&Status=Running&Types=Policy&FromUtc=2019-08-24T14%3A15%3A22Z&ToUtc=2019-08-24T14%3A15%3A22Z&Usn=0&Sort=startTimeAsc&VmId=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{}

Get Items Removed During Session

The HTTP GET request to the /session/{retentionSessionId}/deletedItems endpoint retrieves a list of restore points removed during a session with the specified ID.

SecurityBearer
Request
path Parameters
retentionSessionId
required
string <uuid>

System ID assigned to the retention activity session in the Veeam Backup for AWS REST API.

query Parameters
SearchPattern
string

Returns only those items of a resource collection whose names match the specified search pattern in the parameter value.

Sort
Array of strings (RetentionJobDeletedRestorePointSortColumns)

Specifies the order of items in the response. For more information, see the Veeam Backup for AWS REST API Reference Overview, section Sort Parameter.

Items Enum: "nameAsc" "nameDesc" "statusAsc" "statusDesc" "regionAsc" "regionDesc"
Offset
integer <int32> >= 0

Excludes from a response the first N items of a resource collection.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection to return in a response.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{retentionSessionId}/deletedItems
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{retentionSessionId}/deletedItems?SearchPattern=string&Sort=nameAsc&Offset=0&Limit=-1' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{
  • "totalCount": 0,
  • "results": [
    ],
  • "_links": [
    ]
}

Get Items Protected During Session

The HTTP GET request to the /session/{backupSessionId}/protectedItems endpoint retrieves a list of instances protected during a session with the specified ID.

SecurityBearer
Request
path Parameters
backupSessionId
required
string <uuid>

System ID assigned to the backup activity session in the Veeam Backup for AWS REST API.

query Parameters
SearchPattern
string

Returns only those items of a resource collection whose names match the specified search pattern in the parameter value.

Sort
Array of strings (ProtectedItemsSortColumns)

Specifies the order of items in the response. For more information, see the Veeam Backup for AWS REST API Reference Overview, section Sort Parameter.

Items Enum: "virtualMachineNameAsc" "virtualMachineNameDesc" "regionAsc" "regionDesc"
Offset
integer <int32> >= 0

Excludes from a response the first N items of a resource collection.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection to return in a response.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{backupSessionId}/protectedItems
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{backupSessionId}/protectedItems?SearchPattern=string&Sort=virtualMachineNameAsc&Offset=0&Limit=-1' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{}

Get Items Restored During Session

The HTTP GET request to the /session/{restoreSessionId}/restoredItems endpoint retrieves a list of instances restored during a session with the specified ID.

SecurityBearer
Request
path Parameters
restoreSessionId
required
string <uuid>

System ID assigned to the restore activity session in the Veeam Backup for AWS REST API.

query Parameters
SearchPattern
string

Returns only those items of a resource collection whose names match the specified search pattern in the parameter value.

Sort
Array of strings (RestoredItemsSortColumns)

Specifies the order of items in the response. For more information, see the Veeam Backup for AWS REST API Reference Overview, section Sort Parameter.

Items Enum: "nameAsc" "nameDesc" "regionAsc" "regionDesc"
Offset
integer <int32> >= 0

Excludes from a response the first N items of a resource collection.

Limit
integer <int32> >= -1

Specifies the maximum number of items of a resource collection to return in a response.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{restoreSessionId}/restoredItems
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{restoreSessionId}/restoredItems?SearchPattern=string&Sort=nameAsc&Offset=0&Limit=-1' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{}

Get Session Data

The HTTP GET request to the /session/{sessionId} endpoint retrieves information on a session with the specified ID.

SecurityBearer
Request
path Parameters
sessionId
required
string <uuid>

System ID assigned to a session in the Veeam Backup for AWS REST API.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{sessionId}
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{sessionId}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{}

Get FLR Session Data

The HTTP GET request to the /session/{sessionId}/flr endpoint retrieves information on a FLR session with the specified ID.

SecurityBearer
Request
path Parameters
sessionId
required
string <uuid>

System ID assigned to a session in the Veeam Backup for AWS REST API.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{sessionId}/flr
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{sessionId}/flr' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "isFlrSessionReady": true,
  • "flrUrl": "string",
  • "flrThumbprint": "string"
}

Get EFS Flr Session Data

The HTTP GET request to the /session/{sessionId}/flrEfs endpoint retrieves information on an FLR session with the specified ID.

SecurityBearer
Request
path Parameters
sessionId
required
string <uuid>

Specifies the system ID assigned to an FLR session in the Veeam Backup for AWS REST API.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{sessionId}/flrEfs
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{sessionId}/flrEfs' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "flrUrl": "string",
  • "flrThumbprint": "string"
}

Get Session Log Details

The HTTP GET request to the /session/{sessionId}/log endpoint retrieves log details of a session with the specified ID.

SecurityBearer
Request
path Parameters
sessionId
required
string <uuid>

System ID assigned to a session in the Veeam Backup for AWS REST API.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

get/api/v1/sessions/{sessionId}/log
Request samples
curl -i -X GET \
  'https://helpcenter.veeam.com/api/v1/sessions/{sessionId}/log' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{
  • "sessionId": "90faa259-fbf6-493a-b492-e59e1cfbe3a6",
  • "log": [
    ]
}

Stop Session Processing

The HTTP POST request to the /sessions/{sessionId}/stop endpoint stops processing of a session with the specified ID.

SecurityBearer
Request
path Parameters
sessionId
required
string <uuid>

System ID assigned to a session in the Veeam Backup for AWS REST API.

header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

404

Not Found. One or more resources specified in the request could not be found in the specified resource collection.

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

post/api/v1/sessions/{sessionId}/stop
Request samples
curl -i -X POST \
  'https://helpcenter.veeam.com/api/v1/sessions/{sessionId}/stop' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'
Response samples
{
  • "title": "string",
  • "status": 400,
  • "errorCode": "AccessDenied",
  • "details": "string",
  • "instance": "http://example.com",
  • "data": {
    }
}

Export Collection of Sessions

The HTTP POST request to the /sessions/export endpoint exports session statistics to a .CSV or an .XML file. To specify the required type of the file, use the Accept request header.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.7-rev0

Specifies the current version and revision of the Veeam Backup for AWS REST API.

Responses
200

OK

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

500

Internal Server Error. The request has been received but could not be completed because of an internal error on the server side.

503

Service Unavailable

504

Gateway Timeout

post/api/v1/sessions/export
Request samples
curl -i -X POST \
  https://helpcenter.veeam.com/api/v1/sessions/export \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'x-api-version: 1.7-rev0'