Adding Accounts
You can add a new cloud credentials.
Request
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:
|
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>
{ "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:
|
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