This is an archive version of the document. To get the most up-to-date information, see the current version.

Adding Accounts

You can add a new cloud credentials.

Request

POST https://<hostname>:4443/v6/Accounts

Request Headers

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

Request Body

The request body must contain the following properties:

Property

Type

Description

accountType

string

An account type:

  • azureBlobAccount
  • amazonS3Account
  • amazonS3CompatibleAccount

userName

string

An account user name.

Must contain only lowercase characters.

password

string

A password for the account you want to add.

description

string

An account description.

Request Example

Request:

POST https://abc.tech.local:4443/v6/Accounts/

 

Request Header:

Authorization: Bearer <Access-Token>


Request Body:

{

  "accountType": "azureBlobAccount",

  "userName": "azureuser",

  "password": "XXXXXXXXXXXXXXXXXX",

  "description": "An new Azure account"

}

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 body contains the following properties:

Property

Type

Description

id

string

An account identification number.

accountType

string

An account type:

  • azureBlobAccount
  • amazonS3Account
  • amazonS3CompatibleAccount

userName

string

An account user name.

description

string

An account description.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Response Example

Response:

201 Created

 

Response Body:

{

  "accountType": "azureBlobAccount",

  "userName": "azureuser",

  "_links": {"self": {"href": "/v6/accounts/8714ce3f-8b3f-44a9-acaa-fec59ae2f9eb"}},

  "id": "8714ce3f-8b3f-44a9-acaa-fec59ae2f9eb",

  "description": "An Azure Account"

}