--- title: "detachQuotaPolicy" slug: "pub-organization-v2-account-group-detachquotapolicy" updated: 2026-11-24T09:24:32Z published: 2026-11-24T09:24:32Z canonical: "api.ncloud-docs.com/pub-organization-v2-account-group-detachquotapolicy" --- > ## 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. # detachQuotaPolicy 이 가이드는 API 명세를 기반으로 자동 생성했습니다. Classic/VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 계정 그룹에 적용된 Quota Policy를 해제하고 Organization 기본 정책을 다시 적용합니다. - 마스터 계정만 호출할 수 있습니다. - Organization 기본 정책은 해제할 수 없습니다. - 적용된 정책을 먼저 해제한 뒤 기본 정책을 적용합니다. 지정한 계정 그룹에만 적용되며, 하위 계정 그룹에 적용된 정책은 바뀌지 않습니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | POST | /open-api/v2/organizations/{organizationNo}/account-groups/{accountGroupNo}/detach-quota-policy | ### 요청 헤더 Organization API에서 공통으로 사용하는 헤더에 대한 정보는 [Organization 요청 헤더](/docs/pub-organization-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `organizationNo` | Integer (int32) | Required | Organization 번호. Organization 목록 조회(`GET /organizations`)로 확인할 수 있음 - 범위: 1 ~ - <예시> 2706 | | `accountGroupNo` | Integer (int32) | Required | 계정 그룹 번호. 계정 그룹 목록 조회(`GET /organizations/{organizationNo}/account-groups`)로 확인할 수 있음 - 범위: 1 ~ - <예시> 1445 | ### 요청 바디 요청 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `policyNo` | Integer (int32) | Required | 해제할 Quota Policy 번호. 계정 그룹에 현재 적용된 정책의 번호를 지정하며, 계정 그룹 조회(`GET /organizations/{organizationNo}/account-groups/{accountGroupNo}`) 응답의 `policyNo`로 확인할 수 있음 - 범위: 1 ~ - <예시> 4927 | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request POST 'https://organization.apigw.ntruss.com/open-api/v2/organizations/2706/account-groups/1445/detach-quota-policy' \ --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 '{ "policyNo": 4927 }' ``` ## 응답 응답 형식을 설명합니다. ### 응답 상태 코드 호출에 실패하면 [기본 오류 응답](/docs/type-error-response) 형식의 응답 바디를 반환하며, 오류 코드는 `error.errorCode` 값입니다. 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 204 | - | - | Quota Policy 적용 해제 완료 | | 400 | `BadRequest` | `The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.` | 요청 바디가 JSON 형식이 아니거나, 필수 필드(policyNo)를 지정하지 않았거나 null로 지정한 경우. 요청 바디를 확인한 뒤 다시 요청 | | 400 | `InvalidOperation` | `The specified operation is invalid.` | Organization 기본 정책을 해제하려는 경우. 기본 정책은 해제할 수 없으며, 다른 정책으로 바꾸려면 계정 그룹에 Quota Policy 적용을 사용 | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | organizationNo나 accountGroupNo가 1 이상의 정수가 아니거나, policyNo가 1 이상의 정수가 아닌 경우. 요청 값을 확인한 뒤 다시 요청 | | 403 | `AccessDenied` | `The request was denied by an access policy.` | 민간 회원이 아닌 계정으로 호출한 경우. 민간 회원 계정의 인증 정보로 다시 요청 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 호출한 계정이 지정한 Organization(organizationNo)의 마스터 계정이 아닌 경우. 지정한 Organization이 없는 경우도 같은 응답이며, Organization 목록 조회로 organizationNo를 확인하고 마스터 계정의 인증 정보로 다시 요청. 서브 계정으로 호출했는데 이 API를 호출할 권한이 없는 경우에도 이 응답이며, 서브 계정에 필요한 권한을 부여한 뒤 다시 요청 | | 404 | `ResourceNotFound` | `The specified resource could not be found.` | 지정한 Organization에 계정 그룹(accountGroupNo)이나 Quota Policy(policyNo)가 없는 경우. 다른 Organization의 자원을 지정한 경우도 같은 응답. 계정 그룹 목록 조회와 Quota Policy 목록 조회로 번호를 확인한 뒤 다시 요청 | | 409 | `Conflict` | `The request could not be processed because of a conflict in the current status of the resource.` | 지정한 Quota Policy가 계정 그룹에 적용되어 있지 않은 경우. 계정 그룹 조회의 policyNo로 적용된 정책을 확인한 뒤 다시 요청 | | 415 | `UnsupportedMediaType` | `The content type of the request body is not supported.` | 요청 바디의 Content-Type이 application/json이 아닌 경우. Content-Type: application/json을 지정해 다시 요청 | | 500 | `InternalServerError` | `The request processing has failed because of an unknown error, exception, or failure.` | 계정 그룹의 Quota Policy 적용을 해제하는 중 오류가 발생한 경우. 정책을 해제한 뒤 기본 정책을 적용하는 단계에서 오류가 발생하면 계정 그룹에 정책이 없는 상태로 남을 수 있으므로, 계정 그룹 조회의 policyNo로 확인하고 policyNo가 null이면 Quota Policy 목록 조회에서 defaultPolicy가 true인 정책을 계정 그룹에 Quota Policy 적용으로 적용 | | 502 | `BadGateway` | `The server received an invalid response from an upstream service. Retry your request later.` | 서브 계정의 권한을 확인하지 못한 경우. 잠시 후 다시 요청 | 참고 Organization API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Organization 응답 상태 코드](/docs/pub-organization-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오.