MockableImpactReportingSubscriptionResource.GetWorkloadImpactAsync 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.
Get a WorkloadImpact
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}
- Operation Id: WorkloadImpact_Get
- Default Api Version: 2024-05-01-preview
- Resource: WorkloadImpactResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.WorkloadImpactResource>> GetWorkloadImpactAsync(string workloadImpactName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkloadImpactAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.WorkloadImpactResource>>
override this.GetWorkloadImpactAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ImpactReporting.WorkloadImpactResource>>
Public Overridable Function GetWorkloadImpactAsync (workloadImpactName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WorkloadImpactResource))
Parameters
- workloadImpactName
- String
workloadImpact resource.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
workloadImpactName is null.
workloadImpactName is an empty string, and was expected to be non-empty.