Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }