docs/classes/management.SDK.RolesClient.html
new RolesClient(options: BaseClientOptions): RolesClient
list(
id: string,
request?: ListGroupRolesRequestParameters,
requestOptions?: RolesClient.RequestOptions,
): Promise<Page<Role, ListGroupRolesResponseContent>>
Lists the roles assigned to a group.
Unique identifier for the group (service-generated).
OptionalrequestOptions: RolesClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.groups.roles.list("id", { from: "from", take: 1 })Copy
create(
id: string,
request: CreateGroupRolesRequestParameters,
requestOptions?: RolesClient.RequestOptions,
): HttpResponsePromise<void>
Assign one or more roles to a specified group.
Unique identifier for the group (service-generated).
OptionalrequestOptions: RolesClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.groups.roles.create("id", { roles: ["roles"] })Copy
delete(
id: string,
request: DeleteGroupRolesRequestContent,
requestOptions?: RolesClient.RequestOptions,
): HttpResponsePromise<void>
Unassign one or more roles from a specified group.
Unique identifier for the group (service-generated).
OptionalrequestOptions: RolesClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.groups.roles.delete("id", { roles: ["roles"] })Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods listcreatedelete Properties _options