# Get what a connection needs

`GET https://evohub.io/api/v1/catalog/connections/setup`

Part of the [Catalog API](https://docs.evohub.io/catalog.md) reference · operationId `getCloudSetup`.

Which providers can be connected, and the principal each customer
account grants read access to: the role ARN an AWS role trusts, an
application's client id (Azure), a service account (GCP). For Azure
and GCP, `tag` is the tag or label that marks a subscription or
project for a connection.

Requires the `identity:cloudaccount:write` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Responses

### 200 — What a connection needs.

Content type: `application/json`

Type: `object`

- `data` (CloudSetup)
  - `available` (boolean): Whether any provider can be connected.
  - `principal_arn` (string): The AWS principal a role trusts.
  - `providers` (array of object)
    - `provider` (string, one of `aws`, `azure`, `gcp`, `vmind`)
    - `available` (boolean)
    - `principal` (string)
    - `tag` (string, example `evohub-connection`)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 403 — The key lacks a scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/catalog/connections/setup' \
  -H 'Authorization: Bearer <TOKEN>'
```
