Global Traffic Manager 개요

Prev Next

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

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

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

Global Traffic Manager는 여러 리전과 리소스에 걸친 트래픽을 DNS 응답 수준에서 분배하는 글로벌 로드 밸런싱을 지원하는 네이버 클라우드 플랫폼의 서비스입니다.
Global Traffic Manager 서비스에서는 Traffic Profile, Traffic Policy, Geo/CIDR Map 관리와 질의수 조회 기능에 대한 API를 RESTful 형태로 제공합니다.

Global Traffic Manager 공통 설정

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

요청

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

API URL

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

https://globaltrafficmanager.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에 오류 정보를 담아 반환
Operation 기반 LRO API 응답 작업을 비동기로 처리하는 API 호출하면 202 Accepted와 함께 작업 정보(Operation)를 반환
Operation 조회 API 응답 비동기 작업의 상태를 조회하는 API 호출하면 작업 상태와 결과를 담은 작업 정보(Operation)를 반환

응답 상태 코드

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

HTTP 상태 코드 코드 메시지 설명
200 - - 각 API 문서의 응답 상태 코드를 참조
202 - - 각 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 InvalidConfiguration Some or all of the configuration is incomplete, missing, or not valid. 각 API 문서의 응답 상태 코드를 참조
400 InvalidState The request cannot be processed in the current state. 각 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. 인증 정보가 없거나 유효하지 않은 경우
403 Forbidden You do not have sufficient permissions to perform this action. 요청 계정에 해당 자원 또는 상위 자원에 대한 권한이 없는 경우. 권한 판정을 자원 존재 확인보다 먼저 수행하므로, 다른 계정이 소유한 식별자를 지정하면 자원의 존재 여부와 관계없이 403으로 응답
404 TrafficPolicyNotFound The Traffic Policy does not exist. 각 API 문서의 응답 상태 코드를 참조
404 TrafficProfileNotFound The Traffic Profile does not exist. 각 API 문서의 응답 상태 코드를 참조
404 OperationNotFound The Operation does not exist. 각 API 문서의 응답 상태 코드를 참조
404 MapNotFound The Geo/CIDR Map does not exist. 각 API 문서의 응답 상태 코드를 참조
404 MapDetailNotFound The Geo/CIDR Map detail item does not exist. 각 API 문서의 응답 상태 코드를 참조
404 ResourceGroupNotFound The Resource Group does not exist. 각 API 문서의 응답 상태 코드를 참조
409 AlreadyExists A resource with the requested identifier already exists. 각 API 문서의 응답 상태 코드를 참조
409 ResourceNotReady The resource is not ready. 각 API 문서의 응답 상태 코드를 참조
409 ResourceInUse The specified resource is in use. 각 API 문서의 응답 상태 코드를 참조
415 UnsupportedMediaType The content type of the request body is not supported. 각 API 문서의 응답 상태 코드를 참조
500 InternalServerError The request processing has failed because of an unknown error, exception, or failure. 서버 내부 오류로 요청을 처리하지 못한 경우
참고

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

Global Traffic Manager API

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

Traffic Profile

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

API 설명
createTrafficProfile Traffic Profile 생성
getTrafficProfile Traffic Profile 조회
getTrafficProfileOperation Traffic Profile 작업 조회
listTrafficProfileOperations Traffic Profile 작업 목록 조회
listTrafficProfiles Traffic Profile 목록 조회
updateTrafficProfile Traffic Profile 수정
deleteTrafficProfile Traffic Profile 삭제

Traffic Policy

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

API 설명
createTrafficPolicy Traffic Policy 생성
getTrafficPolicy Traffic Policy 조회
getTrafficPolicyOperation Traffic Policy 작업 조회
listTrafficPolicies Traffic Policy 목록 조회
listTrafficPolicyOperations Traffic Policy 작업 목록 조회
updateTrafficPolicy Traffic Policy 수정
deleteTrafficPolicy Traffic Policy 삭제

Geo/CIDR Map

Geo/CIDR Map 관련 API에 대한 설명은 다음과 같습니다.

API 설명
createMap Geo/CIDR Map 생성
getMap Geo/CIDR Map 조회
getMapOperation Geo/CIDR Map 작업 조회
listMapOperations Geo/CIDR Map 작업 목록 조회
listMaps Geo/CIDR Map 목록 조회
updateMap Geo/CIDR Map 수정
deleteMap Geo/CIDR Map 삭제

Geolocation

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

API 설명
listGeolocations 지역 목록 조회

Query Statistics

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

API 설명
listQueryStatistics 계정 질의수 목록 조회
listTrafficProfileQueryStatistics DNS 질의수 목록 조회

Global Traffic Manager 연관 리소스

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