Dela via


ManagedIdentityTokenSource class

Token source implementation for Azure Managed Identities.

Exempel

Hämta en lista över Azure-prenumerationer genom att anropa HTTP-API:et för Azure Resource Manager.

const df = require("durable-functions");

df.app.orchestration(function* (context) {
  return yield context.df.callHttp({
      method: "GET",
      url: "https://management.azure.com/subscriptions?api-version=2019-06-01",
      tokenSource: df.ManagedIdentityTokenSource("https://management.core.windows.net"),
  });
});

Konstruktorer

ManagedIdentityTokenSource(string)

Returnerar ett ManagedIdentityTokenSource objekt.

Egenskaper

resource

Azure Active Directory-resursidentifieraren för webb-API:et som anropas. Till exempel https://management.core.windows.net/ eller https://graph.microsoft.com/.

Konstruktorinformation

ManagedIdentityTokenSource(string)

Returnerar ett ManagedIdentityTokenSource objekt.

new ManagedIdentityTokenSource(resource: string)

Parametrar

resource

string

Azure Active Directory-resursidentifieraren för webb-API:et som anropas.

Egenskapsinformation

resource

Azure Active Directory-resursidentifieraren för webb-API:et som anropas. Till exempel https://management.core.windows.net/ eller https://graph.microsoft.com/.

resource: string

Egenskapsvärde

string