共用方式為


AppComplianceAutomationExtensions.GetReportResource Method

Definition

Overloads

GetReportResource(ArmClient, ResourceIdentifier)

Gets an object representing a ReportResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String) to create a ReportResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReportResource(ResourceIdentifier) instead.

GetReportResource(TenantResource, String, CancellationToken)

Get the AppComplianceAutomation report and its properties.

  • Request Path: /providers/Microsoft.AppComplianceAutomation/reports/{reportName}
  • Operation Id: Report_Get

GetReportResource(ArmClient, ResourceIdentifier)

Source:
AppComplianceAutomationExtensions.cs

Gets an object representing a ReportResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String) to create a ReportResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetReportResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.AppComplianceAutomation.ReportResource GetReportResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetReportResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.AppComplianceAutomation.ReportResource
<Extension()>
Public Function GetReportResource (client As ArmClient, id As ResourceIdentifier) As ReportResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a ReportResource object.

Exceptions

client is null.

Applies to

GetReportResource(TenantResource, String, CancellationToken)

Source:
AppComplianceAutomationExtensions.cs

Get the AppComplianceAutomation report and its properties.

  • Request Path: /providers/Microsoft.AppComplianceAutomation/reports/{reportName}
  • Operation Id: Report_Get
public static Azure.Response<Azure.ResourceManager.AppComplianceAutomation.ReportResource> GetReportResource (this Azure.ResourceManager.Resources.TenantResource tenantResource, string reportName, System.Threading.CancellationToken cancellationToken = default);
static member GetReportResource : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppComplianceAutomation.ReportResource>
<Extension()>
Public Function GetReportResource (tenantResource As TenantResource, reportName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ReportResource)

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

reportName
String

Report Name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource or reportName is null.

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

Applies to