View Resources of a Service
get
/metering/api/v1/resources/{serviceName}
Retrieve resources of a given service.
Request
Path Parameters
-
serviceName: string
Service name
Query Parameters
-
applicableComponent: string
Whether OPC public cloud or OCM private cloud
-
entitlementId: string
Service Entitlement Id
Response
Supported Media Types
- application/vnd.com.oracle.oraclecloud.metering.resources+json
200 Response
Success
Nested Schema : Resource
Type:
object
Title:
Show Source
Resource
-
aggregationMultiplier(optional):
string
-
applicableComponent(optional):
string
-
canonicalLink(optional):
string
-
cloudCreditBillingConfig(optional):
array cloudCreditBillingConfig
-
conversionFactor(optional):
number
-
dailyUnitDisplayName(optional):
string
-
description(optional):
string
-
displayName(optional):
string
-
gsiProductId(optional):
string
-
gsiUsageUnit(optional):
string
-
hourlyUnitDisplayName(optional):
string
-
instanceType(optional):
string
-
name(optional):
string
-
rawUnitDisplayName(optional):
string
-
resourceHardLimit(optional):
array resourceHardLimit
-
resourceLimit(optional):
array resourceLimit
-
servicename(optional):
string
-
skuproductIds(optional):
array skuproductIds
-
usageDataType(optional):
string
Nested Schema : items
Type:
Show Source
array
-
Array of:
object CloudCreditBillingConfig
Title:
CloudCreditBillingConfig
Nested Schema : items
Type:
Show Source
array
-
Array of:
object ResourceHardLimit
Title:
ResourceHardLimit
Nested Schema : items
Type:
Show Source
array
-
Array of:
object ServiceResourceMap
Title:
ServiceResourceMap
Nested Schema : ServiceResourceMap
Type:
object
Title:
Show Source
ServiceResourceMap
-
canonicalLink(optional):
string
-
limit(optional):
number
Quantity set as limit.
-
limitType(optional):
string
Soft or Hard limit.
-
resourceName(optional):
string
Resource Name.
-
serviceName(optional):
string
Service Name.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object ServiceResourceMap
Title:
ServiceResourceMap
Nested Schema : SkuProductIds
Type:
object
Title:
Show Source
SkuProductIds
-
skuId(optional):
string
Sku Id.
-
skuType(optional):
string
Metered or Commitment sku
Default Response
Unexpected error.
Examples
cURL Command
The following example shows how to retrieve information about all resources for an Oracle Cloud Service account using the Metering API by submitting a GET
request on the REST resource using cURL. For more information about cURL, see Use cURL.
Enter the command on a single line. Line breaks are used in this example for readability.
curl -X GET -u joe@example.com -H "X-ID-TENANT-NAME:myDomain" "https://itra.oraclecloud.com/metering/api/v1/resources/Compute"
Example of Request Body
There is no request body to submit with the HTTP request.
Example of Response Body
The following example shows the response body in JSON format.
{ "items":[ { "dailyUnitDisplayName":"OCPU Hours", "hourlyUnitDisplayName":"OCPU Hours", "rawUnitDisplayName":"number", "name":"OCPU_GP", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/OCPU_GP", "description":"Oracle Compute Cloud Service - General Purpose - OCPU Per Hour" }, { "dailyUnitDisplayName":"OCPU Hours (High Mem)", "hourlyUnitDisplayName":"OCPU Hours (High Mem)", "rawUnitDisplayName":"number", "name":"OCPU_HP", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/OCPU_HP", "description":"Oracle Compute Cloud Service Compute - High Memory - OCPU Per Hour" }, { "dailyUnitDisplayName":"Static IP Hours", "hourlyUnitDisplayName":"Static IP Hours", "rawUnitDisplayName":"number", "name":"EIPs", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/EIPs", "description":"Oracle Compute Cloud Service - Static IP - Static IP Per Hour" }, { "dailyUnitDisplayName":"Static IP Hours", "hourlyUnitDisplayName":"Static IP Hours", "rawUnitDisplayName":"number", "name":"EIPs_UNATTACHED", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/EIPs_UNATTACHED", "description":"Oracle Compute Cloud Service - Unattached Static IP - Unattached Static IP Per Hour" }, { "dailyUnitDisplayName":"GB Months", "hourlyUnitDisplayName":"GB Months", "rawUnitDisplayName":"number", "name":"BLOCK_STORAGE", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/BLOCK_STORAGE", "description":"Oracle Compute Cloud Service - Block Storage Capacity - Gigabyte Storage Capacity per Month" }, { "dailyUnitDisplayName":"OCPU Hours", "hourlyUnitDisplayName":"OCPU Hours", "rawUnitDisplayName":"number", "name":"OCPU", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/OCPU", "description":"Oracle Compute Cloud Service - OCPU Per Hour" }, { "dailyUnitDisplayName":"GB Months", "hourlyUnitDisplayName":"GB Months", "rawUnitDisplayName":"number", "name":"MEMORY_GB", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/MEMORY_GB", "description":"Oracle Compute Cloud Service - Instance Memory in GB per Month" }, { "dailyUnitDisplayName":"High I/O OCPU Hours", "hourlyUnitDisplayName":"High I/O OCPU Hours", "rawUnitDisplayName":"number", "name":"OCPU_IO", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/OCPU_IO", "description":"Oracle Compute Cloud Service - High I/O Compute Capacity" }, { "dailyUnitDisplayName":"GB Months", "hourlyUnitDisplayName":"GB Months", "rawUnitDisplayName":"number", "name":"BLOCK_STORAGE_SSD", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/BLOCK_STORAGE_SSD", "description":"Oracle Compute Cloud Service - High Performance Block Storage Capacity - Gigabyte Storage Capacity per Month" }, { "dailyUnitDisplayName":"GCPU Hours", "hourlyUnitDisplayName":"GCPU Hours", "rawUnitDisplayName":"number", "name":"OCPU_GPU", "servicename":"Compute", "canonicalLink":"/metering/api/v1/resources/Compute/OCPU_GPU", "description":"Oracle Compute Cloud Service - Compute Capacity - GPU Instance - Metered - GCPU Per Hour" } ], "canonicalLink":"/metering/api/v1/resources/Compute" }