--- title: "getCapacity" slug: "pub-cloud-log-analytics-v2-capacity-getcapacity" updated: 2026-11-24T09:24:28Z published: 2026-11-24T09:24:28Z canonical: "api.ncloud-docs.com/pub-cloud-log-analytics-v2-capacity-getcapacity" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getCapacity 이 가이드는 API 명세를 기반으로 자동 생성했습니다. Classic/VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 현재 상품의 용량, 사용량, 남은 용량을 조회합니다. - 필요 권한: 없음. 기존 v1 공개 API(`GET /api/{regionCode}-v1/capacity`)와 같이 Sub Account 권한 검사 없이 조회할 수 있습니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | /api/v2/capacity | ### 요청 헤더 Cloud Log Analytics API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Log Analytics 요청 헤더](/docs/pub-cloud-log-analytics-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://kr-cloudloganalytics.beta-apigw.ntruss.com/api/v2/capacity' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## 응답 응답 형식을 설명합니다. ### 응답 헤더 Cloud Log Analytics API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Log Analytics 응답 헤더](/docs/pub-cloud-log-analytics-v2-overview#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `productNo` | Integer (int32) | - | 상품 번호 - <예시> 3 | | `productName` | String | - | 상품 이름 - <예시> Premium | | `productSubName` | String | - | 상품 하위 이름 | | `productNameDefault` | Boolean | - | 상품 이름이 기본 이름인지 여부 - `true` \| `false` | | `retentionDays` | Integer (int32) | - | 데이터 보관 기간(일) - <예시> 28 | | `dataSize` | String | - | 상품 데이터 크기 - <예시> 1000.0G | | `dataLimit` | Integer (int64) | - | 전체 데이터 한도 | | `dataLimitDaily` | Integer (int64) | - | 일일 데이터 한도 | | `alarmLimitCount` | Integer (int32) | - | 알람 한도 횟수 | | `productEffectiveDateTime` | String (date-time) | - | 상품이 적용되기 시작한 일시 | | `usageBytes` | Integer (int64) | - | 사용 중인 용량(바이트) - <예시> 111299002368 | | `remainingBytes` | Integer (int64) | - | 남은 용량(바이트) - <예시> 962442821632 | | `usagePercent` | Number (double) | - | 용량 사용률(%) - <예시> 10.36552734375 | ### 응답 상태 코드 호출에 실패하면 [기본 오류 응답](/docs/type-error-response) 형식의 응답 바디를 반환하며, 오류 코드는 `error.errorCode` 값입니다. 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 200 | - | - | 용량 조회 성공 | 참고 Cloud Log Analytics API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Cloud Log Analytics 응답 상태 코드](/docs/pub-cloud-log-analytics-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "productNo": 3, "productName": "Premium", "retentionDays": 28, "dataSize": "1000.0G", "usageBytes": 111299002368, "remainingBytes": 962442821632, "usagePercent": 10.36552734375 } ```