Skip to content

This Postman collection implements pre-request scripts to perform the signing required to invoke the OCI APIs.

Notifications You must be signed in to change notification settings

CallanHP/oci-api-signing-postman-collection

Repository files navigation

Important

This collection is no longer being maintained. Oracle provides and maintains a Postman workspace for Oracle Cloud Infrastructure, with much wider API coverage that is likely going to provide a better experience overall. It is strongly recommended that you migrate to that implementation instead.

OCI API Signing Postman Collection

This Postman collection uses pre-request scripts to assemble the signatures required to invoke the OCI APIs. It is intended to allow for Postman to be used for ad-hoc API testing as part of the development of management and monitoring scripts and infrastructure automation.

An environment file has been provided, and while it has a number of optional fields, the script requires several of these variables to be populated to facilitate the signing process:

  • private-key - the signing key in PEM format
  • key-fingerprint - the fingerprint of the uploaded public cert matching the private key
  • tenancy-id - the OCID of the tenancy being accessed via the API
  • user-id - the OCID of the user with which the key is associated

Requests in the collection are provided as samples, and may require additional variables, such as region, compartment-id, etc. to be set.

In addition, the script sets the following environment variables during invocation for each request, so be careful not to override them or rely on them in your own environment:

  • auth-signature
  • hostname
  • request-date
  • request-target
  • content-sha256
  • content-length

A full writeup is available on redthunder.blog

About

This Postman collection implements pre-request scripts to perform the signing required to invoke the OCI APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published