--- title: "getCategoryResult" slug: "pub-cloud-advisor-v2-category-getcategoryresult" updated: 2026-11-24T09:24:32Z published: 2026-11-24T09:24:32Z canonical: "api.ncloud-docs.com/pub-cloud-advisor-v2-category-getcategoryresult" --- > ## 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. # getCategoryResult 이 가이드는 API 명세를 기반으로 자동 생성했습니다. VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 점검 카테고리에 속한 점검 항목의 점검 결과를 알림 등급별 점검 항목 수로 집계하여 조회합니다. - 점검을 요청한 적이 없는 점검 항목과, 마지막 점검이 실패한 뒤 다음 점검 요청이 가능해지기(`nextRefreshableTimestamp`) 전인 점검 항목은 집계하지 않습니다. - 점검을 요청했지만 완료된 점검 결과가 없는 점검 항목은 `GREEN`으로 집계합니다. **오류** - `category`가 `SECURITY`, `COST`가 아니면 `400 InvalidParameter`를 반환합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | /api/v2/categories/{category}/result | ### 요청 헤더 Cloud Advisor API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud Advisor 요청 헤더](/docs/pub-cloud-advisor-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `category` | String | Required | 점검 카테고리 - `SECURITY` \| `COST` - `SECURITY`: 보안 - `COST`: 비용&고가용성 - 길이: 1 ~ 20 - <예시> COST | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://cloud-advisor.apigw.ntruss.com/api/v2/categories/COST/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)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `categoryResult` | Object<[CategoryResult](/docs/pub-cloud-advisor-v2-type-categoryresult)> | - | 점검 카테고리 알림 등급 집계 응답 - <예시> `{"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 | - | - | 요청 처리 성공 | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | 경로·쿼리 파라미터나 요청 본문의 값이 허용 값 또는 형식이 아닌 경우. operation 설명의 조건을 확인해 값을 수정한 뒤 다시 요청 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 서브 계정에 이 API를 호출할 권한이 없는 경우. `detail`에 표시된 권한을 서브 계정에 부여한 뒤 다시 요청 | | 404 | `CategoryNotFound` | `The category does not exist.` | `category`에 해당하는 점검 카테고리를 현재 제공하지 않는 경우. 점검 카테고리 목록 조회 API로 제공 중인 `category`를 확인 | 참고 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)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "categoryResult": { "category": "COST", "categoryName": "비용&고가용성", "alertLevelCounts": [ { "alertLevel": "GREEN", "count": 9 }, { "alertLevel": "YELLOW", "count": 3 }, { "alertLevel": "RED", "count": 1 }, { "alertLevel": "BLUE", "count": 0 } ] } } ```