Share via


DscNodeResource.GetNodeReportAsync(String, CancellationToken) Method

Definition

Retrieve the Dsc node report data by node id and report id.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}
  • Operation Id: NodeReports_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.DscNodeReport>> GetNodeReportAsync (string reportId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNodeReportAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.DscNodeReport>>
override this.GetNodeReportAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.Models.DscNodeReport>>
Public Overridable Function GetNodeReportAsync (reportId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DscNodeReport))

Parameters

reportId
String

The report id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

reportId is null.

Applies to