SearchExtensions.GetSearchServices 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
GetSearchServices(ResourceGroupResource) |
Gets a collection of SearchServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSearchServices() instead. |
GetSearchServices(SubscriptionResource, SearchManagementRequestOptions, CancellationToken) |
Gets a list of all Search services in the given subscription.
|
GetSearchServices(ResourceGroupResource)
- Source:
- SearchExtensions.cs
- Source:
- SearchExtensions.cs
Gets a collection of SearchServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSearchServices() instead.
public static Azure.ResourceManager.Search.SearchServiceCollection GetSearchServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSearchServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Search.SearchServiceCollection
<Extension()>
Public Function GetSearchServices (resourceGroupResource As ResourceGroupResource) As SearchServiceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of SearchServiceResources and their operations over a SearchServiceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetSearchServices(SubscriptionResource, SearchManagementRequestOptions, CancellationToken)
- Source:
- SearchExtensions.cs
- Source:
- SearchExtensions.cs
Gets a list of all Search services in the given subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices
- Operation Id: Services_ListBySubscription
- Default Api Version: 2024-03-01-preview
- Resource: SearchServiceResource
public static Azure.Pageable<Azure.ResourceManager.Search.SearchServiceResource> GetSearchServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSearchServices : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Search.SearchServiceResource>
<Extension()>
Public Function GetSearchServices (subscriptionResource As SubscriptionResource, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SearchServiceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- searchManagementRequestOptions
- SearchManagementRequestOptions
Parameter group.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SearchServiceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET