Share via


AppComplianceReportScopingConfigurationCollection.CreateOrUpdateAsync Method

Definition

Get the AppComplianceAutomation scoping configuration of the specific report.

  • Request Path: /providers/Microsoft.AppComplianceAutomation/reports/{reportName}/scopingConfigurations/{scopingConfigurationName}
  • Operation Id: ScopingConfiguration_CreateOrUpdate
  • Default Api Version: 2024-06-27
  • Resource: AppComplianceReportScopingConfigurationResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scopingConfigurationName, Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppComplianceAutomation.AppComplianceReportScopingConfigurationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scopingConfigurationName As String, data As AppComplianceReportScopingConfigurationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppComplianceReportScopingConfigurationResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

scopingConfigurationName
String

The scoping configuration of the specific report.

data
AppComplianceReportScopingConfigurationData

Parameters for the create or update operation, this is a singleton resource, so please make sure you're using 'default' as the name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scopingConfigurationName or data is null.

Applies to