Skip to main content
Glama

Redis Cloud API MCP Server

Official
by redis
UsersService.ts7.21 kB
/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { AccountUser } from '../models/AccountUser.js'; import type { AccountUsers } from '../models/AccountUsers.js'; import type { AccountUserUpdateRequest } from '../models/AccountUserUpdateRequest.js'; import type { TaskStateUpdate } from '../models/TaskStateUpdate.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; import { OpenAPI } from '../core/OpenAPI.js'; import { request as __request } from '../core/request.js'; export class UsersService { /** * Get user by id * Information on user identified by user Id * @param userId User Id * @returns AccountUser OK * @throws ApiError */ public static getUserById( userId: number, ): CancelablePromise<AccountUser> { return __request(OpenAPI, { method: 'GET', url: '/users/{userId}', path: { 'userId': userId, }, errors: { 400: `Bad Request - The server cannot process the request due to something that is perceived to be a client error`, 401: `Unauthorized - Authentication failed for requested resource`, 403: `Forbidden - Not allowed to access requested resource (primarily due to client source IP API Key restrictions)`, 404: `Not Found - The resource you were trying to reach was not found or does not exist`, 412: `Precondition Failed - Feature flag for this flow is off`, 429: `Too Many Requests - Too many resources are concurrently created / updated / deleted in the account. Please re-submit API requests after resource changes are completed)`, 500: `Internal system error - If this error persists, please contact customer support`, 503: `Service Unavailable - Server is temporarily unable to handle the request, please try again later. If this error persists, please contact customer support `, }, }); } /** * Update user * Update an existing user by Id * @param userId User Id * @param requestBody * @returns TaskStateUpdate OK * @throws ApiError */ public static updateUser( userId: number, requestBody: AccountUserUpdateRequest, ): CancelablePromise<TaskStateUpdate> { return __request(OpenAPI, { method: 'PUT', url: '/users/{userId}', path: { 'userId': userId, }, body: requestBody, mediaType: 'application/json', errors: { 400: `Bad Request - The server cannot process the request due to something that is perceived to be a client error`, 401: `Unauthorized - Authentication failed for requested resource`, 403: `Forbidden - Not allowed to access requested resource (primarily due to client source IP API Key restrictions)`, 404: `Not Found - The resource you were trying to reach was not found or does not exist`, 408: `Request Timeout - The server didn't receive a complete request message within the server's allotted timeout period`, 409: `Conflict - request could not be processed because of a conflict (primarily due to another resource that exist with new updated name)`, 412: `Precondition Failed - Feature flag for this flow is off`, 429: `Too Many Requests - Too many resources are concurrently created / updated / deleted in the account. Please re-submit API requests after resource changes are completed)`, 500: `Internal system error - If this error persists, please contact customer support`, 503: `Service Unavailable - Server is temporarily unable to handle the request, please try again later. If this error persists, please contact customer support `, }, }); } /** * Delete user * Delete a user from current account * @param userId User Id * @returns TaskStateUpdate OK * @throws ApiError */ public static deleteUserById( userId: number, ): CancelablePromise<TaskStateUpdate> { return __request(OpenAPI, { method: 'DELETE', url: '/users/{userId}', path: { 'userId': userId, }, errors: { 400: `Bad Request - The server cannot process the request due to something that is perceived to be a client error`, 401: `Unauthorized - Authentication failed for requested resource`, 403: `Forbidden - Not allowed to access requested resource (primarily due to client source IP API Key restrictions)`, 404: `Not Found - The resource you were trying to reach was not found or does not exist`, 408: `Request Timeout - The server didn't receive a complete request message within the server's allotted timeout period`, 409: `Conflict - request could not be processed because of a conflict (primarily due to another resource that exist with new updated name)`, 412: `Precondition Failed - Feature flag for this flow is off`, 429: `Too Many Requests - Too many resources are concurrently created / updated / deleted in the account. Please re-submit API requests after resource changes are completed)`, 500: `Internal system error - If this error persists, please contact customer support`, 503: `Service Unavailable - Server is temporarily unable to handle the request, please try again later. If this error persists, please contact customer support `, }, }); } /** * Get users * Information on current account's users * @returns AccountUsers OK * @throws ApiError */ public static getAllUsers(): CancelablePromise<AccountUsers> { return __request(OpenAPI, { method: 'GET', url: '/users', errors: { 400: `Bad Request - The server cannot process the request due to something that is perceived to be a client error`, 401: `Unauthorized - Authentication failed for requested resource`, 403: `Forbidden - Not allowed to access requested resource (primarily due to client source IP API Key restrictions)`, 404: `Not Found - The resource you were trying to reach was not found or does not exist`, 412: `Precondition Failed - Feature flag for this flow is off`, 429: `Too Many Requests - Too many resources are concurrently created / updated / deleted in the account. Please re-submit API requests after resource changes are completed)`, 500: `Internal system error - If this error persists, please contact customer support`, 503: `Service Unavailable - Server is temporarily unable to handle the request, please try again later. If this error persists, please contact customer support `, }, }); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redis/mcp-redis-cloud'

If you have feedback or need assistance with the MCP directory API, please join our Discord server