/// <summary> /// The get deployed servers. /// </summary> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <ServerWithBackupType> > GetDeployedServers() { ServersWithBackup servers = await _apiClient.GetAsync <ServersWithBackup>(ApiUris.DeployedServers(_apiClient.OrganizationId, null, null, null, null)); return(servers.server); }
/// <summary> /// The get deployed servers. /// </summary> /// <param name="filteringOptions"> /// The filtering options. /// </param> /// <param name="pagingOptions"> /// The paging options. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <ServerWithBackupType> > GetDeployedServers( ServerListOptions filteringOptions = null, IPageableRequest pagingOptions = null) { ServersWithBackup servers = await _apiClient.GetAsync <ServersWithBackup>( ApiUris.DeployedServers(_apiClient.OrganizationId), pagingOptions, filteringOptions); return(servers.server); }
/// <summary> /// The get deployed servers. /// </summary> /// <param name="serverId"> /// The server Id. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="networkId"> /// The network id. /// </param> /// <param name="location"> /// The location. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <ServerWithBackupType> > GetDeployedServers( string serverId, string name, string networkId, string location) { ServersWithBackup servers = await _apiClient.GetAsync <ServersWithBackup>( ApiUris.DeployedServers(_apiClient.OrganizationId, serverId, name, networkId, location)); return(servers.server); }