yandex_cloud v0.3.0 YandexCloud.Auth View Source
Auth requests
Link to this section Summary
Functions
Get IAM-token for using it in requests to YandexCloud. Valid 12 hours
Get IAM-token for using it in requests to YandexCloud. Valid 12 hours
Link to this section Functions
Link to this function
token()
View Source
token()
View Source
token() :: {:ok, %{iamToken: String.t()}}
token() :: {:ok, %{iamToken: String.t()}}
Get IAM-token for using it in requests to YandexCloud. Valid 12 hours.
Example
iex> YandexCloud.Auth.token
{:ok, %{"iamToken" => ""}}
Link to this function
token(params) View Source
Get IAM-token for using it in requests to YandexCloud. Valid 12 hours.
Examples
iex> YandexCloud.Auth.token([oauth_token: oauth_token])
{:ok, %{"iamToken" => ""}}