# List cloud accounts

Source: https://www.jawsdeploy.net/rest-api/cloud-accounts-list | Section: Cloud Accounts

List cloud accounts configured in a workspace.

`GET /api/cloud-account`

Returns every cloud account (currently Azure only) configured for the workspace, including optional environment filter scoping.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `workspaceId` | query | string | yes | ID of the workspace. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `workspaceId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
GET /api/cloud-account?workspaceId=ws_abc
```

Example response:

```
{ "workspaceId": "ws_abc", "accounts": [ { "accountId": "ca_1", "name": "Acme prod sub", "cloudType": "Azure", "applyEnvironmentFilter": true, "environmentFilter": ["env_prod"] } ] }
```

