URL:
https://<root>/system/disasterrecovery/stores/register
Methods:
POST
Version Introduced:
12.2

Access requirements

Required privileges

The Portal Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.


Tokens

This API requires token-based authentication. A token is automatically generated for administrators who sign in to the Portal Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.

Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generateToken operation in the Portal Directory API. For security reasons, all POST requests made to the Portal Administrator API must include a token in the request body.


Learn how to generate a token

Description

The register operation registers a backup store. The backup store is created and managed by the deployment.

Request parameters

ParameterDetails

storeName

(Required)

The backup store name.

settings

(Required)

The JSON describing the storage configuration for the backup store. It can use either file-based storage or cloud storage. For more information, see the Settings properties section below.

Examples:

File-based storageFile-based storageAmazon S3 Access KeyAmazon S3 IAM RoleAzure Blob Storage Account KeyAzure Blob Storage Service PrincipalAzure Blob Storage Managed IdentityAzure Blob Storage SAS Token
Use dark colors for code blocksCopy
1
2
3
4
5
settings={
  "type": "fileStore",
  "provider": "FileSystem",
  "connectionString": "/net/backupserver/enterprisebackups"
}

isDefault

(Required)

Specifies whether the store will be the default backup store (true). The default value is false.

Values: true | false

f

The response format. The default format is html.

Values: html | json | pjson

Settings properties

The following information pertains to the different storage options (file-based storage or cloud storage) available for a backup store. The following table outlines the available properties for the settings parameter:

column1column2

type

The type of storage, either fileStore or cloudStore.

provider

If the type is fileStore, the provider will be FileSystem. If type is set to cloudStore, this value will reflect the cloud storage provider, either Amazon Simple Storage Service (S3) or Azure Blob Storage.

connectionString

If type is fileStore, the connection information reflects the path to where the backups will be stored. If type is cloudStore, the connection information reflects the connection information for cloud storage.

Example usage

The following is a sample POST request for the register operation that demonstrates registering a backup store that uses file-based storage:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/portaladmin/system/disasterrecovery/stores/register HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

storeName=backupDefault&settings={"type": "fileStore","provider": "FileSystem","connectionString": "/net/backupserver/enterprisebackups"}&isDefault=true&f=pjson&token=<ACCESS_TOKEN>

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "name": "backupDefault",
  "type": "fileStore",
  "provider": "FILESYSTEM",
  "connectionString": "/net/backupserver/enterprisebackups",
  "id": "563dc737-fa36-446a-a905-e2d80b49c4e9",
  "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.