/// <summary> /// Retrieves all of the Nodes on a particular Network Domain at an MCP 2.0 data center. /// </summary> /// <param name="options">The filter options</param> /// <param name="pagingOptions"> The paging Options.</param> /// <returns>The async task of <see cref="PagedResponse{NodeType}"/></returns> public async Task <PagedResponse <NodeType> > GetNodesPaginated(NodeListOptions options = null, PageableRequest pagingOptions = null) { var response = await _api.GetAsync <nodes>(ApiUris.GetVipNodes(_api.OrganizationId), pagingOptions, options); return(new PagedResponse <NodeType> { items = response.node, totalCount = response.totalCountSpecified ? response.totalCount : (int?)null, pageCount = response.pageCountSpecified ? response.pageCount : (int?)null, pageNumber = response.pageNumberSpecified ? response.pageNumber : (int?)null, pageSize = response.pageSizeSpecified ? response.pageSize : (int?)null }); }
/// <summary> /// Retrieves all of the Nodes on a particular Network Domain at an MCP 2.0 data center. /// </summary> /// <param name="options">The filter options</param> /// <returns>The async task of collection of <see cref="NodeType"/></returns> public async Task <IEnumerable <NodeType> > GetNodes(NodeListOptions options = null) { var response = await GetNodesPaginated(options, null); return(response.items); }