oci-go-sdk icon indicating copy to clipboard operation
oci-go-sdk copied to clipboard

Add support for local metadata

Open jhorwit2 opened this issue 7 years ago • 2 comments

It'd be nice if we exposed a way to call the local metadata service since we use this across most of the go projects I'm aware of that use the go client.

https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/gettingmetadata.htm?tocpath=Services%7CCompute%7C_____17#AccessingInstanceMetadataonOracleProvidedImages

jhorwit2 avatar Mar 16 '18 15:03 jhorwit2

Thanks @jhorwit2, we'll consider adding this. The local metadata service is an unauthenticated endpoint I think, so it should be pretty easy to make requests to even without first class support in the Go SDK.

jodoglevy avatar Mar 19 '18 05:03 jodoglevy

https://github.com/oracle/oci-flexvolume-driver/tree/master/pkg/oci/instancemeta https://github.com/oracle/oci-volume-provisioner/tree/master/pkg/oci/instancemeta https://github.com/oracle/oci-cloud-controller-manager/tree/master/pkg/oci/instancemeta

Are all projects that currently re-implement this call (with more internal).

jhorwit2 avatar Aug 08 '18 16:08 jhorwit2