View Resources of a Service

get

/metering/api/v1/resources/{serviceName}

Retrieve resources of a given service.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : Resources
Type: object
Title: Resources
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Resource
Type: object
Title: Resource
Show Source
Nested Schema : cloudCreditBillingConfig
Type: array
Show Source
Nested Schema : resourceHardLimit
Type: array
Show Source
Nested Schema : resourceLimit
Type: array
Show Source
Nested Schema : skuproductIds
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : CloudCreditBillingConfig
Type: object
Title: CloudCreditBillingConfig
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ResourceHardLimit
Type: object
Title: ResourceHardLimit
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ResourceLimit
Type: object
Title: ResourceLimit
Show Source
Nested Schema : dependentForLimits
Type: array
Show Source
Nested Schema : dependentOnLimits
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ServiceResourceMap
Type: object
Title: ServiceResourceMap
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : SkuProductIds
Type: object
Title: SkuProductIds
Show Source

Default Response

Unexpected error.
Back to Top

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"
}
Back to Top