Available in Classic and VPC
Get the list of all resources to which the quota policy can be applied.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /open-api/v1/policy/resource/{regionNo}/{categoryCode} |
Request headers
For information about the headers common to all Organization APIs, see Organization request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
regionNo |
Integer | Required | Region number
|
categoryCode |
String | Required | Resource category code |
Request example
The request example is as follows:
curl --location --request GET 'https://organization.apigw.ntruss.com/open-api/v1/policy/resource/1/COMPUTE' \
--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'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
resourceTypeCode |
String | - | Resource code |
resourceName |
String | - | Resource name |
includeLowerResourceYn |
String | - | Whether child resource exists
|
maxResourceRestrictCount |
Integer | - | Resource usage limit
|
resourceQuotaDetailConfigYn |
String | - | Whether resource detailed settings are required
|
restrictionUnitCode |
String | - | Usage limit unit code |
restrictionUnitDescription |
String | - | Usage limit unit code description |
You can check the resource usage limit in the Organization or Service Quota service in the NAVER Cloud Platform console. For more information on how to check, see the following.
Response status codes
For response status codes common to all Organization APIs, see Organization response status codes.
Response example
The response example is as follows:
[
{
"resourceTypeCode": "CF",
"resourceName": "Cloud Functions",
"includeLowerResourceYn": "N",
"maxResourceRestrictCount": null,
"resourceQuotaDetailConfigYn": "N",
"restrictionUnitCode": "BOOLEAN",
"restrictionUnitDescription": "Subscription status"
},
{
"resourceTypeCode": "PRSBN",
"resourceName": "Private Subnet",
"includeLowerResourceYn": "N",
"maxResourceRestrictCount": null,
"resourceQuotaDetailConfigYn": "N",
"restrictionUnitCode": "COUNT",
"restrictionUnitDescription": "Number of private subnet creations"
},
...
]