ScopeAccessReviewHistoryDefinitionResource.GenerateDownloadUriAsync Method

Definition

Generates a uri which can be used to retrieve review history data. This URI has a TTL of 1 day and can be retrieved by fetching the accessReviewHistoryDefinition object.

  • Request Path. : /{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances/{instanceId}/generateDownloadUri.
  • Operation Id. : ScopeAccessReviewHistoryDefinitions_GenerateDownloadUri.
  • Default Api Version. : 2021-12-01-preview.
  • Resource. : ScopeAccessReviewHistoryDefinitionResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.Models.AccessReviewHistoryInstance>> GenerateDownloadUriAsync(string instanceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateDownloadUriAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.Models.AccessReviewHistoryInstance>>
override this.GenerateDownloadUriAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.Models.AccessReviewHistoryInstance>>
Public Overridable Function GenerateDownloadUriAsync (instanceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AccessReviewHistoryInstance))

Parameters

instanceId
String

The id of the access review history definition instance to generate a URI for.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

instanceId is null.

instanceId is an empty string, and was expected to be non-empty.

Applies to