Get All Backup Policies
You can get a collection resource representation of all backup policies.
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 collection resource representation of all backup policies, send the GET HTTP request to the URL of the /configuration/backupPolicies collection.
HTTP Request
GET https://<hostname>:1280/api/v3/configuration/backupPolicies |
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 | Constraints | Description |
---|---|---|---|---|---|---|
availableToAssingForCompanyUid | Query | String (uuid) | No | — | — | Limits the collection to the policies that can be assigned to agents of a company with the UID specified in this parameter |
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 BackupPolicy schema.
Example
The following request returns a representation of all backup policies.
Request: GET https://localhost:1280/api/v3/configuration/backupPolicies
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 OK
Response Body: { "meta": { "pagingInfo": { "total": 2, "count": 2, "offset": 0 } }, "data": [ { "instanceUid": "7d953664-fa7a-408f-88ed-9b61031b8151", "organizationUid": "11483cd8-24f0-4745-8248-e338e8f5c7c1", "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": "46beeb17-b41c-4cc5-81d1-938ee6d89b7a", "mode": "workstation", "type": "predefined" }, { "instanceUid": "d21ea721-2ad1-45c2-a928-3a9b092d7aae", "organizationUid": "11483cd8-24f0-4f45-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": "9f3bf058-5f78-401b-8067-9b128e504759", "mode": "server", "type": "predefined" } ] } |