Release appcomplianceautomation microsoft.app compliance automation 2022 11 16 preview 1 (#21074)
* add appcomplianceautomation specs * update appcomplianceautomation specs for 2022-11-16-preview * remove privatepreview and beta (#21124) Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com> * Release appcomplianceautomation microsoft.app compliance automation 2022 11 16 preview resolve comments 2 (#21152) * fix comments * remove duplicate in body * resolve comments * edit examples to match schema * fix failure * fix model validation * change passed to passedCount * add x-ms-enum to isPass * change delete 200 description Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com> * set sasUri x-ms-secret to true (#21161) Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com> * remove properties from download request body (#21184) * remove properties from download request body * remove properties in snapshot_resourcelist_download.json * keep statuscode 201 and 202 in patch report response, due to RPSaas will change 202 to 201 * add body in patch report 201 response Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com> * change ProvisioningState Cancelled to Canceled, and some descriptions (#21237) * change ProvisioningState Cancelled to Canceled, and some descriptions * add x-ms-enum extension to ComplianceState Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com> Co-authored-by: Yanwen Liu <yanwenliu@microsoft.com>
This commit is contained in:
Родитель
d6143c2f52
Коммит
c5d0994729
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"headers": {},
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"name": "Microsoft.AppComplianceAutomation/reports/write",
|
||||
"isDataAction": false,
|
||||
"display": {
|
||||
"provider": "Microsoft AppComplianceAutomation",
|
||||
"resource": "Microsoft.AppComplianceAutomation/reports",
|
||||
"operation": "Microsoft.AppComplianceAutomation/reports/write",
|
||||
"description": "Create new reports."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
"parameters": {
|
||||
"parameters": {
|
||||
"properties": {
|
||||
"offerGuid": "0000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-04T05:11:56.197Z",
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"provisioningState": "Succeeded",
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName"
|
||||
},
|
||||
"responses": {
|
||||
"200": {},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
},
|
||||
"204": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReport"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
{
|
||||
"parameters": {
|
||||
"parameters": {
|
||||
"properties": {
|
||||
"offerGuid": "0000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-04T05:11:56.197Z",
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
"201": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
},
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"$skipToken": "1",
|
||||
"$top": "100",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName",
|
||||
"name": "testReportName",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"nextTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"lastTriggerTime": "2022-03-02T05:17:23.922Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
],
|
||||
"nextLink": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/reports?api-version=2022-11-16-preview&skipToken=1&top=100"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName",
|
||||
"snapshotName": "testSnapshotName",
|
||||
"parameters": {
|
||||
"downloadType": "ComplianceDetailedPdfReport",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"complianceDetailedPdfReport": {
|
||||
"sasUri": "this is a uri"
|
||||
}
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName",
|
||||
"snapshotName": "testSnapshotName",
|
||||
"parameters": {
|
||||
"downloadType": "CompliancePdfReport",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"compliancePdfReport": {
|
||||
"sasUri": "this is uri of report"
|
||||
}
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName",
|
||||
"snapshotName": "testSnapshotName",
|
||||
"parameters": {
|
||||
"downloadType": "ComplianceReport",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"complianceReport": [
|
||||
{
|
||||
"categoryName": "Data Security & Privacy",
|
||||
"controlId": "1",
|
||||
"controlName": "Validate that TLS Configuration meets or exceeds the TLS Profile Configuration Requirements",
|
||||
"controlType": "FullyAutomated",
|
||||
"complianceState": "Healthy",
|
||||
"policyId": "00000000-0000-0000-0000-000000000000",
|
||||
"policyDisplayName": "policy name",
|
||||
"policyDescription": "policy description",
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroup": "testGroup",
|
||||
"resourceType": "storageaccounts",
|
||||
"resourceId": "testResourceId",
|
||||
"statusChangeDate": "2021-09-01T17:26:57.4971616Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName",
|
||||
"snapshotName": "testSnapshot"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/snapshots/testSnapshot",
|
||||
"name": "testSnapshot",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports/snapshots",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"snapshotName": "testSnapshot",
|
||||
"createdAt": "2022-03-04T15:33:59.160Z",
|
||||
"provisioningState": "Succeeded",
|
||||
"reportProperties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"nextTriggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"lastTriggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"reportSystemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
},
|
||||
"complianceResults": [
|
||||
{
|
||||
"complianceName": "M365",
|
||||
"categories": [
|
||||
{
|
||||
"categoryName": "Operational Security",
|
||||
"categoryType": "PartiallyAutomated",
|
||||
"categoryStatus": "Healthy",
|
||||
"controlFamilies": [
|
||||
{
|
||||
"familyName": "Incident Response",
|
||||
"familyType": "PartiallyAutomated",
|
||||
"familyStatus": "Healthy",
|
||||
"controls": [
|
||||
{
|
||||
"controlId": "Operational Security#75",
|
||||
"controlShortName": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"controlFullName": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"controlType": "Manual",
|
||||
"controlDescriptionHyperLink": "https://doc.microsoft.com",
|
||||
"controlStatus": "Passed",
|
||||
"controlDescription": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"assessments": [
|
||||
{
|
||||
"name": "AssessmentName",
|
||||
"severity": "High",
|
||||
"description": "Assessment Description",
|
||||
"remediation": "Remediation",
|
||||
"isPass": "True",
|
||||
"policyId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceList": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"resourceStatus": "Healthy",
|
||||
"reason": "N/A",
|
||||
"statusChangeDate": "2022-03-04"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"reportName": "testReportName",
|
||||
"snapshotName": "testSnapshotName",
|
||||
"parameters": {
|
||||
"downloadType": "ResourceList",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"resourceList": [
|
||||
{
|
||||
"subscriptionId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceGroup": "myResourceGroup",
|
||||
"resourceType": "SignalR",
|
||||
"resourceId": "mySignalRService"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"202": {
|
||||
"headers": {
|
||||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}",
|
||||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
{
|
||||
"parameters": {
|
||||
"api-version": "2022-11-16-preview",
|
||||
"$skipToken": "1",
|
||||
"$top": "100",
|
||||
"reportName": "testReportName",
|
||||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000"
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"body": {
|
||||
"value": [
|
||||
{
|
||||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/snapshots/testSnapshot",
|
||||
"name": "testSnapshot",
|
||||
"type": "Microsfot.AppComplianceAutomation/reports/snapshots",
|
||||
"properties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"snapshotName": "testSnapshot",
|
||||
"createdAt": "2022-03-04T15:33:59.160Z",
|
||||
"provisioningState": "Succeeded",
|
||||
"reportProperties": {
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"status": "Active",
|
||||
"tenantId": "00000000-0000-0000-0000-000000000000",
|
||||
"reportName": "testReportName",
|
||||
"offerGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"timeZone": "GMT Standard Time",
|
||||
"triggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"nextTriggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"lastTriggerTime": "2022-03-04T15:33:59.160Z",
|
||||
"subscriptions": [
|
||||
"00000000-0000-0000-0000-000000000000"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"tags": {
|
||||
"key1": "value1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"complianceStatus": {
|
||||
"m365": {
|
||||
"passedCount": 0,
|
||||
"failedCount": 0,
|
||||
"manualCount": 0
|
||||
}
|
||||
},
|
||||
"provisioningState": "Succeeded"
|
||||
},
|
||||
"reportSystemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
},
|
||||
"complianceResults": [
|
||||
{
|
||||
"complianceName": "M365",
|
||||
"categories": [
|
||||
{
|
||||
"categoryName": "Operational Security",
|
||||
"categoryType": "PartiallyAutomated",
|
||||
"categoryStatus": "Healthy",
|
||||
"controlFamilies": [
|
||||
{
|
||||
"familyName": "Incident Response",
|
||||
"familyType": "PartiallyAutomated",
|
||||
"familyStatus": "Healthy",
|
||||
"controls": [
|
||||
{
|
||||
"controlId": "Operational Security#75",
|
||||
"controlShortName": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"controlFullName": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"controlType": "Manual",
|
||||
"controlDescriptionHyperLink": "https://doc.microsoft.com",
|
||||
"controlStatus": "Passed",
|
||||
"controlDescription": "Provide demonstrable evidence that all member of the incident response team have completed annual training or a table top exercise",
|
||||
"assessments": [
|
||||
{
|
||||
"name": "AssessmentName",
|
||||
"severity": "High",
|
||||
"description": "Assessment Description",
|
||||
"remediation": "Remediation",
|
||||
"isPass": "True",
|
||||
"policyId": "00000000-0000-0000-0000-000000000000",
|
||||
"resourceList": [
|
||||
{
|
||||
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService",
|
||||
"resourceStatus": "Healthy",
|
||||
"reason": "N/A",
|
||||
"statusChangeDate": "2022-03-04"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"systemData": {
|
||||
"createdBy": "00000000-0000-0000-0000-000000000000",
|
||||
"createdByType": "User",
|
||||
"createdAt": "2021-05-14T22:34:55.4499903Z",
|
||||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
|
||||
"lastModifiedByType": "User",
|
||||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z"
|
||||
}
|
||||
}
|
||||
],
|
||||
"nextLink": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/reports/testReportName/snapshots?api-version=2022-11-16-preview&skipToken=1&top=100"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
## AZ
|
||||
|
||||
These settings apply only when `--az` is specified on the command line.
|
||||
|
||||
For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage.
|
||||
|
||||
``` yaml $(az) && $(target-mode) != 'core'
|
||||
az:
|
||||
extensions: appcomplianceautomation
|
||||
namespace: azure.mgmt.appcomplianceautomation
|
||||
package-name: azure-mgmt-appcomplianceautomation
|
||||
az-output-folder: $(azure-cli-extension-folder)/src/appcomplianceautomation
|
||||
python-sdk-output-folder: "$(az-output-folder)/azext_appcomplianceautomation/vendored_sdks/appcomplianceautomation"
|
||||
# add additional configuration here specific for Azure CLI
|
||||
# refer to the faq.md for more details
|
||||
```
|
||||
|
||||
|
||||
|
||||
This is for command modules that already in azure cli main repo.
|
||||
``` yaml $(az) && $(target-mode) == 'core'
|
||||
az:
|
||||
extensions: appcomplianceautomation
|
||||
namespace: azure.mgmt.appcomplianceautomation
|
||||
package-name: azure-mgmt-appcomplianceautomation
|
||||
az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/appcomplianceautomation
|
||||
python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/appcomplianceautomation"
|
||||
```
|
|
@ -0,0 +1 @@
|
|||
## CLI Common Settings for all the command line tools
|
|
@ -0,0 +1,15 @@
|
|||
## C#
|
||||
|
||||
These settings apply only when `--csharp` is specified on the command line.
|
||||
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.
|
||||
|
||||
```yaml $(csharp)
|
||||
csharp:
|
||||
azure-arm: true
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
payload-flattening-threshold: 1
|
||||
clear-output-folder: true
|
||||
client-side-validation: false
|
||||
namespace: Microsoft.AppComplianceAutomation
|
||||
output-folder: $(csharp-sdks-folder)/appcomplianceautomation/management/Microsoft.AppComplianceAutomation/GeneratedProtocol
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
## Go
|
||||
|
||||
These settings apply only when `--go` is specified on the command line.
|
||||
|
||||
```yaml $(go) && $(track2)
|
||||
azure-arm: true
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
module-name: sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation
|
||||
module: github.com/Azure/azure-sdk-for-go/$(module-name)
|
||||
output-folder: $(go-sdk-folder)/$(module-name)
|
||||
```
|
|
@ -0,0 +1,80 @@
|
|||
# appcomplianceautomation
|
||||
|
||||
> see https://aka.ms/autorest
|
||||
|
||||
This is the AutoRest configuration file for appcomplianceautomation.
|
||||
|
||||
## Getting Started
|
||||
|
||||
To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
|
||||
|
||||
> `autorest readme.md`
|
||||
|
||||
To see additional help and options, run:
|
||||
|
||||
> `autorest --help`
|
||||
|
||||
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
|
||||
|
||||
---
|
||||
|
||||
## Configuration
|
||||
|
||||
### Basic Information
|
||||
|
||||
These are the global settings for the appcomplianceautomation.
|
||||
|
||||
``` yaml
|
||||
openapi-type: arm
|
||||
openapi-subtype: rpaas
|
||||
tag: package-2022-11-16-preview
|
||||
```
|
||||
|
||||
|
||||
### Tag: package-2022-11-16-preview
|
||||
|
||||
These settings apply only when `--tag=package-2022-11-16-preview` is specified on the command line.
|
||||
|
||||
```yaml $(tag) == 'package-2022-11-16-preview'
|
||||
input-file:
|
||||
- Microsoft.AppComplianceAutomation/preview/2022-11-16-preview/appcomplianceautomation.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Code Generation
|
||||
|
||||
## Swagger to SDK
|
||||
|
||||
This section describes what SDK should be generated by the automatic system.
|
||||
This is not used by Autorest itself.
|
||||
|
||||
``` yaml $(swagger-to-sdk)
|
||||
swagger-to-sdk:
|
||||
- repo: azure-sdk-for-python-track2
|
||||
- repo: azure-sdk-for-java
|
||||
- repo: azure-sdk-for-go
|
||||
- repo: azure-sdk-for-js
|
||||
- repo: azure-resource-manager-schemas
|
||||
- repo: azure-cli-extensions
|
||||
```
|
||||
|
||||
## Az
|
||||
|
||||
See configuration in [readme.az.md](./readme.az.md)
|
||||
|
||||
## Go
|
||||
|
||||
See configuration in [readme.go.md](./readme.go.md)
|
||||
|
||||
## Python
|
||||
|
||||
See configuration in [readme.python.md](./readme.python.md)
|
||||
|
||||
## TypeScript
|
||||
|
||||
See configuration in [readme.typescript.md](./readme.typescript.md)
|
||||
|
||||
## CSharp
|
||||
|
||||
See configuration in [readme.csharp.md](./readme.csharp.md)
|
|
@ -0,0 +1,18 @@
|
|||
## Python
|
||||
|
||||
These settings apply only when `--python` is specified on the command line.
|
||||
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
|
||||
|
||||
``` yaml $(python)
|
||||
azure-arm: true
|
||||
license-header: MICROSOFT_MIT_NO_VERSION
|
||||
package-name: azure-mgmt-appcomplianceautomation
|
||||
namespace: azure.mgmt.appcomplianceautomation
|
||||
package-version: 1.0.0b1
|
||||
clear-output-folder: true
|
||||
```
|
||||
|
||||
``` yaml $(python)
|
||||
no-namespace-folders: true
|
||||
output-folder: $(python-sdks-folder)/appcomplianceautomation/azure-mgmt-appcomplianceautomation/azure/mgmt/appcomplianceautomation
|
||||
```
|
|
@ -0,0 +1,14 @@
|
|||
## TypeScript
|
||||
|
||||
These settings apply only when `--typescript` is specified on the command line.
|
||||
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.
|
||||
|
||||
``` yaml $(typescript)
|
||||
typescript:
|
||||
azure-arm: true
|
||||
package-name: "@azure/arm-appcomplianceautomation"
|
||||
output-folder: "$(typescript-sdks-folder)/sdk/appcomplianceautomation/arm-appcomplianceautomation"
|
||||
payload-flattening-threshold: 1
|
||||
clear-output-folder: true
|
||||
generate-metadata: true
|
||||
```
|
Загрузка…
Ссылка в новой задаче