Creates an SDK with the selected credentials and connection settings.
Construction reads a supplied configuration reader and prepares TLS settings. It does not send an API request. Some credential types defer network access until the first authenticated request.
Optionaloptions: SDKOptionsAdds interceptors to clients that the SDK creates later.
This method does not modify clients that are already in the shared client cache.
Closes the authorization provider and all shared gRPC channels.
The default grace period is 20 seconds. After that period, this method returns even if a close watcher has not completed. Do not start new requests after calling this method.
OptionalgraceMs: numberReturns per-address channel credentials when set, or the SDK default.
Resolves a service name to a gRPC address.
OptionalapiServiceName: stringReturns the combined gRPC options for an address.
The result contains keepalive settings and the SDK user-agent. Per-address options override global options. Global interceptors run before per-address interceptors.
Returns the current authorization provider.
Returns a shared gRPC client for an address.
The first call creates the client. Later calls with the same address return the same object. Changes from addInterceptors or setClientOptions do not affect an existing client.
Returns the TLS root certificates for HTTP and gRPC calls.
Credential helpers use this value so that their HTTP calls trust the same roots as SDK gRPC calls. Do not modify a returned buffer.
Returns the default parent ID.
Replaces the authorization provider for new requests.
The change does not restart a request that is already running. Pass
undefined to disable authorization for later requests.
Replaces the default gRPC client options for clients created later.
This method does not modify clients that already exist.
Uses a token bearer as the authorization provider for new requests.
The SDK also connects the bearer to the configured authorization metrics.
Returns the Nebius IAM profile for the current credentials.
Await Request.result, or await the request directly. Use this call to verify credentials before starting other work.
Optionalmetadata: MetadataOptionaloptions: Partial<CallOptions> & RetryOptions
Creates service clients and owns shared SDK resources.
Pass the SDK to a generated service client. A generated client creates a Request when you call a service method. The SDK reuses one gRPC channel for each resolved address and applies credentials to each request.
Set SDKOptions.userAgentPrefix to your application name and version. Create one SDK for the lifetime of an application, and call SDK.close during shutdown.
Example