Get All Available Backup Policies

You can get a collection resource representation of all backup policies that can be assigned to agents.

Required Privileges

To perform this task, a user must have one of the following roles assigned: Portal Administrator, Service Provider Global Administrator, Service Provider Administrator, Company Owner, Company Administrator.

Request

To get a representation of all backup policies that can be assigned to agents, send the GET HTTP request to the URL of the /configuration/backupPoliciesToAssign collection.

HTTP Request

GET https://<hostname>:1280/api/v3/configuration/backupPoliciesToAssign

Request Headers

The request contains the following headers.

Header

Required/Optional

Value

Description

Authorization

Required

Bearer <Access-Token>

Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format.

Accept

Optional

application/json

Specifies a media type of representation that is required in the response message. If the requested type is not supported, the server will return the response in the application/json media type.

Request parameters

A list of parameters that are applicable for this operation:

Name

In

Type

Required

Default

Description

limit

Query

Integer (int32)

No

100

Specifies the first N resources that must be returned in the output

offset

Query

Integer (int32)

No

0

Excludes the first N resources from the query output

Response

The server returns the following response to the client.

Response Code

A successfully completed operation returns response code 200 OK.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTP headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the request body message: application/json; charset=utf-8

Response Body

In the response body, Veeam Service Provider Console returns a collection resource representation based on the BackupPolicyToAssign schema.

Example Get All Available Backup Policies

The following request returns a representation of all backup policies that can be assigned to agents.

Request:

GET https://localhost:1280/api/v3/configuration/backupPoliciesToAssign

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response Code:

200 OK

 

Response Body:

{

 "meta": {

   "pagingInfo": {

     "total": 2,

     "count": 2,

     "offset": 0

   }

 },

 "data": [

   {

     "companyUid": "955d2541-7758-4e3a-9719-042171dcc544",

     "backupPolicies": [

       {

         "instanceUid": "7d953664-677a-408f-88ed-9b6f031b8151",

         "organizationUid": "11483ed8-24f0-4745-8248-e428e8f5c7c1",

         "name": "Workstation: File level backup. Personal files. Local drive. Daily schedule.",

         "description": "This policy processes user profile folder including all user settings and data.",

         "configId": "4610eb17-b41c-4cc5-81d1-938ee6589b7a",

         "mode": "workstation",

         "type": "predefined"

       },

       {

         "instanceUid": "d21ea721-2ad1-45c2-a928-001b092d7aae",

         "organizationUid": "11483cd8-24f0-4745-8248-e428f3f5c7c1",

         "name": "Server: Entire computer. Microsoft Exchange Server. Cloud backup. Daily schedule.",

         "description": "This policy should be used if you want to create a backup of the entire computer image. When you restore data from such backup, you will be able to recover the entire computer image as well as data on specific computer volumes: files, folders, application data and so on.",

         "configId": "9f3bf058-5f78-401b-8067-92eede504759",

         "mode": "server",

         "type": "predefined"

       }

     ]

   },

   {

     "companyUid": "20c7686b-8c20-4b24-86a5-7cf20751c504",

     "backupPolicies": [

       {

         "instanceUid": "7d953664-677a-408f-88ed-9b23031b8151",

         "organizationUid": "11483cd8-24f0-4745-8248-e421a8f5c7c1",

         "name": "Workstation: File level backup. Personal files. Local drive. Daily schedule.",

         "description": "This policy processes user profile folder including all user settings and data.",

         "configId": "4610eb17-b41c-4cc5-81d1-938eec289b7a",

         "mode": "workstation",

         "type": "predefined"

       },

       {

         "instanceUid": "d21ea721-2ad1-45c2-a928-0c2b092d7aae",

         "organizationUid": "11483cd8-24f0-4745-8248-e428e8f5c7c1",

         "name": "Server: Entire computer. Microsoft Exchange Server. Cloud backup. Daily schedule.",

         "description": "This policy should be used if you want to create a backup of the entire computer image. When you restore data from such backup, you will be able to recover the entire computer image as well as data on specific computer volumes: files, folders, application data and so on.",

         "configId": "9f6bf058-5f78-401b-8067-9b1ede504759",

         "mode": "server",

         "type": "predefined"

       }

     ]

   }

 ]

}

I want to report a typo

There is a misspelling right here:

 

I want to let the Veeam Documentation Team know about that.