Getting SharePoint Items
You can get a resource representation of SharePoint items to explore and restore.
Request
GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Items |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be specified in the URL of the request:
Parameter | Type | Description |
---|---|---|
restoreSessionId | string | Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions. |
siteId | string | Specifies the identification number of the SharePoint site. For more information on how to get this parameter, see Getting Organization SharePoint Sites. |
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 resource representation of the /RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Items collection resource.
Example
The example returns a resource representation of backed-up SharePoint items.
Request: GET https://abc.tech.local:4443/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/Organization/Sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/Items
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "results": [ { "title": "Item_1", "version": "5.0", "id": "1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840aee89936c-dd81-4678-9cb2-1b9d5573d28f", "name": "1_.000", "createdBy": "System Account", "creationTime": "2021-05-28T11:49:40", "modifiedBy": "System Account", "modificationTime": "2021-05-28T11:55:55", "_links": { "self": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840aee89936c-dd81-4678-9cb2-1b9d5573d28f" }, "list": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/lists/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840a" }, "attachments": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840aee89936c-dd81-4678-9cb2-1b9d5573d28f/attachments" } } }, { "title": "Item_2", "version": "5.0", "id": "1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd70467886-6ecc-4db7-be25-d715e4dad14d741ae524-0aa6-4d4f-952a-df269480f1fa", "name": "22_.000", "createdBy": "System Account", "creationTime": "2021-04-23T13:53:35", "modifiedBy": "System Account", "modificationTime": "2021-04-23T14:30:30", "_links": { "self": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd70467886-6ecc-4db7-be25-d715e4dad14d741ae524-0aa6-4d4f-952a-df269480f1fa" }, "list": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/lists/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd70467886-6ecc-4db7-be25-d715e4dad14d" }, "attachments": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd70467886-6ecc-4db7-be25-d715e4dad14d741ae524-0aa6-4d4f-952a-df269480f1fa/attachments" } } } ], "_links": { "self": { "href": "/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items?offset=0&limit=30" } } } |