Accounts
Accounts
The Accounts API allows sub-account creation and management.
Get Account
This API is useful for getting profile information of a sub-account under the organization.
GET /es/v2/accounts/<account_id>Response:
{
"statusCode": 0,
"statusMessage": "string",
"response": {
"connections": "string",
"createdTime": 0,
"enabled": true,
"env": {
"host": "string",
"id": "string",
"name": "string"
},
"id": "string",
"name": "string",
"updatedTime": 0,
"userId": "string",
"userEmail": "string",
"volume": 0
}
}Attributes:
connections
Number of connections the account has created
Integer (e.g., 0, 1, 2, etc.)
createdTime
Account creation time
Unix timestamp (seconds)
enabled
Indicates whether the account is enabled or not
true or false
env
Contains environment-related details
Hostname, ID, name, etc.
id
Unique identifier for the account
UUID (16-character identifier)
name
Name of the account
String (e.g., account name)
updatedTime
Account update time
Unix timestamp (seconds)
userId
Identifier for the account owner
UUID (16-character identifier)
volume
Volume used by the account
Integer (e.g., 0, 1000, etc.)
Sample Curl:
Get List of Accounts
The API returns list of accounts under the organization account.
Query params
Response:
Attributes:
connections
Number of connections the account has created
Integer (e.g., 0, 1, 2, etc.)
createdTime
Account creation time
Unix timestamp (seconds)
enabled
Indicates whether the account is enabled or not
true or false
env
Contains environment-related details
Hostname, ID, name, etc.
id
Unique identifier for the account
UUID (16-character identifier)
name
Name of the account
String (e.g., account name)
updatedTime
Account update time
Unix timestamp (seconds)
userId
Identifier for the account user
UUID (16-character identifier)
volume
Volume used by the account
Integer (e.g., 0, 1000, etc.)
Sample Curl::
Add Account
This API can be used to create a sub-account under the organization account.
Request Body:
Response:
Attributes:
enabled
Indicates whether the account is enabled or not
true or false
name
Name of the account
String (e.g., account name)
Sample Curl::
Edit Account
This API can be used to update sub-account details under the organization.
Request Body:
Response:
Attributes:
enabled
Indicates whether the account is enabled or not
true or false
name
Name of the account
String (e.g., account name)
Sample Curl::
Delete Account
This API can be used to delete a sub-account under the organization.
Request Body:
Response:
Sample Curl::
Last updated