Share via


Report - Update

Update an exiting AppComplianceAutomation report.

PATCH https://management.azure.com/providers/Microsoft.AppComplianceAutomation/reports/{reportName}?api-version=2024-06-27

URI Parameters

Name In Required Type Description
reportName
path True

string

pattern: ^[-a-zA-Z0-9_]{1,50}$

Report Name.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Type Description
properties

ReportPatchProperties

Report property.

Responses

Name Type Description
200 OK

ReportResource

Azure operation completed successfully.

202 Accepted

Resource update request accepted.

Headers

  • Location: string
  • Retry-After: integer
Other Status Codes

ErrorResponse

An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Report_Update

Sample request

PATCH https://management.azure.com/providers/Microsoft.AppComplianceAutomation/reports/testReportName?api-version=2024-06-27

{
  "properties": {
    "offerGuid": "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002",
    "resources": [
      {
        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
        "resourceOrigin": "Azure",
        "resourceType": "Microsoft.SignalRService/SignalR"
      },
      {
        "accountId": "000000000000",
        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acat-aws/providers/microsoft.security/securityconnectors/acatawsconnector/securityentitydata/aws-iam-user-testuser",
        "resourceOrigin": "AWS",
        "resourceType": "iam.user"
      }
    ],
    "storageInfo": {
      "accountName": "testStorageAccount",
      "location": "East US",
      "resourceGroup": "testResourceGroup",
      "subscriptionId": "00000000-0000-0000-0000-000000000000"
    },
    "timeZone": "GMT Standard Time",
    "triggerTime": "2022-03-04T05:00:00.000Z"
  }
}

Sample response

{
  "name": "testReportName",
  "type": "Microsfot.AppComplianceAutomation/reports",
  "id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
  "properties": {
    "certRecords": [
      {
        "certificationStatus": "CertIngestion",
        "controls": [
          {
            "controlId": "Operational_Security_10",
            "controlStatus": "Approved"
          }
        ],
        "ingestionStatus": "EvidenceResubmitted",
        "offerGuid": "00000000-0000-0000-0000-000000000001"
      }
    ],
    "complianceStatus": {
      "m365": {
        "failedCount": 0,
        "manualCount": 0,
        "passedCount": 0
      }
    },
    "lastTriggerTime": "2022-03-02T05:00:00.000Z",
    "nextTriggerTime": "2022-03-02T05:00:00.000Z",
    "offerGuid": "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002",
    "provisioningState": "Succeeded",
    "resources": [
      {
        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
        "resourceOrigin": "Azure",
        "resourceType": "Microsoft.SignalRService/SignalR"
      },
      {
        "accountId": "000000000000",
        "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/acat-aws/providers/microsoft.security/securityconnectors/acatawsconnector/securityentitydata/aws-iam-user-testuser",
        "resourceOrigin": "AWS",
        "resourceType": "iam.user"
      }
    ],
    "status": "Active",
    "storageInfo": {
      "accountName": "testStorageAccount",
      "location": "East US",
      "resourceGroup": "testResourceGroup",
      "subscriptionId": "00000000-0000-0000-0000-000000000000"
    },
    "subscriptions": [
      "00000000-0000-0000-0000-000000000000"
    ],
    "tenantId": "00000000-0000-0000-0000-000000000000",
    "timeZone": "GMT Standard Time",
    "triggerTime": "2022-03-02T05:00:00.000Z"
  },
  "systemData": {
    "createdAt": "2021-05-14T22:34:55.4499903Z",
    "createdBy": "00000000-0000-0000-0000-000000000000",
    "createdByType": "User",
    "lastModifiedAt": "2021-05-14T22:34:55.4499903Z",
    "lastModifiedBy": "00000000-0000-0000-0000-000000000000",
    "lastModifiedByType": "User"
  }
}
Azure-AsyncOperation: https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}
Location: https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}

Definitions

Name Description
CertSyncRecord

A class represent the certification record synchronized from app compliance.

ControlSyncRecord

A class represent the control record synchronized from app compliance.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

OverviewStatus

The overview of the compliance result for one report.

ProvisioningState

Resource provisioning states.

ReportComplianceStatus

A list which includes all the compliance result for one report.

ReportPatchProperties

Patch Report's properties.

ReportResource

A class represent an AppComplianceAutomation report resource.

ReportResourcePatch

A class represent a AppComplianceAutomation report resource update properties.

ReportStatus

Report status.

ResourceMetadata

Single resource Id's metadata.

ResourceOrigin

Resource Origin.

StorageInfo

The information of 'bring your own storage' account binding to the report

systemData

Metadata pertaining to creation and last modification of the resource.

CertSyncRecord

A class represent the certification record synchronized from app compliance.

Name Type Description
certificationStatus

string

Indicates the status of certification process.

controls

ControlSyncRecord[]

The control records list to be synchronized.

ingestionStatus

string

Indicates the status of compliance process.

offerGuid

string

minLength: 1

The offerGuid which mapping to the reports.

ControlSyncRecord

A class represent the control record synchronized from app compliance.

Name Type Description
controlId

string

The Id of the control. e.g. "Operational_Security_10"

controlStatus

string

Control status synchronized from app compliance.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

OverviewStatus

The overview of the compliance result for one report.

Name Type Description
failedCount

integer (int32)

The count of all failed control.

manualCount

integer (int32)

The count of all manual control.

notApplicableCount

integer (int32)

The count of all not applicable control.

passedCount

integer (int32)

The count of all passed control.

pendingCount

integer (int32)

The count of all pending for approval control.

ProvisioningState

Resource provisioning states.

Value Description
Succeeded

The provision is succeeded.

Failed

The provision is failed.

Canceled

The provision is canceled.

Creating

The creation is in progress.

Deleting

The deletion is in progress.

Fixing

The fix of the resource in progress.

Verifying

The verification of the resource in progress.

Updating

The update of the resource in progress.

ReportComplianceStatus

A list which includes all the compliance result for one report.

Name Type Description
m365

OverviewStatus

The Microsoft 365 certification name.

ReportPatchProperties

Patch Report's properties.

Name Type Description
certRecords

CertSyncRecord[]

List of synchronized certification records.

complianceStatus

ReportComplianceStatus

Report compliance status.

errors

string[]

List of report error codes.

lastTriggerTime

string (date-time)

Report last collection trigger time.

nextTriggerTime

string (date-time)

Report next collection trigger time.

offerGuid

string

A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002" and "00000000-0000-0000-0000-000000000003".

provisioningState

ProvisioningState

Azure lifecycle management

resources

ResourceMetadata[]

List of resource data.

status

ReportStatus

Report status.

storageInfo

StorageInfo

The information of 'bring your own storage' binding to the report

subscriptions

string[]

List of subscription Ids.

tenantId

string

Report's tenant id.

timeZone

string

Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable" in PowerShell. An example of valid timezone id is "Pacific Standard Time".

triggerTime

string (date-time)

Report collection trigger time.

ReportResource

A class represent an AppComplianceAutomation report resource.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

The name of the resource

properties.certRecords

CertSyncRecord[]

List of synchronized certification records.

properties.complianceStatus

ReportComplianceStatus

Report compliance status.

properties.errors

string[]

List of report error codes.

properties.lastTriggerTime

string (date-time)

Report last collection trigger time.

properties.nextTriggerTime

string (date-time)

Report next collection trigger time.

properties.offerGuid

string

A list of comma-separated offerGuids indicates a series of offerGuids that map to the report. For example, "00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002" and "00000000-0000-0000-0000-000000000003".

properties.provisioningState

ProvisioningState

Azure lifecycle management

properties.resources

ResourceMetadata[]

List of resource data.

properties.status

ReportStatus

Report status.

properties.storageInfo

StorageInfo

The information of 'bring your own storage' binding to the report

properties.subscriptions

string[]

List of subscription Ids.

properties.tenantId

string

Report's tenant id.

properties.timeZone

string

Report collection trigger time's time zone, the available list can be obtained by executing "Get-TimeZone -ListAvailable" in PowerShell. An example of valid timezone id is "Pacific Standard Time".

properties.triggerTime

string (date-time)

Report collection trigger time.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ReportResourcePatch

A class represent a AppComplianceAutomation report resource update properties.

Name Type Description
properties

ReportPatchProperties

Report property.

ReportStatus

Report status.

Value Description
Active

The report is active.

Failed

The report is failed.

Reviewing

The report is under reviewing.

Disabled

The report is disabled.

ResourceMetadata

Single resource Id's metadata.

Name Type Description
accountId

string

Account Id. For example - the AWS account id.

resourceId

string

Resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1".

resourceKind

string

Resource kind.

resourceOrigin

ResourceOrigin

Resource Origin.

resourceType

string

Resource type. e.g. "Microsoft.Compute/virtualMachines"

ResourceOrigin

Resource Origin.

Value Description
Azure

The resource is from Azure.

AWS

The resource is from AWS.

GCP

The resource is from GCP.

StorageInfo

The information of 'bring your own storage' account binding to the report

Name Type Description
accountName

string

'bring your own storage' account name

location

string

The region of 'bring your own storage' account

resourceGroup

string

The resourceGroup which 'bring your own storage' account belongs to

subscriptionId

string

The subscription id which 'bring your own storage' account belongs to

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.