/// <summary> /// Retrieves the list of ACL rules associated with a network. This API requires your /// organization ID and the ID of the target network. /// </summary> /// <param name="options"> /// Options for controlling the operation. /// </param> /// <param name="pagingOptions"> /// Options for controlling the paging. /// </param> /// <returns> /// The VLAN collection. /// </returns> public async Task<IEnumerable<VlanType>> GetVlans(VlanListOptions options = null, PageableRequest pagingOptions = null) { var vlans = await _api.GetAsync<vlans>( ApiUris.GetVlanByOrgId(_api.OrganizationId), pagingOptions); return vlans.vlan; }
public static async Task<IEnumerable<VlanType>> GetVlans(this IComputeApiClient client, VlanListOptions options = null, PageableRequest pagingOptions = null) { return await client.Networking.Vlan.GetVlans(options, pagingOptions); }