Getting Teams Data by Repository ID
This section explains how to get a collection of backed-up teams whose data is stored in a backup repository with the specified ID.
Request
GET https://<hostname>:4443/v5/BackupRepositories/{repositoryId}/TeamData |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
---|---|---|
repositoryId | string | Identification number of the backup repository. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a representation of the /BackupRepositories/{repositoryId}/TeamData resource.
Example
The example below returns a representation of backed-up teams whose data is stored in a backup repository with ID 946ca1af-6859-4300-bb0d-51d27cc78094.
Request: GET https://abc.tech.local:4443/v5/BackupRepositories/946ca1af-6859-4300-bb0d-51d27cc78094/TeamData
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "results": [ { "id": "448c5b66-8dcd-4c75-b636-d3b500bce36f", "displayName": "IT&Finance", "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000", "_links": { "self": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/teamdata/448c5b66-8dcd-4c75-b636-d3b500bce36f" }, "organization": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000" }, "backupRepository": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094" } } }, { "id": "ef9eb317-0478-45b7-bf58-cc12e2088bef", "displayName": "Team with 70 channels", "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000", "_links": { "self": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/teamdata/ef9eb317-0478-45b7-bf58-cc12e2088bef" }, "organization": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000" }, "backupRepository": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094" } } }, { "id": "a21a2761-c664-4e9c-9c3b-592ffb5ee3bf", "displayName": "AllTabs", "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000", "_links": { "self": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/teamdata/a21a2761-c664-4e9c-9c3b-592ffb5ee3bf" }, "organization": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000" }, "backupRepository": { "href": "https://abc.tech.local:4443/v5/backuprepositories/946ca1af-6859-4300-bb0d-51d27cc78094" } } } ], "_links": { "self": { "href": "https://abc.tech.local:4443/v5/BackupRepositories/946ca1af-6859-4300-bb0d-51d27cc78094/TeamData?offset=0&limit=30" } } } |