Roles interface

Interface representing a Roles.

Methods

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

Creates a new role or updates an existing role.

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

Creates a new role or updates an existing role.

beginDelete(string, string, string, RolesDeleteOptionalParams)

Deletes a cluster role.

beginDeleteAndWait(string, string, string, RolesDeleteOptionalParams)

Deletes a cluster role.

get(string, string, string, RolesGetOptionalParams)

Gets information about a cluster role.

listByCluster(string, string, RolesListByClusterOptionalParams)

List all the roles in a given cluster.

Method Details

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

Creates a new role or updates an existing role.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

roleName

string

The name of the cluster role.

parameters
Role

The required parameters for creating or updating a role.

options
RolesCreateOptionalParams

The options parameters.

Returns

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

Creates a new role or updates an existing role.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

roleName

string

The name of the cluster role.

parameters
Role

The required parameters for creating or updating a role.

options
RolesCreateOptionalParams

The options parameters.

Returns

Promise<Role>

beginDelete(string, string, string, RolesDeleteOptionalParams)

Deletes a cluster role.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

roleName

string

The name of the cluster role.

options
RolesDeleteOptionalParams

The options parameters.

Returns

beginDeleteAndWait(string, string, string, RolesDeleteOptionalParams)

Deletes a cluster role.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

roleName

string

The name of the cluster role.

options
RolesDeleteOptionalParams

The options parameters.

Returns

get(string, string, string, RolesGetOptionalParams)

Gets information about a cluster role.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

roleName

string

The name of the cluster role.

options
RolesGetOptionalParams

The options parameters.

Returns

Promise<Role>

listByCluster(string, string, RolesListByClusterOptionalParams)

List all the roles in a given cluster.

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

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

clusterName

string

The name of the cluster.

options
RolesListByClusterOptionalParams

The options parameters.

Returns