Show / Hide Table of Contents

Class EscAuth

Provides authentication helpers for the Pulumi ESC SDK.

Inheritance
object
EscAuth
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Pulumi.Esc.Sdk
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public static class EscAuth

Methods

View Source

GetDefaultAccessToken()

Gets the default access token from the PULUMI_ACCESS_TOKEN environment variable.

Declaration
public static string GetDefaultAccessToken()
Returns
Type Description
string

The access token string.

Exceptions
Type Condition
InvalidOperationException

When no access token can be found.

View Source

GetDefaultBackendUrl()

Gets the default backend URL from the PULUMI_BACKEND_URL environment variable, defaulting to https://api.pulumi.com when it is not set.

Declaration
public static string GetDefaultBackendUrl()
Returns
Type Description
string

The backend URL string.

View Source

GetEscApiUrl(string)

Converts a backend URL (e.g. "https://api.pulumi.com") to the ESC API URL.

Declaration
public static string GetEscApiUrl(string backendUrl)
Parameters
Type Name Description
string backendUrl

The Pulumi backend URL.

Returns
Type Description
string

The ESC API base URL (e.g. "https://api.pulumi.com/api/esc").

Version 0.14.0

  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.