GalleryResource.GetSoftDeletedResourcesByArtifactNameAsync 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 soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/softDeletedArtifactTypes/{artifactType}/artifacts/{artifactName}/versions
- Operation Id: SoftDeletedResource_ListByArtifactName
- Default Api Version: 2024-03-03
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.GallerySoftDeletedResourceDetails> GetSoftDeletedResourcesByArtifactNameAsync (string artifactType, string artifactName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSoftDeletedResourcesByArtifactNameAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.GallerySoftDeletedResourceDetails>
override this.GetSoftDeletedResourcesByArtifactNameAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.GallerySoftDeletedResourceDetails>
Public Overridable Function GetSoftDeletedResourcesByArtifactNameAsync (artifactType As String, artifactName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of GallerySoftDeletedResourceDetails)
Parameters
- artifactType
- String
The type of the artifact to be listed, such as gallery image version.
- artifactName
- String
The artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of GallerySoftDeletedResourceDetails that may take multiple service requests to iterate over.
Exceptions
artifactType
or artifactName
is an empty string, and was expected to be non-empty.
artifactType
or artifactName
is null.