Account
List accounts¶
GET/api/v2/accounts
Lists the accessible accounts.
Query Parameters¶
Parameter | Description |
---|---|
like string | Query parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters. |
showLimit integer | Query parameter to limit the maximum number of rows returned by a command. |
history boolean | Optionally includes dropped accounts that have not yet been purged. |
Response¶
Code | Description |
---|---|
200 | Successful request. |
202 | Successfully accepted the request, but it is not completed yet. |
Create an account¶
POST/api/v2/accounts
Creates a account. You must provide the full account definition when creating a account.
Response¶
Code | Description |
---|---|
200 | Successful request. |
202 |
Delete an account¶
DELETE/api/v2/accounts/{name}
Deletes the specified account. If you enable the `ifExists` parameter, the operation succeeds even if the account does not exist. Otherwise, a 404 failure is returned if the account does not exist. if the drop is unsuccessful.
Path Parameters¶
Parameter | Description |
---|---|
name | Identifier (i.e. name) for the resource. |
Query Parameters¶
Parameter | Description |
---|---|
ifExists boolean | Query parameter that specifies how to handle the request for a resource that does not exist:
|
gracePeriodInDays integer | Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days. |
Response¶
Code | Description |
---|---|
200 | |
202 |
Restore an account¶
POST/api/v2/accounts/{name}:undrop
Restores a dropped account that has not yet been permanently deleted (a dropped account that is within its grace period).
Response¶
Code | Description |
---|---|
200 | |
202 |