Classic/VPC 환경에서 이용 가능합니다.
계정에 적용된 리소스별 이용 한도를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /open-api/v1/policy/allotment/{memberNo}/{regionNo} |
요청 헤더
Organization API에서 공통으로 사용하는 헤더에 대한 정보는 Organization 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
memberNo |
Integer | Required | 계정 회원 번호
|
regionNo |
String | Required | 리전 번호
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://organization.apigw.ntruss.com/open-api/v1/policy/allotment/260****/1' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Accept: application/json'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
resourceTypeCode |
String | - | 리소스 코드 |
resourceName |
String | - | 리소스 이름 |
customResourceName |
String | - | 리소스 이름
|
lowerResourceTypeCode |
String | - | 하위 리소스 코드
|
lowerResourceName |
String | - | 하위 리소스 이름 |
includeLowerResourceYn |
String | - | 하위 리소스 존재 여부
|
resourceCategoryTypeCode |
String | - | 리소스 카테고리 코드 |
resourceCategoryName |
String | - | 리소스 카테고리 이름 |
platformTypeCode |
String | - | 플랫폼 유형 코드
|
infraResourceTypeCode |
String | - | 인프라 리소스 유형 코드 |
singleProductContractTypeCode |
String | - | 단일 상품 계약 유형 코드 |
singleProductContractProductTypeCode |
String | - | 단일 상품 계약 상품 유형 코드
|
productRatingTypeCode |
String | - | 상품 요금 유형 코드 |
resourceQuotaDetailConfigYn |
String | - | 리소스 상세 설정 필요 여부
|
sortOrder |
Integer | - | 목록 정렬 순서 |
useYn |
String | - | 리소스 사용 여부
|
exposureYn |
String | - | 리소스 노출 여부
|
restrictionUnitCode |
String | - | 이용 한도 단위 코드 |
restrictionUnit |
String | - | 이용 한도 단위
|
restrictionUnitDescription |
String | - | 이용 한도 단위 코드 설명 |
domainList |
Array | - | 리소스 제공 도메인 목록: domainList |
resourceQuotaRegionList |
Array | - | 리소스 제공 리전 목록: resourceQuotaRegionList |
regionProductTypeList |
Array | - | 리전별 리소스 유형 목록: regionProductTypeList |
resourceQuotaList |
Array | - | 리소스 이용 한도: resourceQuotaList |
resourceQuotaDetailList |
Array | - | 리소스 유형 이용 한도: resourceQuotaDetailList
|
domainList
domainList에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
domainNo |
String | - | 도메인 번호 |
domainName |
String | - | 도메인 이름 |
domainCode |
String | - | 도메인 코드
|
sortOrder |
Integer | - | 목록 정렬 순서 |
resourceQuotaRegionList
resourceQuotaRegionList에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
regionNo |
String | - | 리전 번호 |
regionCode |
String | - | 리전 코드 |
regionName |
String | - | 리전 이름 |
useYn |
String | - | 리전 사용 여부
|
sortOrder |
Integer | - | 목록 정렬 순서 |
statusCode |
String | - | 리전 상태 코드 |
regionAttributeCode |
String | - | 리전 속성 코드 |
domain |
Object | - | 리전이 속한 도메인: domainList와 동일한 형식 |
regionProductTypeList
regionProductTypeList에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
resourceTypeCode |
String | - | 리소스 코드 |
regionNo |
String | - | 리전 번호 |
infraResourceDetailTypeCode |
String | - | 서비스 유형 코드 |
productTypeCode |
String | - | 리소스 유형 코드 |
productTypeDetailCode |
String | - | 리소스 상세 유형 코드 |
generationCode |
String | - | 세대 구분 코드 |
resourceQuotaList
resourceQuotaList에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
policyNo |
String | - | 정책 번호 |
resourceQuotaSequence |
String | - | 이용 한도 일련 번호 |
regionNo |
String | - | 리전 번호 |
resourceTypeCode |
String | - | 리소스 코드 |
restrictionCount |
Integer | - | 이용 한도 |
usedCount |
Integer | - | 사용된 한도
|
toBeCount |
Integer | - | 잔여 한도
|
resourceQuotaDetailList
resourceQuotaDetailList에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
policyNo |
String | - | 정책 번호 |
resourceQuotaSequence |
String | - | 이용 한도 일련 번호 |
resourceQuotaDetailSequence |
String | - | 이용 한도 상세 일련 번호 |
regionNo |
String | - | 리전 번호 |
resourceTypeCode |
String | - | 리소스 코드 |
infraResourceDetailTypeCode |
String | - | 서비스 유형 코드 |
infraResourceDetailTypeName |
String | - | 서비스 유형 |
productTypeCode |
String | - | 리소스 유형 코드 |
productTypeCodeName |
String | - | 리소스 유형 |
productTypeDetailCode |
String | - | 리소스 상세 유형 코드 |
productTypeDetailCodeName |
String | - | 리소스 상세 유형 |
generationCode |
String | - | 세대 구분 코드
|
restrictionCount |
Integer | - | 이용 한도 |
usedCount |
Integer | - | 사용된 한도 |
toBeCount |
Integer | - | 잔여 한도 |
endOfService |
Boolean | - | 서비스 종료(End of Service) 여부
|
응답 상태 코드
Organization API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Organization 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
[
{
"resourceTypeCode": "SVR",
"resourceName": "Server",
"customResourceName": "Server",
"lowerResourceTypeCode": null,
"lowerResourceName": null,
"includeLowerResourceYn": "N",
"resourceCategoryTypeCode": "COMPUTE",
"resourceCategoryName": "Compute",
"platformTypeCode": "VPC",
"infraResourceTypeCode": "SVR",
"singleProductContractTypeCode": "SVR",
"singleProductContractProductTypeCode": null,
"productRatingTypeCode": "MTRAT",
"resourceQuotaDetailConfigYn": "Y",
"sortOrder": 1,
"useYn": "Y",
"exposureYn": "Y",
"restrictionUnitCode": "COUNT",
"restrictionUnit": "개",
"restrictionUnitDescription": "Server 생성 수",
"domainList": [
{
"domainNo": "1",
"domainName": "Public",
"domainCode": "PUB",
"sortOrder": 1
}
],
"resourceQuotaRegionList": [
{
"regionNo": "1",
"regionCode": "KR",
"regionName": "Korea",
"useYn": "Y",
"sortOrder": 1,
"statusCode": "OK",
"regionAttributeCode": "A",
"domain": {
"domainNo": "1",
"domainName": "Public",
"domainCode": "PUB"
}
}
],
"regionProductTypeList": [
{
"resourceTypeCode": "SVR",
"regionNo": "1",
"infraResourceDetailTypeCode": "VM",
"productTypeCode": "CPU",
"productTypeDetailCode": null,
"generationCode": "G1"
}
],
"resourceQuotaList": [
{
"policyNo": "1",
"resourceQuotaSequence": "18",
"resourceTypeCode": "SVR",
"regionNo": "1",
"restrictionCount": 50,
"usedCount": null,
"toBeCount": null
}
],
"resourceQuotaDetailList": [
{
"policyNo": "1",
"resourceQuotaSequence": "18",
"resourceQuotaDetailSequence": "1",
"resourceTypeCode": "SVR",
"regionNo": "1",
"infraResourceDetailTypeCode": "BM",
"infraResourceDetailTypeName": "BareMetal",
"productTypeCode": "CPU",
"productTypeCodeName": "CPU Intensive",
"generationCode": "G1",
"restrictionCount": 5,
"endOfService": false
},
{
"policyNo": "1",
"resourceQuotaSequence": "18",
"resourceQuotaDetailSequence": "2",
"resourceTypeCode": "SVR",
"regionNo": "1",
"infraResourceDetailTypeCode": "VM",
"infraResourceDetailTypeName": "VM",
"productTypeCode": "CPU",
"productTypeCodeName": "CPU Intensive",
"generationCode": "G1",
"restrictionCount": 5,
"endOfService": false
}
]
},
{
"resourceTypeCode": "PBLIP",
"resourceName": "Public IP",
"customResourceName": "Public IP",
"lowerResourceTypeCode": null,
"lowerResourceName": null,
"includeLowerResourceYn": "N",
"resourceCategoryTypeCode": "COMPUTE",
"resourceCategoryName": "Compute",
"platformTypeCode": "VPC",
"infraResourceTypeCode": "PBLIP",
"singleProductContractTypeCode": "PBLIP",
"singleProductContractProductTypeCode": null,
"productRatingTypeCode": "MTRAT",
"resourceQuotaDetailConfigYn": "N",
"sortOrder": 12,
"useYn": "Y",
"exposureYn": "Y",
"restrictionUnitCode": "REL_COUNT",
"restrictionUnit": "개",
"restrictionUnitDescription": "Public IP 생성 수",
"domainList": [
{
"domainNo": "1",
"domainName": "Public",
"domainCode": "PUB",
"sortOrder": 1
}
],
"resourceQuotaRegionList": [
{
"regionNo": "1",
"regionCode": "KR",
"regionName": "Korea",
"useYn": "Y",
"sortOrder": 1,
"statusCode": "OK",
"regionAttributeCode": "A",
"domain": {
"domainNo": "1",
"domainName": "Public",
"domainCode": "PUB"
}
}
],
"regionProductTypeList": [],
"resourceQuotaList": [
{
"policyNo": null,
"resourceQuotaSequence": null,
"resourceTypeCode": "PBLIP",
"regionNo": "1",
"restrictionCount": 100,
"usedCount": null,
"toBeCount": null
}
],
"resourceQuotaDetailList": []
}
]