From e18b726bb3accc2ca766dd756bfa77c222ac47ef Mon Sep 17 00:00:00 2001 From: Oved Chitayat Date: Thu, 31 Dec 2020 17:22:18 +0200 Subject: [PATCH 1/2] Edit securityContact swagger for 2020-01-01 --- .../CreateSecurityContact_example.json | 21 +++++++++++++++++++ .../2020-01-01-preview/securityContacts.json | 8 ++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json index 253eda8038ee..cdab0f2d8183 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json @@ -44,6 +44,27 @@ } } } + }, + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/securityContacts/default", + "name": "default", + "type": "Microsoft.Security/securityContact", + "properties": { + "notificationsByRole": { + "state": "On", + "roles": [ + "Owner" + ] + }, + "emails": "john@microsoft.com;jane@microsoft.com", + "phone": "(214)275-4038", + "alertNotifications": { + "state": "On", + "minimalSeverity": "Low" + } + } + } } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json index 3fbed20bac58..d1d2379c5636 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json @@ -135,6 +135,12 @@ ], "responses": { "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SecurityContact" + } + }, + "200": { "description": "OK", "schema": { "$ref": "#/definitions/SecurityContact" @@ -157,7 +163,7 @@ "tags": [ "Security Contacts" ], - "description": "Security contact configurations for the subscription", + "description": "Delete security contact configurations for the subscription", "operationId": "SecurityContacts_Delete", "parameters": [ { From 2e3e62bb4b551d503cc25c44d893f2ae0871eddd Mon Sep 17 00:00:00 2001 From: Oved Chitayat Date: Sun, 31 Jan 2021 14:33:35 +0200 Subject: [PATCH 2/2] add request body to SecurityContacts PUT --- .../SecurityContacts/CreateSecurityContact_example.json | 3 --- .../preview/2020-01-01-preview/securityContacts.json | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json index cdab0f2d8183..c308225b7aee 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/examples/SecurityContacts/CreateSecurityContact_example.json @@ -4,9 +4,6 @@ "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "securityContactName": "default", "securityContact": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/securityContacts/default", - "name": "default", - "type": "Microsoft.Security/securityContacts", "properties": { "notificationsByRole": { "state": "On", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json index d1d2379c5636..ba8c3dda845b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-01-01-preview/securityContacts.json @@ -131,6 +131,9 @@ }, { "$ref": "#/parameters/SecurityContactName" + }, + { + "$ref": "#/parameters/SecurityContact" } ], "responses": {