Create an organization
Create an organization with a new admin user who is created for that organization.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | securityAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/createOrganization.adm HTTP/1.1
Host:{manager.dsnet}
name={orgName}&domain={orgDomain}&enabled={true|false}
Curl method
curl -u {admin}:{password} -k
”https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/createOrganization.adm“ -d
”name={orgName}&domain={orgDomain}&enabled={true|false}“
Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| name | String | Required |
Unique organization name. |
|
| domain | String | Optional | The domain of the organization. | |
| description | String | Optional |
Organization description. |
|
| enabled | Boolean | Optional |
true |
Enable (true) or disable (false) organization when created. |
| allotments |
The allotments parameter syntax is as follows, where "X" is the target storage pool ID: allotments[X].size - if a size constraint is desired, this is the numerical portion of the size constraint (partnered with "unit"). allotments[X].unit - if a size constraint is desired, this is the unit portion of the size constraint (partnered with "size"). allotments[X].unlimited - true/false indicating if a size constraint is desired (true = no constraint). allotments[X].maxAllowedVaults - this is the vault count constraint. |
Response
Returns new organization ID and new admin account ID returned on success.
JSON response example
{
”responseStatus“:”ok“,
”responseHeader“:{
”status“:”ok“,
”now“:{milliseconds from the UNIX epoch},
”requestId“:”Ux-RscCoDkMAADCgLhwAAABN“
},
”responseData“:{
”id“:70
}
}Parameters
| Parameter | Type | Description |
|---|---|---|
| id | Long |
ID of newly created organization. |