ComputeExtensions.GetSharedGalleryImages 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.
List shared gallery images by subscription id or tenant id. <item> Mocking. To mock this method, please mock GetSharedGalleryImages(AzureLocation, String, Nullable<SharedToValue>, CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Compute.SharedGalleryImageData> GetSharedGalleryImages(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string galleryUniqueName, Azure.ResourceManager.Compute.Models.SharedToValue? sharedTo = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedGalleryImages : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.Compute.Models.SharedToValue> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.SharedGalleryImageData>
<Extension()>
Public Function GetSharedGalleryImages (subscriptionResource As SubscriptionResource, location As AzureLocation, galleryUniqueName As String, Optional sharedTo As Nullable(Of SharedToValue) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SharedGalleryImageData)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- location
- AzureLocation
The name of the Azure region.
- galleryUniqueName
- String
The unique name of the Shared Gallery.
- sharedTo
- Nullable<SharedToValue>
The query parameter to decide what shared galleries to fetch when doing listing operations.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SharedGalleryImageData that may take multiple service requests to iterate over.
Exceptions
galleryUniqueName is an empty string, and was expected to be non-empty.
subscriptionResource is null.