다음을 통해 공유


ManagedIdentityTokenSource class

Azure 관리 ID 토큰 원본 구현.

예제

Azure Resource Manager HTTP API를 호출하여 Azure 구독 목록을 가져옵니다.

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"),
  });
});

생성자

ManagedIdentityTokenSource(string)

ManagedIdentityTokenSource 개체를 반환합니다.

속성

resource

호출되는 웹 API의 Azure Active Directory 리소스 식별자입니다. 예를 들어 https://management.core.windows.net/ 또는 https://graph.microsoft.com/.

생성자 세부 정보

ManagedIdentityTokenSource(string)

ManagedIdentityTokenSource 개체를 반환합니다.

new ManagedIdentityTokenSource(resource: string)

매개 변수

resource

string

호출되는 웹 API의 Azure Active Directory 리소스 식별자입니다.

속성 세부 정보

resource

호출되는 웹 API의 Azure Active Directory 리소스 식별자입니다. 예를 들어 https://management.core.windows.net/ 또는 https://graph.microsoft.com/.

resource: string

속성 값

string