Class InstanceMetadataClient
Cloud Service only. A class that allows to retrieve OCI instance
metadata.
Implements
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public sealed class InstanceMetadataClient : Object
Remarks
This class is used internally by IAMAuthorizationProvider to retrieve OCI instance metadata when using Instance Principal authentication.
You can use this class to retrieve the region of the running instance when using Instance Principal or OKE workload authentication and when you want to use the region of the running instance to connect to the NoSQL service.
Constructors
Name | Description |
---|---|
InstanceMetadataClient() | Initializes a new instance of InstanceMetadataClient. |
InstanceMetadataClient(TimeSpan) | Initializes a new instance of InstanceMetadataClient with specified request timeout. |
Methods
Name | Description |
---|---|
Dispose() | Releases resources held by this InstanceMetadataClient instance. |
GetRegionAsync(CancellationToken) | Gets the region of the running instance. |