ApplicationInsightsComponentResource.GetFavorites 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
GetFavorites(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken) |
Gets a list of favorites defined within an Application Insights component.
|
GetFavorites(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken) |
Gets a list of favorites defined within an Application Insights component.
|
GetFavorites(Nullable<FavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)
Gets a list of favorites defined within an Application Insights component.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
- Operation Id: Favorites_List
- Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavorites (Azure.ResourceManager.ApplicationInsights.Models.FavoriteType? favoriteType = default, Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType? sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IEnumerable<string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavorites (Optional favoriteType As Nullable(Of FavoriteType) = Nothing, Optional sourceType As Nullable(Of FavoriteSourceType) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentFavorite)
Parameters
- favoriteType
- Nullable<FavoriteType>
The type of favorite. Value can be either shared or user.
- sourceType
- Nullable<FavoriteSourceType>
Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).
Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.
- tags
- IEnumerable<String>
Tags that must be present on each favorite returned.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.
Applies to
GetFavorites(Nullable<ComponentFavoriteType>, Nullable<FavoriteSourceType>, Nullable<Boolean>, IEnumerable<String>, CancellationToken)
Gets a list of favorites defined within an Application Insights component.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
- Operation Id: Favorites_List
- Default Api Version: 2015-05-01
public virtual Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> GetFavorites (Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType? favoriteType = default, Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType? sourceType = default, bool? canFetchContent = default, System.Collections.Generic.IEnumerable<string> tags = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.GetFavorites : Nullable<Azure.ResourceManager.ApplicationInsights.Models.ComponentFavoriteType> * Nullable<Azure.ResourceManager.ApplicationInsights.Models.FavoriteSourceType> * Nullable<bool> * seq<string> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function GetFavorites (Optional favoriteType As Nullable(Of ComponentFavoriteType) = Nothing, Optional sourceType As Nullable(Of FavoriteSourceType) = Nothing, Optional canFetchContent As Nullable(Of Boolean) = Nothing, Optional tags As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentFavorite)
Parameters
- favoriteType
- Nullable<ComponentFavoriteType>
The type of favorite. Value can be either shared or user.
- sourceType
- Nullable<FavoriteSourceType>
Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).
Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.
- tags
- IEnumerable<String>
Tags that must be present on each favorite returned.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ApplicationInsightsComponentFavorite that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET