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

Roles interface

表示角色的接口。

方法详细信息

beginCreate(string, string, string, Role, RolesCreateOptionalParams)

创建新的角色或更新现有角色。

function beginCreate(resourceGroupName: string, clusterName: string, roleName: string, parameters: Role, options?: RolesCreateOptionalParams): Promise<SimplePollerLike<OperationState<Role>, Role>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

roleName

string

群集角色的名称。

parameters
Role

创建或更新角色所需的参数。

options
RolesCreateOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<Role>, Role>>

beginCreateAndWait(string, string, string, Role, RolesCreateOptionalParams)

创建新的角色或更新现有角色。

function beginCreateAndWait(resourceGroupName: string, clusterName: string, roleName: string, parameters: Role, options?: RolesCreateOptionalParams): Promise<Role>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

roleName

string

群集角色的名称。

parameters
Role

创建或更新角色所需的参数。

options
RolesCreateOptionalParams

选项参数。

返回

Promise<Role>

beginDelete(string, string, string, RolesDeleteOptionalParams)

删除群集角色。

function beginDelete(resourceGroupName: string, clusterName: string, roleName: string, options?: RolesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<RolesDeleteHeaders>, RolesDeleteHeaders>>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

roleName

string

群集角色的名称。

options
RolesDeleteOptionalParams

选项参数。

返回

Promise<@azure/core-lro.SimplePollerLike<OperationState<RolesDeleteHeaders>, RolesDeleteHeaders>>

beginDeleteAndWait(string, string, string, RolesDeleteOptionalParams)

删除群集角色。

function beginDeleteAndWait(resourceGroupName: string, clusterName: string, roleName: string, options?: RolesDeleteOptionalParams): Promise<RolesDeleteHeaders>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

roleName

string

群集角色的名称。

options
RolesDeleteOptionalParams

选项参数。

返回

get(string, string, string, RolesGetOptionalParams)

获取有关群集角色的信息。

function get(resourceGroupName: string, clusterName: string, roleName: string, options?: RolesGetOptionalParams): Promise<Role>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

roleName

string

群集角色的名称。

options
RolesGetOptionalParams

选项参数。

返回

Promise<Role>

listByCluster(string, string, RolesListByClusterOptionalParams)

列出给定群集中的所有角色。

function listByCluster(resourceGroupName: string, clusterName: string, options?: RolesListByClusterOptionalParams): PagedAsyncIterableIterator<Role, Role[], PageSettings>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

clusterName

string

群集的名称。

options
RolesListByClusterOptionalParams

选项参数。

返回