docs/classes/management.SDK.GroupsClient-3.html
new GroupsClient(options: BaseClientOptions): GroupsClient
get(
id: string,
request?: ListRoleGroupsParameters,
requestOptions?: GroupsClient.RequestOptions,
): Promise<Page<Group, ListRoleGroupsResponseContent>>
Lists the groups to which the specified role is assigned.
Unique identifier for the role (service-generated).
OptionalrequestOptions: GroupsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.roles.groups.get("id", { from: "from", take: 1 })Copy
create(
id: string,
request: AssignRoleGroupsRequestContent,
requestOptions?: GroupsClient.RequestOptions,
): HttpResponsePromise<void>
Assign one or more groups to a specified role.
Unique identifier for the role (service-generated).
OptionalrequestOptions: GroupsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.roles.groups.create("id", { groups: ["groups"] })Copy
delete(
id: string,
request: DeleteRoleGroupsRequestContent,
requestOptions?: GroupsClient.RequestOptions,
): HttpResponsePromise<void>
Unassign one or more groups from a specified role.
Unique identifier for the role (service-generated).
OptionalrequestOptions: GroupsClient.RequestOptionsRequest-specific configuration.
Management.TooManyRequestsError
await client.roles.groups.delete("id", { groups: ["groups"] })Copy
Protected Readonly_options_options: NormalizedClientOptionsWithAuth<BaseClientOptions>
Member Visibility
ThemeOSLightDark
Constructors constructor Methods getcreatedelete Properties _options