--- title: "Operation Response" slug: "type-operation-response" updated: 2026-11-24T09:09:33Z published: 2026-11-24T09:09:33Z canonical: "api-fin.ncloud-docs.com/type-operation-response" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-fin.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Operation Response Ncloud API 표준 규격을 적용한 API입니다. Operation 응답(네이버클라우드 정의 데이터 타입)에 대해 설명합니다. 리소스 생성이나 대량 데이터 처리처럼 처리 시간이 긴 작업을 요청하면 API는 작업을 접수하고 Operation을 반환합니다. Operation은 접수된 작업 한 건을 의미하며, 작업 조회 API로 동일한 Operation을 다시 조회하여 진행 상황과 결과를 확인할 수 있습니다. Operation을 반환하는 API의 처리 흐름을 정리하면 다음과 같습니다. 1. 작업을 요청하면 API가 `202 Accepted`와 함께 [Operation 기반 LRO API 응답](/docs/type-operation-response#LRO%EC%9D%91%EB%8B%B5)을 반환합니다. 2. 응답의 `id`로 작업 조회 API를 호출해 [Operation 조회 API 응답](/docs/type-operation-response#Operation%EC%A1%B0%ED%9A%8C%EC%9D%91%EB%8B%B5)을 받습니다. 작업 조회 API의 Endpoint URL은 서비스별 API 가이드에서 확인해 주십시오. 3. `done`이 `true`가 될 때까지 2를 반복한 뒤 [작업 상태 판정](/docs/type-operation-response#%EC%9E%91%EC%97%85%EC%83%81%ED%83%9C%ED%8C%90%EC%A0%95)에 따라 결과를 확인합니다. 참고 작업 결과(`results`)의 구조는 API마다 상이하므로 서비스별 API 가이드에서 확인해 주십시오. ## 스키마 정의 Operation 응답의 구조는 다음과 같습니다. `results`, `error`, `failures`는 작업 상태에 따라 포함 여부가 상이합니다. ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": false, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z", "endDateTime": "2026-02-24T10:05:00Z", "progress": 60 }, "results": { "{index}": {} }, "error": { "errorCode": "string", "message": "string", "detail": "string", "fieldErrors": [ { "field": "string", "message": "string" } ] }, "failures": { "{index}": { "errorCode": "string", "message": "string", "detail": "string", "fieldErrors": [ { "field": "string", "message": "string" } ] } } } ``` ## 스키마 필드 Operation 응답은 응답 종류에 따라 포함하는 필드가 다음과 같이 상이합니다. - Operation 기반 LRO API 응답 - 작업을 접수한 API가 `202 Accepted`와 함께 반환하는 응답 - `id`, `done`, `metadata`만 포함 - Operation 조회 API 응답 - 작업 조회 API가 반환하는 응답 - 작업 상태에 따라 `results`, `error`, `failures`를 포함하며, 작업 상태는 다음과 같이 판정 | 상태 | `done` | `results` | `error` | `failures` | | --- | --- | --- | --- | --- | | 진행 중 | `false` | 포함 안 함 | 포함 안 함 | 포함 안 함 | | 성공 | `true` | 결과가 있는 작업에만 포함 | 포함 안 함 | 포함 안 함 | | 실패 (단일 작업) | `true` | 포함 안 함 | 포함 | 포함 안 함 | | 일부 실패 (일괄 작업) | `true` | 성공한 항목만 포함 | 포함 안 함 | 실패한 항목만 포함 | ### Operation Operation에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `id` | String (uuid) | Required | Operation 식별자 - <예시> `550e8400-e29b-41d4-a716-446655440000` | | `done` | Boolean | Required | 작업 완료 여부 - `true` \| `false` - `true`: 완료 - `false`: 진행 중 | | `metadata` | Object<[OperationMetadata](/docs/type-operation-response#OperationMetadata)> | Required | 작업 관련 추가 정보 | | `results` | Map | Optional | 작업 성공 시 결과 리소스 - Operation 조회 API 응답에만 포함 - 키: 요청 항목의 인덱스로, 단일 작업인 경우에는 `0` - 결과가 없는 작업은 포함하지 않음 - 실제 값의 구조는 서비스별 작업 조회 API 가이드에서 확인 | | `error` | Object<[Error](/docs/type-error-response#Error)> | Optional | 단일 작업 실패 시 오류 정보 - Operation 조회 API 응답에만 포함 | | `failures` | Map<[Error](/docs/type-error-response#Error)> | Optional | 일괄 작업의 실패 목록 - Operation 조회 API 응답에만 포함 - 실패한 요청 항목의 인덱스만 키로 포함 - 키 형식: `^(0\|[1-9][0-9]*)$` | ### OperationMetadata OperationMetadata에 대한 설명은 다음과 같습니다. 서비스에 따라 필드가 추가될 수 있으므로 자세한 내용은 서비스별 API 가이드에서 확인해 주십시오. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `operationType` | String | Required | 작업 유형 - `CREATE` \| `UPDATE` \| `DELETE` | | `resourceType` | String | Required | 대상 리소스의 이름 - REST API URI의 리소스 경로와 동일한 값 - 영문 소문자 복수형을 kebab-case로 표기 - <예시> `servers`, `public-ips` | | `startDateTime` | String (date-time) | Required | 작업 시작 시간 - <예시> `2026-02-24T10:00:00Z` | | `endDateTime` | String (date-time) | Optional | 작업 완료 시간 - 작업이 완료된 경우에만 포함 - <예시> `2026-02-24T10:05:00Z` | | `progress` | Integer (int32) | Optional | 작업 진행률 - 진행률 제공이 가능한 경우에만 포함 - 범위: 0~100 | ## 스키마 예시 Operation 응답의 예시는 다음과 같습니다. - Operation 기반 LRO API 응답 ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": false, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z" } } ``` - Operation 조회 API 응답(진행 중) ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": false, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z", "progress": 60 } } ``` - Operation 조회 API 응답(성공) ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": true, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z", "endDateTime": "2026-02-24T10:05:00Z" }, "results": { "0": { "name": "example-server" } } } ``` - Operation 조회 API 응답(단일 작업 실패) ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": true, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z", "endDateTime": "2026-02-24T10:05:00Z" }, "error": { "errorCode": "InsufficientCapacity", "message": "There is insufficient capacity to perform the action. Retry your request later." } } ``` - Operation 조회 API 응답(일괄 작업 중 일부 실패) ``` { "id": "550e8400-e29b-41d4-a716-446655440000", "done": true, "metadata": { "operationType": "CREATE", "resourceType": "servers", "startDateTime": "2026-02-24T10:00:00Z", "endDateTime": "2026-02-24T10:05:00Z" }, "results": { "0": { "name": "example-server-1" }, "2": { "name": "example-server-3" } }, "failures": { "1": { "errorCode": "Conflict", "message": "The request could not be processed because of a conflict in the current status of the resource." } } } ``` ## 연관 리소스 Operation 응답과 연관된 리소스는 다음과 같습니다. - [Error Response](/docs/type-error-response) - [Batch Failure Response](/docs/type-batch-response)