Skip to content

Instantly share code, notes, and snippets.

@RhubarbSin
Last active July 11, 2022 23:21
Show Gist options
  • Save RhubarbSin/90aacd04066318ee666eba46af22429f to your computer and use it in GitHub Desktop.
Save RhubarbSin/90aacd04066318ee666eba46af22429f to your computer and use it in GitHub Desktop.
Get OCI compute instance metadata
curl http://169.254.169.254/opc/v1/instance/
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment