Skip to Main Content

API, CLI, SDK & Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Groovy script example

Cam ComApr 10 2025

Does anyone have an example of authenticating to the telemetry.oraclecloud.com monitoring api? I am having trouble creating the authorization headers. I have the config defined as

def config = [
user_ocid : "ocid1.user.oc1..aaaaaaaat",
tenancy_ocid : "ocid1.tenancy.oc1..aaaaaaaapdmrq",
compartment_ocid: "ocid1.compartment.oc1..aaaaaaa",
fingerprint : "78:a0:22:9d:60:e2:6e:5g:b4:b0:4c:9c:57:2b:2e:ad",
private_key_file: "/opt/app/certs/custom/oci_api_private_pk8.pem",
region : "us-ashburn-1",
resource_id : "ocid1.autonomousdatabase.oc1.iad.anua"
]

Comments
Post Details
Added on Apr 10 2025
0 comments
116 views