# Deep Security Manager REST API

## Path: / rest / cloudaccounts

Lists all of the cloud accounts that are in Deep Security

Resources
Name | Description
--- | ---
aws | Adds a new AWS cloud account into Deep Security
{cloudAccountID} | Get a specific cloud account.

Method Summary
Resource | Description
--- | ---
`GET /rest/cloudaccounts` | Lists all of the cloud accounts that are in Deep Security
`POST /rest/cloudaccounts` | Add a new cloud account.

Method Detail
Lists all of the cloud accounts that are in Deep Security Output: `ListCloudAccountsResponse` - A response with status `200 OK` and a body containing `GetCloudAccountsResponse` object if the get was successful If there is an authentication issue with the session cookie it will return a `403 Forbidden` If there is an error getting the account list it will return a `500 Internal Server Error` Cookie parameters: sID - a session ID returned by the Authentication API. Produces: application/xml application/json
Add a new cloud account. The following fields of the CloudAccountElement are mandatory: For AMAZON accessKey secretKey cloudType where the value is AMAZON name cloudRegion where the value are a choice between the following keys: amazon.cloud.region.key.1 maps to us-east-1 amazon.cloud.region.key.2 maps to us-west-2 amazon.cloud.region.key.3 maps to us-west-1 amazon.cloud.region.key.4 maps to eu-west-1 amazon.cloud.region.key.5 maps to ap-southeast-1 amazon.cloud.region.key.6 maps to ap-northeast-1 amazon.cloud.region.key.7 maps to sa-east-1 amazon.cloud.region.key.8 maps to ap-southeast-2 amazon.cloud.region.key.9 maps to eu-central-1 amazon.cloud.region.key.10 maps to us-gov-west-1 amazon.cloud.region.key.11 maps to cn-north-1 amazon.cloud.region.key.12 maps to ap-northeast-1 amazon.cloud.region.key.13 maps to ap-south-1 amazon.cloud.region.key.14 maps to us-east-2 amazon.cloud.region.key.15 maps to ca-central-1 amazon.cloud.region.key.16 maps to eu-west-2 For VCLOUD userId userPassword endpoint cloudType where the value is VCLOUD_PRIVATE_CLOUD name For AZURE subscriptionId azureCertificate cloudType where the value is AZURE name azureCertPassword (A password is required only if the key pair is encrypted.) For AZURE (Resource Manager) subscriptionId subscriptionName cloudType where the value is AZURE_ARM name azureAdTenantId azureAdTenantName azureAdApplicationId azureAdApplicationName azureAdApplicationPassword Input: `CreateCloudAccountRequest` - The request parameters. Output: `CreateCloudAccountResponse` - A response with status `200 OK` and a body containing response information when adding a cloud account succeeds. It will return a response with status `400 Bad Request` and a body containing an `ErrorMessage` when mandatory parameters are missing or validation fails. Produces: application/xml application/json Consumes: application/xml application/json

Copyright © 2017 Trend Micro Inc. All Rights Reserved.