Skip to main content

IServerApiClient

An interface in Alta.Api.Client, Alta.Api.Client.HighLevel.

Alta web API calls for servers: lists, joining, permissions and online status. ApiAccess.ApiClient.ServerClient. The API is gone, so calls fail after timing out; see the Alta web API guide for which are stubbed.

Methods​

MemberWhat it is
Task<AllocationResult> AllocateServerForMigration(int serverIdentifier)Asks the API to allocate a server for moving a server's data.
Task<ServerJoinResult> ConnectConsole(int serverIdentifier, bool shouldLaunchServer = true, bool disregardOfflineStatus = true)Asks the API for a console connection to a server, optionally launching it.
Task CreateEfsMigrationRecordForServer(int serverId)Creates a storage migration record for a server.
Task<IServerAccess> CreateNewServerAsync(GameServerCreateRequest createRequest)Creates a server and returns access to control it.
Task<IEnumerable<GameServerInfo>> DiscoverServers()Lists servers from the discover list. Used by the main menu's Discover board.
Task<IServerAccess> GetControllableServerAsync(int serverId)Gets access to control a server. A negative id gives a LocalServerAccess with no API calls.
Task<IEnumerable<IServerAccess>> GetControllableServersAsync()Lists the servers the user can control.
Task<IEnumerable<GameServerInfo>> GetJoinedServersAsync()Lists the servers the user has joined. Used by the My Servers board.
Task<MigrationDetailsResponse> GetLatestEfsMigrationForServer(int serverId)Gets the latest storage migration details for a server.
Task<IEnumerable<GameServerInfo>> GetOnlineServersAsync()Lists online servers.
Task<IEnumerable<GameServerInfo>> GetOpenServersAsync()Lists open servers. Used by the Open Servers board.
Task<IEnumerable<GameServerInfo>> GetPublicServersAsync()Lists public servers. Used by the Public Servers board.
Task<GameServerInfo> GetServerAsync(int serverId)Gets one server's info.
Task<IEnumerable<RegionInfo>> GetServerRegions()Lists the server regions.
Task<IEnumerable<GameServerInfo>> GetServersByName(string name)Finds servers by name.
Task<IEnumerable<GameServerInfo>> GetServersWithPlayer(int playerId)Lists servers a player is on.
Task<IEnumerable<GroupPermissions>> GetUserPermissionsForServer(int serverIdentifier, int userIdentifier)Gets a user's permissions on a server. The websocket console login uses it.
Task<bool> HasPermissionsInServer(int serverIdentifier, int userIdentifier, GroupPermissions[] permissions)Asks whether a user has the given permissions on a server.
Task<ServerJoinResult> JoinServer(int serverIdentifier, GameVersion version, string deviceIdentifier, string token, bool shouldLaunchServer = true, bool disregardOfflineStatus = true)Asks the API to join a server and returns the connection details.
Task RequestBufferIncrease(BufferChangeRequest request)Sends a buffer change request for servers.
Task SetServerAsOfflineAsync(int serverIdentifier, bool isForced)Marks a server offline, optionally forced.
Task SetServerAsOnlineAsync(int serverIdentifier)Marks a server online.

Used in​

Members of other types that take, return or hold a IServerApiClient: