Adding Object Storage
This section explains how to add a new S3-Compatible or IBM object storage repository to the Veeam Backup for Microsoft Office 365 backup infrastructure.
Request
POST https://<hostname>:4443/v4/ObjectStorageRepositories |
Request Headers
The request header must contain an authorization token of the current session.
Request Body
The following table lists available request parameters.
Property | Type | Description |
---|---|---|
Name | string | An object storage name. |
Description | string | An object storage description (optional). |
Type | string | An object storage type. The following types are available:
|
accountId | string | An identification number of the user account under which object storage is being added. |
bucket | An S3-Compatible bucket. | |
S3Folder | string | A folder in the specified bucket. |
SizeLimitEnabled | boolean | Specifies if the size limit is set. |
SizeLimitGB | int | Specifies the size limit in GB. |
Property | Type | Description |
---|---|---|
name | string | A bucket name. |
ServicePoint | string | An endpoint address. |
customRegionId | string | A region. |
Request Example
POST https://<hostname>:4443v4/ObjectStorageRepositories
Request Header: Authorization: Bearer <Access-Token> Request Body: { "Name": "New S3-Compatible Storage", "Description": "S3-Compatible Storage added via REST", "Type": "AmazonS3Compatible", "accountId": "ebacce24-e6a3-494b-b29c-24d0d588f35e", "bucket": { "name": "bucket1", "ServicePoint" : "172.17.186.13:9000", "customRegionId": "us-east-1" }, "S3Folder": "RESTStorageFolder", "SizeLimitEnabled": "true", "SizeLimitGB": "1024" } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 201 (Created).
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
The response contains the following information.
Property | Type | Description |
---|---|---|
bucket | Contains a container or bucket definition. | |
s3Folder | string | Specifies storage folder when backups reside. |
id | string | Object storage identification number, |
name | string | Object storage name. |
description | string | Object storage description. |
accountId | string | An account identification number under which object storage is added. |
sizeLimitEnabled | boolean | Specifies if the size limit is set. |
sizeLimitGB | string | Specifies size limit in GB. |
usedSpaceGB | string | Specifies used space in GB. |
type | string | A type of object storage. The following types are available:
|
_links | Dictionary of string [key] and Object [value] | Links to related resources (a navigation property). |
Property | Type | Description |
---|---|---|
servicePoint | string | An endpoint address. |
customRegionId | string | A region identification number. |
name | string | A bucket name |
Response Example
Response: 201 Created
Response Body: { "bucket": { "servicePoint": "172.17.186.13:9000", "customRegionId": "us-east-1", "name": "bucket1", }, "s3Folder": "RESTStorageFolder", "id": "2a4bcacd-1288-45f4-a30e-d6b1b938cde5", "name": "New S3-Compatible Storage", "description": "S3-Compatible Storage added via REST", "accountId": "ebacce24-e6a3-494b-b29c-24d0d588f35e", "sizeLimitEnabled": true, "sizeLimitGB": 1024, "usedSpaceGB": 0, "freeSpaceGB": 1099511627776, "type": "AmazonS3Compatible", "_links": { "self": {"href": "https://abc.tech.local:4443/v4/objectstoragerepositories/2a4bcacd-1288-45f4-a30e-d6b1b938cde5"}, "account": {"href": "https://abc.tech.local:4443/v4/accounts/ebacce24-e6a3-494b-b29c-24d0d588f35e"}, "bucket": {"href": "https://abc.tech.local:4443/v4/S3CompatibleResources/buckets/bucket1?accountId=ebacce24-e6a3-494b-b29c-24d0d588f35e&ServicePoint=172.17.186.13:9000&CustomRegionId=us-east-1"}, "folder": {"href": "https://abc.tech.local:4443/v4/S3CompatibleResources/buckets/bucket1/folders/RESTStorageFolder?accountId=ebacce24-e6a3-494b-b29c-24d0d588f35e&ServicePoint=172.17.186.13:9000&CustomRegionId=us-east-1"} } } |