> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/ko/apis/cloud-storage-api.md).

# 클라우드 스토리지 API

Unitlab HTTP API로 S3, Azure, GCS 등 클라우드 스토리지 연결을 조회하고, 버킷을 탐색하고, 파일을 프로젝트로 가져오는 방법입니다.

| 메서드와 라우트                                                       | 하는 일       | 권한                   |
| -------------------------------------------------------------- | ---------- | -------------------- |
| `GET /api/sdk/cloud-storages/`                                 | 연결 목록      | Manage cloud storage |
| `GET /api/sdk/cloud-storages/{id}/browse/`                     | 파일과 폴더 목록  | Manage cloud storage |
| `POST /api/sdk/projects/{project}/cloud-storages/{id}/import/` | 프로젝트로 가져오기 | Manage data          |

연결은 앱에서 만듭니다. API는 연결을 읽기만 하며 버킷에 쓰지 않습니다.

## 탐색 <a href="#browse" id="browse"></a>

```bash
curl -s "https://api.unitlab.ai/api/sdk/cloud-storages/$STORAGE_ID/browse/?prefix=fleet/cell-04/&page_size=500" \
  -H "Authorization: Api-Key $UNITLAB_API_KEY"
```

| 매개변수         | 용도                       |
| ------------ | ------------------------ |
| `prefix`     | 나열할 폴더. `/`로 끝냅니다.       |
| `page_size`  | 1\~1,000, 기본값 500        |
| `next_token` | 다음 페이지를 위해 이전 응답에서 가져온 값 |
| `project`    | 항목을 이 프로젝트와 대조해 확인       |

각 항목에는 `name`(전체 객체 키), `type`(파일은 `REG`, 폴더는 `DIR`), `size`, `is_extension_allowed`가 있습니다.

## 가져오기 <a href="#import" id="import"></a>

```bash
curl -s -X POST "https://api.unitlab.ai/api/sdk/projects/$PROJECT_ID/cloud-storages/$STORAGE_ID/import/" \
  -H "Authorization: Api-Key $UNITLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"server_files": ["fleet/cell-04/2026-11-21/"], "fps": 2}'
```

반환된 `upload_session_id`는 다른 Batch Queue와 같은 방식으로 추적합니다. [프로젝트 데이터와 Batch Queue API](https://docs.unitlab.ai/api-sdk-cli/ko/apis/project-data-and-batch-queues-api.md)를 참고하세요.

## 관련 문서 <a href="#related" id="related"></a>

[SDK: 클라우드 스토리지](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/cloud-storage.md) · [에셋과 폴더 API](https://docs.unitlab.ai/api-sdk-cli/ko/apis/assets-and-folders-api.md)
