Use cURL

cURL is an open source, command-line tool for transferring data with URL syntax, supporting various protocols including HTTP and HTTPs.

For installation, see Install cURL. For authentication requirements, see Authentication.

The following example cURL command retrieves various metric types that can be accessed by the user:

curl -i -X GET -u joe@example.com:Mypassword1! -H "X-ID-TENANT-NAME:mydomain" https://monitoring.us.oraclecloud.com/monitoring/mydomain/.customer/api/v1/metricTypes