--- title: "QueryData " slug: "management-cloudinsight-querydata" updated: 2026-10-22T10:47:29Z published: 2026-10-22T10:47:29Z canonical: "api-gov.ncloud-docs.com/management-cloudinsight-querydata" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # QueryData Classic/VPC 환경에서 이용 가능합니다. Cloud Insight에서 수집한 time-series 데이터를 조회합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | POST | /cw_fea/real/cw/api/data/query | ### 요청 헤더 Cloud Insight API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Insight 요청 헤더](/docs/management-cloudinsight#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 바디 데이터 조회 요청 정보 관련 필드에 대한 설명은 [DataQueryRequest](/docs/common-apidatatype-cidataqueryrequest)를 참조해 주십시오. 참고 요청 바디 입력 시 다음 내용을 참고해 주십시오. - 스키마 등록 시 구성한 집계 함수(`aggregation`)와 데이터 쿼리 요청의 집계가 일치하지 않으면 데이터를 가져올 수 없습니다. - 데이터 집계 주기(`interval`)에 따라 권장 조회 기간(`timeEnd`~`timeStart`)이 상이합니다. 자세한 내용은 [데이터 집계 주기별 권장 조회 기간](https://guide.ncloud-docs.com/docs/cloudinsight-spec#%EB%8D%B0%EC%9D%B4%ED%84%B0-%EC%A7%91%EA%B3%84-%EC%A3%BC%EA%B8%B0%EB%B3%84-%EA%B6%8C%EC%9E%A5-%EC%A1%B0%ED%9A%8C-%EA%B8%B0%EA%B0%84)을 참조해 주십시오. ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request POST 'https://cw.apigw.gov-ntruss.com/cw_fea/real/cw/api/data/query' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "timeEnd": **********, "timeStart": **********, "cw_key": "**********", "productName":"System/Server(VPC)", "metric": "avg_cpu_used_rto", "interval": "Min1", "aggregation": "AVG", "dimensions": { "instanceNo": "**********" } }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `data` | Array | - | 조회 결과 - 데이터 포인트(Unix Timestamp 형식), 데이터 값 형태로 표시 | ### 응답 상태 코드 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Cloud Insight API 응답 상태 코드](/docs/management-cloudinsight#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` [ [ 1733184480000, 0.3678916 ], [ 1733184540000, 0.33438668 ], [ 1733184600000, 0.32612613 ], [ 1733184660000, 0.32586497 ], [ 1733184720000, 0.30105397 ], [ 1733184780000, 0.35094023 ] ] ```