--- title: "getResult" slug: "pub-cloud-advisor-v2-result-getresult" updated: 2026-11-24T09:24:32Z published: 2026-11-24T09:24:32Z canonical: "api.ncloud-docs.com/pub-cloud-advisor-v2-result-getresult" --- > ## 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. # getResult 이 가이드는 API 명세를 기반으로 자동 생성했습니다. VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 전체 점검 카테고리의 점검 결과를 알림 등급별 점검 항목 수로 집계하여 조회합니다. - `alertLevelCounts`는 조회 권한이 있는 점검 카테고리를 합산한 값이고, `categoryResults`는 점검 카테고리별 값입니다. - 조회 권한이 있는 점검 카테고리 중 제공 중인 카테고리가 없으면 `200`과 빈 `categoryResults`, `count`가 모두 0인 `alertLevelCounts`를 반환합니다. - 점검을 요청한 적이 없는 점검 항목과, 마지막 점검이 실패한 뒤 다음 점검 요청이 가능해지기(`nextRefreshableTimestamp`) 전인 점검 항목은 집계하지 않습니다. - 점검을 요청했지만 완료된 점검 결과가 없는 점검 항목은 `GREEN`으로 집계합니다. **서브 계정** - 서브 계정은 조회 권한이 있는 점검 카테고리의 결과만 집계·포함합니다. 조회 권한이 있는 점검 카테고리가 없으면 `403 Forbidden`을 반환합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | /api/v2/result | ### 요청 헤더 Cloud Advisor API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Advisor 요청 헤더](/docs/pub-cloud-advisor-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://cloud-advisor.apigw.ntruss.com/api/v2/result' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## 응답 응답 형식을 설명합니다. ### 응답 헤더 Cloud Advisor API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Advisor 응답 헤더](/docs/pub-cloud-advisor-v2-overview#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `result` | Object<[Result](/docs/pub-cloud-advisor-v2-result-getresult#Result)> | - | 전체 점검 결과 집계 응답 - <예시> `{"alertLevelCounts": [{"alertLevel": "GREEN", "count": 19}, {"alertLevel": "YELLOW", "count": 5}, {"alertLevel": "RED", "count": 2}, {"alertLevel": "BLUE", "count": 0}], "categoryResults": [{"category": "SECURITY", "categoryName": "보안", "alertLevelCounts": [{"alertLevel": "GREEN", "count": 10}, {"alertLevel": "YELLOW", "count": 2}, {"alertLevel": "RED", "count": 1}, {"alertLevel": "BLUE", "count": 0}]}, {"category": "COST", "categoryName": "비용&고가용성", "alertLevelCounts": [{"alertLevel": "GREEN", "count": 9}, {"alertLevel": "YELLOW", "count": 3}, {"alertLevel": "RED", "count": 1}, {"alertLevel": "BLUE", "count": 0}]}]}` | #### Result 전체 점검 카테고리 알림 등급 집계 | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `alertLevelCounts` | List<[AlertLevelCount](/docs/pub-cloud-advisor-v2-type-alertlevelcount)> | - | 조회 권한이 있는 점검 카테고리를 합산한 알림 등급별 점검 항목 수. 알림 등급마다 하나씩 반환 - 항목 수: 4 ~ 4 - <예시> `[{"alertLevel": "GREEN", "count": 19}, {"alertLevel": "YELLOW", "count": 5}, {"alertLevel": "RED", "count": 2}, {"alertLevel": "BLUE", "count": 0}]` | | `categoryResults` | List<[CategoryResult](/docs/pub-cloud-advisor-v2-type-categoryresult)> | - | 조회 권한이 있는 점검 카테고리별 알림 등급 집계. 조회 권한이 있는 점검 카테고리 중 제공 중인 카테고리가 없으면 빈 배열 - 항목 수: 0 ~ 2 - <예시> `[{"category": "SECURITY", "categoryName": "보안", "alertLevelCounts": [{"alertLevel": "GREEN", "count": 10}, {"alertLevel": "YELLOW", "count": 2}, {"alertLevel": "RED", "count": 1}, {"alertLevel": "BLUE", "count": 0}]}, {"category": "COST", "categoryName": "비용&고가용성", "alertLevelCounts": [{"alertLevel": "GREEN", "count": 9}, {"alertLevel": "YELLOW", "count": 3}, {"alertLevel": "RED", "count": 1}, {"alertLevel": "BLUE", "count": 0}]}]` | ### 응답 상태 코드 호출에 실패하면 [기본 오류 응답](/docs/type-error-response) 형식의 응답 바디를 반환하며, 오류 코드는 `error.errorCode` 값입니다. 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 200 | - | - | 요청 처리 성공 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 서브 계정에 이 API를 호출할 권한이 없는 경우. `detail`에 표시된 권한을 서브 계정에 부여한 뒤 다시 요청 | 참고 Cloud Advisor API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Cloud Advisor 응답 상태 코드](/docs/pub-cloud-advisor-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "result": { "alertLevelCounts": [ { "alertLevel": "GREEN", "count": 19 }, { "alertLevel": "YELLOW", "count": 5 }, { "alertLevel": "RED", "count": 2 }, { "alertLevel": "BLUE", "count": 0 } ], "categoryResults": [ { "category": "SECURITY", "categoryName": "보안", "alertLevelCounts": [ { "alertLevel": "GREEN", "count": 10 }, { "alertLevel": "YELLOW", "count": 2 }, { "alertLevel": "RED", "count": 1 }, { "alertLevel": "BLUE", "count": 0 } ] }, { "category": "COST", "categoryName": "비용&고가용성", "alertLevelCounts": [ { "alertLevel": "GREEN", "count": 9 }, { "alertLevel": "YELLOW", "count": 3 }, { "alertLevel": "RED", "count": 1 }, { "alertLevel": "BLUE", "count": 0 } ] } ] } } ```