NetworkExtensions.GetAllServiceTagInformation Method

Definition

Gets a list of service tag information resources with pagination.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/serviceTagDetails
  • Operation Id: ServiceTagInformation_List
  • Default Api Version: 2023-09-01
public static Azure.Pageable<Azure.ResourceManager.Network.Models.ServiceTagInformation> GetAllServiceTagInformation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, bool? noAddressPrefixes = default, string tagName = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAllServiceTagInformation : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Nullable<bool> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.Models.ServiceTagInformation>
<Extension()>
Public Function GetAllServiceTagInformation (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional noAddressPrefixes As Nullable(Of Boolean) = Nothing, Optional tagName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceTagInformation)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

location
AzureLocation

The location that will be used as a reference for cloud (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to).

noAddressPrefixes
Nullable<Boolean>

Do not return address prefixes for the tag(s).

tagName
String

Return tag information for a particular tag.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ServiceTagInformation that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to