GameServerApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        gameServerControllerBanPlayer(
            gameServerId: string,
            playerId: string,
            banPlayerInputDTO?: BanPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerCreate(
            gameServerCreateDTO?: GameServerCreateDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >;
        gameServerControllerExecuteCommand(
            id: string,
            commandExecuteInputDTO?: CommandExecuteInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<CommandExecuteDTOAPI>,
        >;
        gameServerControllerGetImport(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ImportStatusOutputDTOAPI>,
        >;
        gameServerControllerGetInstalledModules(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputArrayDTOAPI>,
        >;
        gameServerControllerGetMapInfo(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
        gameServerControllerGetMapTile(
            id: string,
            x: string,
            y: string,
            z: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
        gameServerControllerGetModuleInstallation(
            gameServerId: string,
            moduleId: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >;
        gameServerControllerGetOne(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >;
        gameServerControllerGetPlayers(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<PlayerOnGameserverOutputDTOAPI>,
        >;
        gameServerControllerGetTypes(
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerTypesOutputDTOAPI>,
        >;
        gameServerControllerGiveItem(
            gameServerId: string,
            playerId: string,
            giveItemInputDTO?: GiveItemInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
        gameServerControllerImportFromCSMM(
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ImportOutputDTOAPI>,
        >;
        gameServerControllerInstallModule(
            gameServerId: string,
            moduleId: string,
            moduleInstallDTO?: ModuleInstallDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >;
        gameServerControllerKickPlayer(
            gameServerId: string,
            playerId: string,
            kickPlayerInputDTO?: KickPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerListBans(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanPlayerOutputDTO>,
        >;
        gameServerControllerRemove(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerSearch(
            gameServerSearchInputDTO?: GameServerSearchInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputArrayDTOAPI>,
        >;
        gameServerControllerSendMessage(
            id: string,
            messageSendInputDTO?: MessageSendInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerShutdown(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>,
        >;
        gameServerControllerTeleportPlayer(
            gameServerId: string,
            playerId: string,
            teleportPlayerInputDTO?: TeleportPlayerInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerTestReachability(
            gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerTestReachabilityDTOAPI>,
        >;
        gameServerControllerTestReachabilityForId(
            id: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerTestReachabilityDTOAPI>,
        >;
        gameServerControllerUnbanPlayer(
            gameServerId: string,
            playerId: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>,
        >;
        gameServerControllerUninstallModule(
            gameServerId: string,
            moduleId: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >;
        gameServerControllerUpdate(
            id: string,
            gameServerUpdateDTO?: GameServerUpdateDTO,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >;
    }

    • gameServerControllerBanPlayer:function
      • Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerBanPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalbanPlayerInputDTO: BanPlayerInputDTO

          BanPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerCreate:function
      • Create a gameserver Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerCreate

        Parameters

        • OptionalgameServerCreateDTO: GameServerCreateDTO

          GameServerCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >

    • gameServerControllerExecuteCommand:function
      • Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerExecuteCommand

        Parameters

        • id: string
        • OptionalcommandExecuteInputDTO: CommandExecuteInputDTO

          CommandExecuteInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<CommandExecuteDTOAPI>,
        >

    • gameServerControllerGetImport:function
      • Fetch status of an import from CSMM Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerGetImport

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ImportStatusOutputDTOAPI>,
        >

    • gameServerControllerGetInstalledModules:function
      • Get all module installations for a gameserver
        OperationId: GameServerControllerGetInstalledModules

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputArrayDTOAPI>,
        >

    • gameServerControllerGetMapInfo:function
      • Get map metadata for Leaflet
        OperationId: GameServerControllerGetMapInfo

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>

    • gameServerControllerGetMapTile:function
      • Get a map tile for Leaflet
        OperationId: GameServerControllerGetMapTile

        Parameters

        • id: string
        • x: string
        • y: string
        • z: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>

    • gameServerControllerGetModuleInstallation:function
      • Get a module installation by id
        OperationId: GameServerControllerGetModuleInstallation

        Parameters

        • gameServerId: string
        • moduleId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >

    • gameServerControllerGetOne:function
      • Fetch a gameserver by id
        OperationId: GameServerControllerGetOne

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >

    • gameServerControllerGetPlayers:function
      • Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: READ_PLAYERS
        OperationId: GameServerControllerGetPlayers

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<PlayerOnGameserverOutputDTOAPI>,
        >

    • gameServerControllerGetTypes:function
      • Fetch gameserver types (7dtd, Rust, ...)
        OperationId: GameServerControllerGetTypes

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerTypesOutputDTOAPI>,
        >

    • gameServerControllerGiveItem:function
      • Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it's possible that the item is dropped on the ground instead of placed directly in the player's inventory. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerGiveItem

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalgiveItemInputDTO: GiveItemInputDTO

          GiveItemInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>

    • gameServerControllerImportFromCSMM:function
      • Import a gameserver from CSMM. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerImportFromCSMM

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ImportOutputDTOAPI>,
        >

    • gameServerControllerInstallModule:function
      • Install a module on a gameserver. If the module is already installed, it will be updated. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerInstallModule

        Parameters

        • gameServerId: string
        • moduleId: string
        • OptionalmoduleInstallDTO: ModuleInstallDTO

          ModuleInstallDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >

    • gameServerControllerKickPlayer:function
      • Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerKickPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalkickPlayerInputDTO: KickPlayerInputDTO

          KickPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerListBans:function
      • List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerListBans

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<BanPlayerOutputDTO>,
        >

    • gameServerControllerRemove:function
      • Delete a gameserver Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerRemove

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerSearch:function
    • gameServerControllerSendMessage:function
      • Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerSendMessage

        Parameters

        • id: string
        • OptionalmessageSendInputDTO: MessageSendInputDTO

          MessageSendInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerShutdown:function
      • Shuts down the gameserver. This is a 'soft' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a 'restart' instead. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerShutdown

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>

    • gameServerControllerTeleportPlayer:function
      • Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerTeleportPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • OptionalteleportPlayerInputDTO: TeleportPlayerInputDTO

          TeleportPlayerInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerTestReachability:function
    • gameServerControllerTestReachabilityForId:function
      • Test if Takaro can connect to a gameserver. Will do a thorough check and report details.
        OperationId: GameServerControllerTestReachabilityForId

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerTestReachabilityDTOAPI>,
        >

    • gameServerControllerUnbanPlayer:function
      • Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerUnbanPlayer

        Parameters

        • gameServerId: string
        • playerId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>>

    • gameServerControllerUninstallModule:function
      • Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerUninstallModule

        Parameters

        • gameServerId: string
        • moduleId: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ModuleInstallationOutputDTOAPI>,
        >

    • gameServerControllerUpdate:function
      • Update a gameserver Required permissions: MANAGE_GAMESERVERS
        OperationId: GameServerControllerUpdate

        Parameters

        • id: string
        • OptionalgameServerUpdateDTO: GameServerUpdateDTO

          GameServerUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<GameServerOutputDTOAPI>,
        >