AppComplianceAutomationExtensions.GetReportResource 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.
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.
|
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.
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
The resource ID of the resource to get.
Returns
Returns a ReportResource object.
Exceptions
client
is null.
Applies to
GetReportResource(TenantResource, String, CancellationToken)
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
Azure SDK for .NET