alterRole()

This operation updates the description of an existing role.

await milvusClient.alterRole(data)

Request Syntax

await milvusClient.alterRole({
    roleName: string,
    description: string,
    timeout?: number
})

PARAMETERS:

  • roleName (string) -

    [REQUIRED]

    The name of the role to alter.

  • description (string) -

    [REQUIRED]

    The new description of the role.

  • timeout (number) -

    The timeout duration in milliseconds for this operation.

RETURNS:

Promise

EXCEPTIONS:

  • MilvusError

    This exception will be raised when any error occurs during this operation.

Example

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
    address: 'localhost:19530',
    token: 'root:Milvus',
});

const resStatus = await milvusClient.alterRole({
    roleName: 'my_role',
    description: 'Role updated description',
});

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?