Organization 개요

Prev Next

이 가이드는 API 명세를 기반으로 자동 생성했습니다.

Classic/VPC 환경에서 이용 가능합니다.

Ncloud API 표준 규격을 적용한 API입니다.

Organization은 조직이 가진 모든 계정에서 발생한 비용의 통합 결제와 자원 사용 정책 관리를 지원하는 네이버 클라우드 플랫폼의 서비스입니다.
Organization 서비스에서는 Organization, 계정, 계정 그룹, Quota Policy(이용 한도 정책) 기능에 대한 API를 RESTful 형태로 제공합니다.

Organization 공통 설정

Organization API에서 공통으로 사용하는 요청 형식과 응답 형식을 설명합니다.

요청

공통 요청 형식을 설명합니다.

API URL

요청 API URL은 다음과 같습니다.

https://organization.apigw.ntruss.com

요청 헤더

요청 헤더에 대한 설명은 다음과 같습니다.

필드 필수 여부 설명
x-ncp-apigw-timestamp Required 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간(밀리초)
  • API Gateway 서버와 5분 이상 시간 차 발생 시 유효하지 않은 요청으로 간주
  • Unix Timestamp 형식
x-ncp-iam-access-key Required 네이버 클라우드 플랫폼에서 발급받은 Access Key
x-ncp-apigw-signature-v2 Required 네이버 클라우드 플랫폼에서 발급받은 Access Key에 맵핑되는 Secret Key 및 HMAC 암호화 알고리즘(HmacSHA256)으로 요청 정보를 암호화한 후 Base64로 인코딩한 서명

응답

공통 응답 형식을 설명합니다.

응답 바디

API가 반환하는 공통 응답 바디는 다음과 같습니다.

응답 사용하는 API 설명
기본 오류 응답 모든 API 호출에 실패하면 error에 오류 정보를 담아 반환

응답 상태 코드

응답 상태 코드에 대한 설명은 다음과 같습니다.

HTTP 상태 코드 코드 메시지 설명
200 - - 각 API 문서의 응답 상태 코드를 참조
201 - - 각 API 문서의 응답 상태 코드를 참조
204 - - 각 API 문서의 응답 상태 코드를 참조
400 InvalidParameter The specified parameter is invalid. 각 API 문서의 응답 상태 코드를 참조
400 BadRequest The request is malformed or contains an error such as an invalid parameter value or a missing required parameter. 각 API 문서의 응답 상태 코드를 참조
400 InvalidState The request cannot be processed in the current state. 각 API 문서의 응답 상태 코드를 참조
400 ResourceLimitExceeded The request exceeds the resource limit. 각 API 문서의 응답 상태 코드를 참조
400 InvalidOperation The specified operation is invalid. 각 API 문서의 응답 상태 코드를 참조
400 CannotDelete The delete operation could not be completed. 각 API 문서의 응답 상태 코드를 참조
401 Unauthorized Authentication credentials are missing or invalid. 인증 정보가 없거나 올바르지 않은 경우. API 인증키(Access Key ID·Secret Key)와 서명 값을 확인한 뒤 다시 요청
402 PaymentRequired Payment is required to process this request. Check your billing status. 각 API 문서의 응답 상태 코드를 참조
403 AccessDenied The request was denied by an access policy. 각 API 문서의 응답 상태 코드를 참조
403 Forbidden You do not have sufficient permissions to perform this action. 각 API 문서의 응답 상태 코드를 참조
404 ResourceNotFound The specified resource could not be found. 각 API 문서의 응답 상태 코드를 참조
409 Conflict The request could not be processed because of a conflict in the current status of the resource. 각 API 문서의 응답 상태 코드를 참조
409 ResourceInUse The specified resource is in use. 각 API 문서의 응답 상태 코드를 참조
409 AlreadyExists A resource with the requested identifier already exists. 각 API 문서의 응답 상태 코드를 참조
415 UnsupportedMediaType The content type of the request body is not supported. 각 API 문서의 응답 상태 코드를 참조
429 TooManyRequests Too many requests were sent in a short period. Retry your request later. 각 API 문서의 응답 상태 코드를 참조
500 InternalServerError The request processing has failed because of an unknown error, exception, or failure. 각 API 문서의 응답 상태 코드를 참조
502 BadGateway The server received an invalid response from an upstream service. Retry your request later. 각 API 문서의 응답 상태 코드를 참조
참고

네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.

Organization API

Organization 서비스에서 제공하는 API에 대한 설명은 다음과 같습니다.

Organization

Organization 관련 API에 대한 설명은 다음과 같습니다.

API 설명
createOrganization Organization 생성
getOrganization Organization 조회
listOrganizations Organization 목록 조회
deleteOrganization Organization 삭제

계정

계정 관련 API에 대한 설명은 다음과 같습니다.

API 설명
createInvitation 계정 초대
getAccount 계정 조회
listInvitations 보낸 초대 목록 조회
listLeaveRequests 탈퇴 신청 목록 조회
listReceivedInvitations 받은 초대 목록 조회
deleteInvitation 초대 취소
acceptReceivedInvitation 초대 승인
approveLeaveRequest 탈퇴 신청 승인
moveAccount 계정 이동
rejectLeaveRequest 탈퇴 신청 반려
rejectReceivedInvitation 초대 거절
removeAccount 강제 탈퇴

계정 그룹

계정 그룹 관련 API에 대한 설명은 다음과 같습니다.

API 설명
createAccountGroup 계정 그룹 생성
getAccountGroup 계정 그룹 조회
listAccountGroupTags 계정 그룹 태그 목록 조회
listAccountGroups 계정 그룹 목록 조회
listAccounts 계정 그룹 소속 계정 목록 조회
updateAccountGroup 계정 그룹 이름 변경
deleteAccountGroup 계정 그룹 삭제
addAccountGroupTag 계정 그룹 태그 추가
attachQuotaPolicy 계정 그룹에 Quota Policy 적용
detachQuotaPolicy 계정 그룹의 Quota Policy 적용 해제
moveAccountGroup 계정 그룹 이동
removeAccountGroupTag 계정 그룹 태그 삭제

Quota Policy

Quota Policy 관련 API에 대한 설명은 다음과 같습니다.

API 설명
createQuotaPolicy Quota Policy 생성
getQuotaPolicy Quota Policy 조회
listAccountQuotas 계정 이용 한도 조회
listAttachedQuotaPolicies Quota Policy 적용 조회
listAvailableCategories 카테고리 목록 조회
listAvailableRegions 리전 목록 조회
listAvailableResourceTypes 리소스 유형 목록 조회
listAvailableServiceTypes 서비스 유형 목록 조회
listAvailableServices 서비스 목록 조회
listQuotaPolicies Quota Policy 목록 조회
listQuotaPolicyTags Quota Policy 태그 목록 조회
deleteQuotaPolicy Quota Policy 삭제
addQuotaPolicyTag Quota Policy 태그 추가
removeQuotaPolicyTag Quota Policy 태그 삭제

Organization 연관 리소스

Organization API에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다.