你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DefaultAccounts interface

表示 DefaultAccounts 的接口。

方法

get(string, string, DefaultAccountsGetOptionalParams)

获取范围的默认帐户。

remove(string, string, DefaultAccountsRemoveOptionalParams)

从范围中删除默认帐户。

set(DefaultAccountPayload, DefaultAccountsSetModelOptionalParams)

设置范围的默认帐户。

方法详细信息

get(string, string, DefaultAccountsGetOptionalParams)

获取范围的默认帐户。

function get(scopeTenantId: string, scopeType: string, options?: DefaultAccountsGetOptionalParams): Promise<DefaultAccountPayload>

参数

scopeTenantId

string

租户 ID。

scopeType

string

默认帐户的范围。

options
DefaultAccountsGetOptionalParams

选项参数。

返回

remove(string, string, DefaultAccountsRemoveOptionalParams)

从范围中删除默认帐户。

function remove(scopeTenantId: string, scopeType: string, options?: DefaultAccountsRemoveOptionalParams): Promise<void>

参数

scopeTenantId

string

租户 ID。

scopeType

string

默认帐户的范围。

options
DefaultAccountsRemoveOptionalParams

选项参数。

返回

Promise<void>

set(DefaultAccountPayload, DefaultAccountsSetModelOptionalParams)

设置范围的默认帐户。

function set(defaultAccountPayload: DefaultAccountPayload, options?: DefaultAccountsSetModelOptionalParams): Promise<DefaultAccountPayload>

参数

defaultAccountPayload
DefaultAccountPayload

包含默认帐户信息和作用域的有效负载。

options
DefaultAccountsSetModelOptionalParams

选项参数。

返回