Editing Object Storage by ID

You can edit the object storage settings.

Editing Object Storage by ID Note

If an object storage uses a self-signed SSL certificate, you must add this certificate to the trusted root of the server that runs Veeam Backup for Microsoft 365 REST API service. Otherwise, this method will not work.

Request

PUT https://<hostname>:4443/v6/objectstoragerepositories/{repositoryId}

Request Headers

The request header must contain an authorization token of the current session.

Request Parameters

The following parameter must be specified in the URL of the request:

Parameter

Type

Description

repositoryId

string

Specifies the identification number of the object storage. For more information on how to get this parameter, see Getting Object Storage Repositories.

Request Body

The request body must contain the following properties:

Property

Type

Description

name

string

Specifies the object storage name.

description

string

Specifies the object storage description.

sizeLimitEnabled

boolean

Defines whether the size limit is set.

sizeLimitGB

integer

Specifies size limit in GB.

Request Example

Request:

PUT https://abc.tech.local:4443/v6/objectstoragerepositories/aa75a64b-149f-4b35-8b4b-e976f3ba8310

 

Request Header:

Authorization: Bearer <Access-Token>

 

Request Body:

{

 "name": "S3 Compatible Object Storage (Edited through REST)",

 "description": "New description",

 "sizeLimitEnabled": true,

 "sizeLimitGB": "1024"

}

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

None.