NetworkExtensions.GetCustomIPPrefixes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetCustomIPPrefixes(ResourceGroupResource) |
Gets a collection of CustomIPPrefixResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCustomIPPrefixes() instead. |
GetCustomIPPrefixes(SubscriptionResource, CancellationToken) |
Gets all the custom IP prefixes in a subscription.
|
GetCustomIPPrefixes(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of CustomIPPrefixResources in the ResourceGroupResource. MockingTo mock this method, please mock GetCustomIPPrefixes() instead.
public static Azure.ResourceManager.Network.CustomIPPrefixCollection GetCustomIPPrefixes (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCustomIPPrefixes : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.CustomIPPrefixCollection
<Extension()>
Public Function GetCustomIPPrefixes (resourceGroupResource As ResourceGroupResource) As CustomIPPrefixCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of CustomIPPrefixResources and their operations over a CustomIPPrefixResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetCustomIPPrefixes(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets all the custom IP prefixes in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes
- Operation Id: CustomIPPrefixes_ListAll
- Default Api Version: 2024-03-01
- Resource: CustomIPPrefixResource
public static Azure.Pageable<Azure.ResourceManager.Network.CustomIPPrefixResource> GetCustomIPPrefixes (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCustomIPPrefixes : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.CustomIPPrefixResource>
<Extension()>
Public Function GetCustomIPPrefixes (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CustomIPPrefixResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of CustomIPPrefixResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.