From 01ce790071f5a572077aa0a926320bc90bb4e2e9 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 15:36:14 +0200 Subject: [PATCH 1/8] introduce new scanners resource type --- .../Scanners/DeleteScanner_example.json | 12 + .../examples/Scanners/GetScanner_example.json | 27 ++ .../Scanners/ListScanners_example.json | 45 +++ .../examples/Scanners/PutScanner_example.json | 28 ++ .../preview/2021-08-01-preview/scanners.json | 263 ++++++++++++++++++ .../security/resource-manager/readme.md | 1 + 6 files changed, 376 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json new file mode 100644 index 000000000000..3cf5b12a2277 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myResourceGroup", + "scannerName": "scanner" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json new file mode 100644 index 000000000000..e1e64fd08cf2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myResourceGroup", + "scannerName": "scanner" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/providers/Microsoft.Security/scanners/scanner", + "name": "scanner", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json new file mode 100644 index 000000000000..a79cd29eea15 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/providers/Microsoft.Security/scanners/scanner1", + "name": "scanner1", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/providers/Microsoft.Security/scanners/scanner2", + "name": "scanner2", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json new file mode 100644 index 000000000000..b6b086d7d7c7 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myResourceGroup", + "scannerName": "scanner", + "scanner": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/provider/Microsoft.Security/scanners/scanner", + "name": "scanner", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json new file mode 100644 index 000000000000..04b5e73bb543 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json @@ -0,0 +1,263 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2021-08-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/scanners": { + "get": { + "x-ms-examples": { + "List security scanners": { + "$ref": "./examples/Scanners/ListScanners_example.json" + } + }, + "tags": [ + "Scanners" + ], + "description": "Get security scanners on all your resources inside a scope", + "operationId": "Scanners_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScannerList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/scanners/{scannerName}": { + "get": { + "x-ms-examples": { + "Get a specific security scanner by scope and scannerName": { + "$ref": "./examples/Scanners/GetScanners_example.json" + } + }, + "tags": [ + "Scanners" + ], + "description": "Get a specific security scanner for the requested scope", + "operationId": "Scanners_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/ScannerName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Scanner" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create a security scanner on a specified scope": { + "$ref": "./examples/Scanners/PutScanners_example.json" + } + }, + "tags": [ + "Scanners" + ], + "description": "Create a security scanner on the given scope.", + "operationId": "Scanners_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/ScannerName" + }, + { + "$ref": "#/parameters/ScannerBody" + } + ], + "responses": { + "202": { + "description": "Successful request to put scanner.", + "schema": { + "$ref": "#/definitions/Scanner" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a security scanner": { + "$ref": "./examples/Scanners/DeleteScanners_example.json" + } + }, + "tags": [ + "Scanners" + ], + "description": "Delete a security Scanners.", + "operationId": "Scanners_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/scannerName" + } + ], + "responses": { + "200": { + "description": "OK - Scanner was deleted" + }, + "204": { + "description": "No Content - Scanner does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "ScannerList": { + "type": "object", + "description": "Page of a Scanners list", + "properties": { + "value": { + "description": "Collection of Scanners in this page", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Scanner" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page" + } + } + }, + "Scanner": { + "type": "object", + "description": "Security Scanner resource", + "properties": { + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/TrackedResource" + } + ] + } + }, + "parameters": { + "ScannerName": { + "name": "scannerName", + "in": "path", + "required": true, + "type": "string", + "description": "Security scanner name", + "x-ms-parameter-location": "method" + }, + "ScannerBody": { + "name": "scanner", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Scanner" + }, + "description": "security scanner", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index abd1373a9744..96f23017887a 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -81,6 +81,7 @@ These settings apply only when `--tag=package-preview-2021-08` is specified on t input-file: - Microsoft.Security/preview/2021-08-01-preview/standards.json - Microsoft.Security/preview/2021-08-01-preview/assignments.json + - Microsoft.Security/preview/2021-08-01-preview/scanners.json override-info: title: SecurityCenter From 0e559c9264a3c4cf7ea269b1a6952c9e15345a7c Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 15:46:09 +0200 Subject: [PATCH 2/8] fix error --- .../preview/2021-08-01-preview/scanners.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json index 04b5e73bb543..faa2c088661e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json @@ -80,7 +80,7 @@ "get": { "x-ms-examples": { "Get a specific security scanner by scope and scannerName": { - "$ref": "./examples/Scanners/GetScanners_example.json" + "$ref": "./examples/Scanners/GetScanner_example.json" } }, "tags": [ @@ -120,7 +120,7 @@ "put": { "x-ms-examples": { "Create a security scanner on a specified scope": { - "$ref": "./examples/Scanners/PutScanners_example.json" + "$ref": "./examples/Scanners/PutScanner_example.json" } }, "tags": [ @@ -163,7 +163,7 @@ "delete": { "x-ms-examples": { "Delete a security scanner": { - "$ref": "./examples/Scanners/DeleteScanners_example.json" + "$ref": "./examples/Scanners/DeleteScanner_example.json" } }, "tags": [ From 064b6e0907555446b89de2b1c2de1e116e60b225 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 16:08:16 +0200 Subject: [PATCH 3/8] fixing errors --- .../preview/2021-08-01-preview/scanners.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json index faa2c088661e..e03eda1572f0 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json @@ -146,7 +146,7 @@ } ], "responses": { - "202": { + "200": { "description": "Successful request to put scanner.", "schema": { "$ref": "#/definitions/Scanner" @@ -182,7 +182,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/scannerName" + "$ref": "#/parameters/ScannerName" } ], "responses": { From 4854e22b747b5afc782e1f323074ec82a550131a Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 16:24:14 +0200 Subject: [PATCH 4/8] fixing errors --- .../ListBySubscriptionScanners_example.json | 44 +++++++++++++++++++ .../preview/2021-08-01-preview/scanners.json | 39 ++++++++++++++++ .../security/resource-manager/readme.md | 4 ++ 3 files changed, 87 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json new file mode 100644 index 000000000000..3e040ac64c71 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/providers/Microsoft.Security/scanners/scanner1", + "name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/providers/Microsoft.Security/scanners/155afdf9-d239-4a5c-847f-89da613e7143", + "name": "155afdf9-d239-4a5c-847f-89da613e7143", + "type": "Microsoft.Security/scanners", + "location": "East US", + "etag": "etag value", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json index e03eda1572f0..4691178e66dc 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json @@ -34,6 +34,45 @@ } }, "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/scanners": { + "get": { + "x-ms-examples": { + "List security scanners by subscription level scope": { + "$ref": "./examples/Scanners/ListBySubscriptionScanners_example.json" + } + }, + "tags": [ + "Scanners" + ], + "description": "Get a list of all relevant security Scanners over a subscription level scope.", + "operationId": "Scanners_ListBySubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ScannersList" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/scanners": { "get": { "x-ms-examples": { diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 96f23017887a..4f1c02ca8e99 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -56,6 +56,10 @@ directive: where: $.paths from: standards.json reason: Suppression of OperationsAPI as it doesn't apply to this specific file. + - suppress: OperationsAPIImplementation + where: $.paths + from: scanners.json + reason: Suppression of OperationsAPI as it doesn't apply to this specific file. ``` ### Basic Information From 39ddd0f0ce0451cb620138df6f9d816121dc3b06 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 16:34:52 +0200 Subject: [PATCH 5/8] fix error --- .../preview/2021-08-01-preview/scanners.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json index 4691178e66dc..de78c0abf33e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json @@ -100,7 +100,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ScannerList" + "$ref": "#/definitions/ScannersList" } }, "default": { @@ -242,7 +242,7 @@ } }, "definitions": { - "ScannerList": { + "ScannersList": { "type": "object", "description": "Page of a Scanners list", "properties": { From 8d0e6e4e6d9784cf1068eeef70e9b1597d203aa6 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 16:44:51 +0200 Subject: [PATCH 6/8] fixing errors --- .../examples/Scanners/DeleteScanner_example.json | 0 .../examples/Scanners/GetScanner_example.json | 0 .../examples/Scanners/ListBySubscriptionScanners_example.json | 0 .../examples/Scanners/ListScanners_example.json | 0 .../examples/Scanners/PutScanner_example.json | 0 .../{2021-08-01-preview => 2021-12-01-preview}/scanners.json | 0 specification/security/resource-manager/readme.md | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/examples/Scanners/DeleteScanner_example.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/examples/Scanners/GetScanner_example.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/examples/Scanners/ListBySubscriptionScanners_example.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/examples/Scanners/ListScanners_example.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/examples/Scanners/PutScanner_example.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/{2021-08-01-preview => 2021-12-01-preview}/scanners.json (100%) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/DeleteScanner_example.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/GetScanner_example.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/ListScanners_example.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/examples/Scanners/PutScanner_example.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2021-08-01-preview/scanners.json rename to specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 4f1c02ca8e99..9d3e5449afee 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -85,7 +85,7 @@ These settings apply only when `--tag=package-preview-2021-08` is specified on t input-file: - Microsoft.Security/preview/2021-08-01-preview/standards.json - Microsoft.Security/preview/2021-08-01-preview/assignments.json - - Microsoft.Security/preview/2021-08-01-preview/scanners.json + - Microsoft.Security/preview/2021-12-01-preview/scanners.json override-info: title: SecurityCenter From 3a346e90635dcaccb1532c364fa02fdcbe905870 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Wed, 15 Dec 2021 16:50:26 +0200 Subject: [PATCH 7/8] fixing comments --- .../examples/Scanners/DeleteScanner_example.json | 2 +- .../examples/Scanners/GetScanner_example.json | 2 +- .../examples/Scanners/ListBySubscriptionScanners_example.json | 2 +- .../examples/Scanners/ListScanners_example.json | 2 +- .../examples/Scanners/PutScanner_example.json | 2 +- .../Microsoft.Security/preview/2021-12-01-preview/scanners.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json index 3cf5b12a2277..348ef6f73b34 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/DeleteScanner_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2021-12-01-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myResourceGroup", "scannerName": "scanner" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json index e1e64fd08cf2..84ccc7029f44 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/GetScanner_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2021-12-01-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myResourceGroup", "scannerName": "scanner" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json index 3e040ac64c71..1b1ef6f5bf59 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListBySubscriptionScanners_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2021-12-01-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json index a79cd29eea15..9317dca68617 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/ListScanners_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2021-12-01-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myResourceGroup" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json index b6b086d7d7c7..e9be864aae15 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/examples/Scanners/PutScanner_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2021-12-01-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myResourceGroup", "scannerName": "scanner", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json index de78c0abf33e..85438ae6187f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-12-01-preview/scanners.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-08-01-preview" + "version": "2021-12-01-preview" }, "host": "management.azure.com", "schemes": [ From 2a975203b1a7773d746f9aef6ba180e6d1378110 Mon Sep 17 00:00:00 2001 From: Esam Watad Date: Tue, 4 Jan 2022 23:39:17 +0200 Subject: [PATCH 8/8] adding new tag --- specification/security/resource-manager/readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 9d3e5449afee..4eaebdea41e0 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -85,6 +85,17 @@ These settings apply only when `--tag=package-preview-2021-08` is specified on t input-file: - Microsoft.Security/preview/2021-08-01-preview/standards.json - Microsoft.Security/preview/2021-08-01-preview/assignments.json + +override-info: + title: SecurityCenter +``` + +### Tag: package-preview-2021-12 + +These settings apply only when `--tag=package-preview-2021-12` is specified on the command line. + +``` yaml $(tag) == 'package-preview-2021-12' +input-file: - Microsoft.Security/preview/2021-12-01-preview/scanners.json override-info: