Pick the first available address range. This strategy is deterministic
and the result is easy to predict.
FirstSmallestFitting
Pick the smallest but fitting available range. This deterministic
strategy minimizes fragmentation of the address space.
Random
Random strategy, the legacy algorithm, used for backwards compatibility.
This allocation strategy remains efficient in the case of concurrent
allocation requests in the same peered network space and doesn't require
providing the level of concurrency in an explicit parameter, but it is
prone to fragmenting available address space.
RandomFirstNAvailable
Pick an arbitrary range out of the first N available ones. The N will be
set in the first_available_ranges_lookup_size field. This strategy should
be used when concurrent allocation requests are made in the same space of
peered networks while the fragmentation of the addrress space is reduced.
Unspecified
Unspecified is the only valid option when the range is specified
explicitly by ip_cidr_range field. Otherwise unspefified means using the
default strategy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Network Connectivity v1 API - Enum InternalRange.Types.AllocationStrategy (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.InternalRange.Types.AllocationStrategy) \n\n public enum InternalRange.Types.AllocationStrategy\n\nReference documentation and code samples for the Network Connectivity v1 API enum InternalRange.Types.AllocationStrategy.\n\nEnumeration of range auto-allocation strategies\n\nNamespace\n---------\n\n[Google.Cloud.NetworkConnectivity.V1](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkConnectivity.V1.dll"]]