From 71c44dedd9f0198c58cd41116613ea13662d27fe Mon Sep 17 00:00:00 2001 From: Liran Chen <1437075+liranc@users.noreply.github.com> Date: Thu, 6 Aug 2020 08:42:03 +0300 Subject: [PATCH 01/24] Adds base for updating Microsoft.Security from version stable/2020-01-01 to version 2020-08-06-preview --- .../2020-08-06-preview/SecuritySolutions.json | 238 ++++ .../adaptiveNetworkHardenings.json | 412 +++++++ .../allowedConnections.json | 297 +++++ .../applicationWhitelistings.json | 584 ++++++++++ .../assessmentMetadata.json | 561 +++++++++ .../2020-08-06-preview/assessments.json | 399 +++++++ .../discoveredSecuritySolutions.json | 263 +++++ ...AdaptiveNetworkHardeningRules_example.json | 50 + .../GetAdaptiveNetworkHardening_example.json | 62 + ...urceAdaptiveNetworkHardenings_example.json | 65 ++ ...nnectionsSubscriptionLocation_example.json | 65 ++ ...llowedConnectionsSubscription_example.json | 64 + .../GetAllowedConnections_example.json | 63 + ...teAdaptiveApplicationControls_example.json | 13 + ...ptiveApplicationControlsGroup_example.json | 132 +++ ...plicationControlsSubscription_example.json | 1028 +++++++++++++++++ ...utAdaptiveApplicationControls_example.json | 229 ++++ .../Assessments/DeleteAssessment_example.json | 11 + .../GetAssessmentWithExpand_example.json | 35 + .../Assessments/GetAssessment_example.json | 31 + .../Assessments/ListAssessments_example.json | 49 + .../Assessments/PutAssessment_example.json | 53 + ...essmentsMetadata_subscription_example.json | 53 + ...essmentsMetadata_subscription_example.json | 10 + .../GetAssessmentsMetadata_example.json | 33 + ...essmentsMetadata_subscription_example.json | 34 + .../ListAssessmentsMetadata_example.json | 78 ++ ...essmentsMetadata_subscription_example.json | 61 + ...SolutionResourceGroupLocation_example.json | 25 + ...SolutionsSubscriptionLocation_example.json | 39 + ...SecuritySolutionsSubscription_example.json | 38 + .../GetExternalSecuritySolution_example.json | 28 + ...SolutionsSubscriptionLocation_example.json | 123 ++ ...SecuritySolutionsSubscription_example.json | 122 ++ .../CreateJitNetworkAccessPolicy_example.json | 111 ++ .../DeleteJitNetworkAccessPolicy_example.json | 13 + ...PoliciesResourceGroupLocation_example.json | 66 ++ ...rkAccessPoliciesResourceGroup_example.json | 65 ++ ...sPoliciesSubscriptionLocation_example.json | 65 ++ ...orkAccessPoliciesSubscription_example.json | 64 + .../GetJitNetworkAccessPolicy_example.json | 63 + ...nitiateJitNetworkAccessPolicy_example.json | 48 + ...olutionsResourceGroupLocation_example.json | 25 + ...SecuritySolutionsSubscription_example.json | 38 + ...renceDataSubscriptionLocation_example.json | 43 + ...ionsReferenceDataSubscription_example.json | 42 + ...erverVulnerabilityAssessments_example.json | 28 + ...erverVulnerabilityAssessments_example.json | 15 + ...erverVulnerabilityAssessments_example.json | 23 + ...erverVulnerabilityAssessments_example.json | 26 + ...tTopologySubscriptionLocation_example.json | 63 + .../GetTopologySubscription_example.json | 62 + .../Topology/GetTopology_example.json | 37 + .../externalSecuritySolutions.json | 388 +++++++ .../jitNetworkAccessPolicies.json | 770 ++++++++++++ .../securitySolutionsReferenceData.json | 212 ++++ .../serverVulnerabilityAssessments.json | 351 ++++++ .../2020-08-06-preview/topologies.json | 301 +++++ 58 files changed, 8267 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json new file mode 100644 index 000000000000..0c1bbb667ab3 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json @@ -0,0 +1,238 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/securitySolutions": { + "get": { + "x-ms-examples": { + "Get security solutions": { + "$ref": "./examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json" + } + }, + "tags": [ + "SecuritySolutions" + ], + "description": "Gets a list of Security Solutions for the subscription.", + "operationId": "SecuritySolutions_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecuritySolutionList" + } + }, + "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/locations/{ascLocation}/securitySolutions/{securitySolutionName}": { + "get": { + "x-ms-examples": { + "Get a security solution from a security data location": { + "$ref": "./examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json" + } + }, + "tags": [ + "SecuritySolutions" + ], + "description": "Gets a specific Security Solution.", + "operationId": "SecuritySolutions_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/SecuritySolutionName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecuritySolution" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SecuritySolutionList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SecuritySolution" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "SecuritySolution": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecuritySolutionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "SecuritySolutionProperties": { + "type": "object", + "properties": { + "securityFamily": { + "type": "string", + "description": "The security family of the security solution", + "enum": [ + "Waf", + "Ngfw", + "SaasWaf", + "Va" + ], + "x-ms-enum": { + "name": "securityFamily", + "modelAsString": true, + "values": [ + { + "value": "Waf" + }, + { + "value": "Ngfw" + }, + { + "value": "SaasWaf" + }, + { + "value": "Va" + } + ] + } + }, + "provisioningState": { + "type": "string", + "description": "The security family provisioning State", + "enum": [ + "Succeeded", + "Failed", + "Updating" + ], + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true, + "values": [ + { + "value": "Succeeded" + }, + { + "value": "Failed" + }, + { + "value": "Updating" + } + ] + } + }, + "template": { + "type": "string", + "description": "The security solutions' template" + }, + "protectionStatus": { + "type": "string", + "description": "The security solutions' status" + } + }, + "required": [ + "securityFamily", + "provisioningState", + "template", + "protectionStatus" + ] + } + }, + "parameters": { + "SecuritySolutionName": { + "name": "securitySolutionName", + "type": "string", + "in": "path", + "required": true, + "description": "Name of security solution.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json new file mode 100644 index 000000000000..df4f9737d4e8 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json @@ -0,0 +1,412 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings": { + "get": { + "x-ms-examples": { + "List Adaptive Network Hardenings resources of an extended resource": { + "$ref": "./examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json" + } + }, + "description": "Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.", + "tags": [ + "AdaptiveNetworkHardenings" + ], + "operationId": "AdaptiveNetworkHardenings_ListByExtendedResource", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdaptiveNetworkHardeningsList" + } + }, + "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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}": { + "get": { + "x-ms-examples": { + "Get a single Adaptive Network Hardening resource": { + "$ref": "./examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json" + } + }, + "tags": [ + "AdaptiveNetworkHardenings" + ], + "description": "Gets a single Adaptive Network Hardening resource", + "operationId": "AdaptiveNetworkHardenings_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/AdaptiveNetworkHardeningResourceName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdaptiveNetworkHardening" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}": { + "post": { + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Enforces the given rules on the NSG(s) listed in the request": { + "$ref": "./examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json" + } + }, + "tags": [ + "AdaptiveNetworkHardenings" + ], + "description": "Enforces the given rules on the NSG(s) listed in the request", + "operationId": "AdaptiveNetworkHardenings_Enforce", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/AdaptiveNetworkHardeningResourceName" + }, + { + "$ref": "#/parameters/AdaptiveNetworkHardeningEnforceAction" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AdaptiveNetworkHardeningEnforceRequest" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "PortNumber": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "Rule": { + "description": "Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked", + "properties": { + "name": { + "description": "The name of the rule", + "type": "string" + }, + "direction": { + "description": "The rule's direction", + "type": "string", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "direction", + "modelAsString": true + } + }, + "destinationPort": { + "description": "The rule's destination port", + "$ref": "#/definitions/PortNumber" + }, + "protocols": { + "description": "The rule's transport protocols", + "type": "array", + "items": { + "type": "string", + "enum": [ + "TCP", + "UDP" + ], + "x-ms-enum": { + "name": "transportProtocol", + "modelAsString": true + } + } + }, + "ipAddresses": { + "description": "The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "EffectiveNetworkSecurityGroups": { + "description": "Describes the Network Security Groups effective on a network interface", + "properties": { + "networkInterface": { + "description": "The Azure resource ID of the network interface", + "type": "string" + }, + "networkSecurityGroups": { + "description": "The Network Security Groups effective on the network interface", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AdaptiveNetworkHardeningProperties": { + "description": "Adaptive Network Hardening resource properties", + "properties": { + "rules": { + "description": "The security rules which are recommended to be effective on the VM", + "type": "array", + "items": { + "$ref": "#/definitions/Rule" + } + }, + "rulesCalculationTime": { + "type": "string", + "format": "date-time", + "description": "The UTC time on which the rules were calculated" + }, + "effectiveNetworkSecurityGroups": { + "description": "The Network Security Groups effective on the network interfaces of the protected resource", + "type": "array", + "items": { + "$ref": "#/definitions/EffectiveNetworkSecurityGroups" + } + } + } + }, + "AdaptiveNetworkHardening": { + "description": "The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource", + "properties": { + "properties": { + "description": "Properties of the Adaptive Network Hardening resource", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AdaptiveNetworkHardeningProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "AdaptiveNetworkHardeningsList": { + "description": "Response for ListAdaptiveNetworkHardenings API service call", + "properties": { + "value": { + "description": "A list of Adaptive Network Hardenings resources", + "type": "array", + "items": { + "$ref": "#/definitions/AdaptiveNetworkHardening" + } + }, + "nextLink": { + "description": "The URL to get the next set of results", + "type": "string" + } + } + }, + "AdaptiveNetworkHardeningEnforceRequest": { + "type": "object", + "properties": { + "rules": { + "type": "array", + "description": "The rules to enforce", + "items": { + "$ref": "#/definitions/Rule" + } + }, + "networkSecurityGroups": { + "type": "array", + "description": "The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules", + "items": { + "type": "string" + } + } + }, + "required": [ + "rules", + "networkSecurityGroups" + ] + } + }, + "parameters": { + "AdaptiveNetworkHardeningResourceName": { + "name": "adaptiveNetworkHardeningResourceName", + "in": "path", + "description": "The name of the Adaptive Network Hardening resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "AdaptiveNetworkHardeningEnforceAction": { + "name": "adaptiveNetworkHardeningEnforceAction", + "type": "string", + "in": "path", + "required": true, + "description": "Enforces the given rules on the NSG(s) listed in the request", + "enum": [ + "enforce" + ], + "x-ms-parameter-location": "method" + }, + "AdaptiveNetworkHardeningEnforceRequest": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdaptiveNetworkHardeningEnforceRequest" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json new file mode 100644 index 000000000000..377faa308c52 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json @@ -0,0 +1,297 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/allowedConnections": { + "get": { + "x-ms-examples": { + "Get allowed connections on a subscription": { + "$ref": "./examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json" + } + }, + "tags": [ + "AllowedConnections" + ], + "description": "Gets the list of all possible traffic between resources for the subscription", + "operationId": "AllowedConnections_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AllowedConnectionsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections": { + "get": { + "x-ms-examples": { + "Get allowed connections on a subscription from security data location": { + "$ref": "./examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json" + } + }, + "tags": [ + "AllowedConnections" + ], + "description": "Gets the list of all possible traffic between resources for the subscription and location.", + "operationId": "AllowedConnections_ListByHomeRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AllowedConnectionsList" + } + }, + "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/locations/{ascLocation}/allowedConnections/{connectionType}": { + "get": { + "x-ms-examples": { + "Get allowed connections": { + "$ref": "./examples/AllowedConnections/GetAllowedConnections_example.json" + } + }, + "tags": [ + "AllowedConnections" + ], + "description": "Gets the list of all possible traffic between resources for the subscription and location, based on connection type.", + "operationId": "AllowedConnections_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/ConnectionType" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AllowedConnectionsResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "AllowedConnectionsList": { + "type": "object", + "description": "List of all possible traffic between Azure resources", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/AllowedConnectionsResource" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "AllowedConnectionsResource": { + "type": "object", + "description": "The resource whose properties describes the allowed traffic between Azure resources", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "readOnly": true, + "$ref": "#/definitions/AllowedConnectionsResourceProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "AllowedConnectionsResourceProperties": { + "type": "object", + "description": "Describes the allowed traffic between Azure resources", + "properties": { + "calculatedDateTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The UTC time on which the allowed connections resource was calculated" + }, + "connectableResources": { + "type": "array", + "readOnly": true, + "description": "List of connectable resources", + "items": { + "$ref": "#/definitions/ConnectableResource" + } + } + } + }, + "ConnectableResource": { + "type": "object", + "description": "Describes the allowed inbound and outbound traffic of an Azure resource", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The Azure resource id" + }, + "inboundConnectedResources": { + "type": "array", + "readOnly": true, + "description": "The list of Azure resources that the resource has inbound allowed connection from", + "items": { + "$ref": "#/definitions/ConnectedResource" + } + }, + "outboundConnectedResources": { + "type": "array", + "readOnly": true, + "description": "The list of Azure resources that the resource has outbound allowed connection to", + "items": { + "$ref": "#/definitions/ConnectedResource" + } + } + } + }, + "ConnectedResource": { + "type": "object", + "description": "Describes properties of a connected resource", + "properties": { + "connectedResourceId": { + "type": "string", + "readOnly": true, + "description": "The Azure resource id of the connected resource" + }, + "tcpPorts": { + "type": "string", + "readOnly": true, + "description": "The allowed tcp ports" + }, + "udpPorts": { + "type": "string", + "readOnly": true, + "description": "The allowed udp ports" + } + } + } + }, + "parameters": { + "ConnectionType": { + "name": "connectionType", + "type": "string", + "in": "path", + "description": "The type of allowed connections (Internal, External)", + "required": true, + "enum": [ + "Internal", + "External" + ], + "x-ms-enum": { + "name": "connectionType", + "modelAsString": true, + "values": [ + { + "value": "Internal" + }, + { + "value": "External" + } + ] + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json new file mode 100644 index 000000000000..4bfa1d9d474d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json @@ -0,0 +1,584 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/applicationWhitelistings": { + "get": { + "description": "Gets a list of application control machine groups for the subscription.", + "operationId": "AdaptiveApplicationControls_List", + "x-ms-examples": { + "Gets a list of application control groups of machines for the subscription": { + "$ref": "./examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json" + } + }, + "tags": [ + "applicationWhitelistings" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/IncludePathRecommendations" + }, + { + "$ref": "#/parameters/Summary" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdaptiveApplicationControlGroups" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}": { + "get": { + "description": "Gets an application control VM/server group.", + "operationId": "AdaptiveApplicationControls_Get", + "x-ms-examples": { + "Gets a configured application control VM/server group": { + "$ref": "./examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json" + } + }, + "tags": [ + "applicationWhitelistings" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/GroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdaptiveApplicationControlGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "applicationWhitelistings" + ], + "x-ms-examples": { + "Update an application control machine group by adding a new application": { + "$ref": "./examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json" + } + }, + "description": "Update an application control machine group", + "operationId": "AdaptiveApplicationControls_Put", + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/GroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AdaptiveApplicationControlGroup" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AdaptiveApplicationControlGroup" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete an application control machine group": { + "$ref": "./examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json" + } + }, + "tags": [ + "applicationWhitelistings" + ], + "description": "Delete an application control machine group", + "operationId": "AdaptiveApplicationControls_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/GroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK - The response indicates that the delete operation completed successfully" + }, + "202": { + "description": "Accepted. The response indicates the delete operation is performed in the background." + }, + "204": { + "description": "No Content. The response indicates the resource is already deleted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "AdaptiveApplicationControlGroups": { + "type": "object", + "description": "Represents a list of machine groups and set of rules that are recommended by Azure Security Center to be allowed", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AdaptiveApplicationControlGroup" + } + } + } + }, + "AdaptiveApplicationControlGroup": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AdaptiveApplicationControlGroupData" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "AdaptiveApplicationControlGroupData": { + "type": "object", + "description": "Represents a machines group and set of rules to be allowed running on a machine", + "properties": { + "enforcementMode": { + "$ref": "#/definitions/EnforcementMode" + }, + "protectionMode": { + "$ref": "#/definitions/ProtectionMode" + }, + "configurationStatus": { + "readOnly": true, + "$ref": "#/definitions/ConfigurationStatus" + }, + "recommendationStatus": { + "readOnly": true, + "$ref": "#/definitions/RecommendationStatus" + }, + "issues": { + "readOnly": true, + "$ref": "#/definitions/AdaptiveApplicationControlIssuesSummaries" + }, + "sourceSystem": { + "readOnly": true, + "$ref": "#/definitions/SourceSystem" + }, + "vmRecommendations": { + "$ref": "#/definitions/VmRecommendations" + }, + "pathRecommendations": { + "$ref": "#/definitions/PathRecommendations" + } + } + }, + "ConfigurationStatus": { + "type": "string", + "description": "The configuration status of the machines group or machine or rule", + "enum": [ + "Configured", + "NotConfigured", + "InProgress", + "Failed", + "NoStatus" + ] + }, + "EnforcementMode": { + "type": "string", + "description": "The application control policy enforcement/protection mode of the machine group", + "enum": [ + "Audit", + "Enforce", + "None" + ] + }, + "EnforcementSupport": { + "type": "string", + "description": "The machine supportability of Enforce feature", + "enum": [ + "Supported", + "NotSupported", + "Unknown" + ] + }, + "ProtectionMode": { + "type": "object", + "description": "The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.", + "properties": { + "exe": { + "$ref": "#/definitions/EnforcementMode" + }, + "msi": { + "$ref": "#/definitions/EnforcementMode" + }, + "script": { + "$ref": "#/definitions/EnforcementMode" + }, + "executable": { + "$ref": "#/definitions/EnforcementMode" + } + } + }, + "RecommendationStatus": { + "type": "string", + "description": "The initial recommendation status of the machine group or machine", + "enum": [ + "Recommended", + "NotRecommended", + "NotAvailable", + "NoStatus" + ] + }, + "RecommendationAction": { + "type": "string", + "description": "The recommendation action of the machine or rule", + "enum": [ + "Recommended", + "Add", + "Remove" + ] + }, + "RecommendationType": { + "type": "string", + "description": "The type of the rule to be allowed", + "enum": [ + "File", + "FileHash", + "PublisherSignature", + "ProductSignature", + "BinarySignature", + "VersionAndAboveSignature" + ] + }, + "AdaptiveApplicationControlIssue": { + "type": "string", + "description": "An alert that machines within a group can have", + "enum": [ + "ViolationsAudited", + "ViolationsBlocked", + "MsiAndScriptViolationsAudited", + "MsiAndScriptViolationsBlocked", + "ExecutableViolationsAudited", + "RulesViolatedManually" + ] + }, + "FileType": { + "type": "string", + "description": "The type of the file (for Linux files - Executable is used)", + "enum": [ + "Exe", + "Dll", + "Msi", + "Script", + "Executable", + "Unknown" + ] + }, + "SourceSystem": { + "type": "string", + "description": "The source type of the machine group", + "enum": [ + "Azure_AppLocker", + "Azure_AuditD", + "NonAzure_AppLocker", + "NonAzure_AuditD", + "None" + ] + }, + "AdaptiveApplicationControlIssueSummary": { + "type": "object", + "description": "Represents a summary of the alerts of the machine group", + "properties": { + "issue": { + "$ref": "#/definitions/AdaptiveApplicationControlIssue" + }, + "numberOfVms": { + "type": "number", + "description": "The number of machines in the group that have this alert" + } + } + }, + "AdaptiveApplicationControlIssuesSummaries": { + "type": "array", + "items": { + "$ref": "#/definitions/AdaptiveApplicationControlIssueSummary" + } + }, + "VmRecommendations": { + "type": "array", + "items": { + "$ref": "#/definitions/VmRecommendation" + } + }, + "VmRecommendation": { + "type": "object", + "description": "Represents a machine that is part of a machine group", + "properties": { + "configurationStatus": { + "$ref": "#/definitions/ConfigurationStatus" + }, + "recommendationAction": { + "$ref": "#/definitions/RecommendationAction" + }, + "resourceId": { + "$ref": "#/definitions/VmResourceId" + }, + "enforcementSupport": { + "$ref": "#/definitions/EnforcementSupport" + } + } + }, + "PublisherInfo": { + "type": "object", + "description": "Represents the publisher information of a process/rule", + "properties": { + "publisherName": { + "type": "string", + "description": "The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, S = State or Province, and C = Country", + "example": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US" + }, + "productName": { + "type": "string", + "description": "The product name taken from the file's version resource", + "example": "GOOGLE CHROME" + }, + "binaryName": { + "type": "string", + "description": "The \"OriginalName\" field taken from the file's version resource", + "example": "CHROME.EXE" + }, + "version": { + "type": "string", + "description": "The binary file version taken from the file's version resource", + "example": "66.0.3359.139" + } + } + }, + "UserRecommendation": { + "type": "object", + "description": "Represents a user that is recommended to be allowed for a certain rule", + "properties": { + "username": { + "type": "string", + "description": "Represents a user that is recommended to be allowed for a certain rule", + "example": "LOCAL SYSTEM" + }, + "recommendationAction": { + "$ref": "#/definitions/RecommendationAction" + } + } + }, + "PathRecommendations": { + "type": "array", + "items": { + "$ref": "#/definitions/PathRecommendation" + } + }, + "PathRecommendation": { + "type": "object", + "description": "Represents a path that is recommended to be allowed and its properties", + "properties": { + "path": { + "type": "string", + "description": "The full path of the file, or an identifier of the application", + "example": "C:\\Windows\\System32\\calc.exe" + }, + "action": { + "$ref": "#/definitions/RecommendationAction" + }, + "type": { + "$ref": "#/definitions/RecommendationType" + }, + "publisherInfo": { + "$ref": "#/definitions/PublisherInfo" + }, + "common": { + "type": "boolean", + "description": "Whether the application is commonly run on the machine" + }, + "userSids": { + "type": "array", + "items": { + "type": "string", + "description": "A security identifier", + "example": "S-1-5-18" + } + }, + "usernames": { + "type": "array", + "items": { + "$ref": "#/definitions/UserRecommendation" + } + }, + "fileType": { + "$ref": "#/definitions/FileType" + }, + "configurationStatus": { + "$ref": "#/definitions/ConfigurationStatus" + } + } + }, + "GroupResourceId": { + "type": "string", + "description": "The azure resource id of the application control machine group", + "example": "/subscriptions/12345678-1234-1234-1234-123456789123/providers/Microsoft.Security/applicationWhitelistings/GROUP1" + }, + "VmResourceId": { + "type": "string", + "description": "The full resource id of the machine", + "example": "/subscriptions/12345678-1234-1234-1234-123456789123/resourcegroups/group/providers/microsoft.compute/virtualmachines/vm" + } + }, + "parameters": { + "GroupName": { + "name": "groupName", + "in": "path", + "description": "Name of an application control machine group", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "IncludePathRecommendations": { + "name": "includePathRecommendations", + "in": "query", + "description": "Include the policy rules", + "type": "boolean", + "required": false, + "enum": [ + false, + true + ], + "x-ms-parameter-location": "method" + }, + "Summary": { + "name": "summary", + "in": "query", + "description": "Return output in a summarized form", + "type": "boolean", + "required": false, + "enum": [ + false, + true + ], + "x-ms-parameter-location": "method" + }, + "AdaptiveApplicationControlGroup": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdaptiveApplicationControlGroup" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json new file mode 100644 index 000000000000..47a2a8e0c452 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json @@ -0,0 +1,561 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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": { + "/providers/Microsoft.Security/assessmentMetadata": { + "get": { + "x-ms-examples": { + "List security assessment metadata": { + "$ref": "./examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Get metadata information on all assessment types", + "operationId": "AssessmentsMetadata_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}": { + "get": { + "x-ms-examples": { + "Get security assessment metadata": { + "$ref": "./examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Get metadata information on an assessment type", + "operationId": "AssessmentsMetadata_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AssessmentsMetadataName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata": { + "get": { + "x-ms-examples": { + "List security assessment metadata for subscription": { + "$ref": "./examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Get metadata information on all assessment types in a specific subscription", + "operationId": "AssessmentsMetadata_ListBySubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}": { + "get": { + "x-ms-examples": { + "Get security assessment metadata for subscription": { + "$ref": "./examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Get metadata information on an assessment type in a specific subscription", + "operationId": "AssessmentsMetadata_GetInSubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AssessmentsMetadataName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create security assessment metadata for subscription": { + "$ref": "./examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Create metadata information on an assessment type in a specific subscription", + "operationId": "AssessmentsMetadata_CreateInSubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AssessmentsMetadataName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/SecurityAssessmentMetadata" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a security assessment metadata for subscription": { + "$ref": "./examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json" + } + }, + "tags": [ + "Assessments Metadata" + ], + "description": "Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription", + "operationId": "AssessmentsMetadata_DeleteInSubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/AssessmentsMetadataName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SecurityAssessmentMetadataList": { + "type": "object", + "description": "List of security assessment metadata", + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SecurityAssessmentMetadata" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "SecurityAssessmentMetadata": { + "type": "object", + "description": "Security assessment metadata", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecurityAssessmentMetadataProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "SecurityAssessmentMetadataProperties": { + "type": "object", + "description": "Describes properties of an assessment metadata.", + "properties": { + "displayName": { + "type": "string", + "description": "User friendly display name of the assessment" + }, + "policyDefinitionId": { + "readOnly": true, + "type": "string", + "description": "Azure resource ID of the policy definition that turns this assessment calculation on" + }, + "description": { + "type": "string", + "description": "Human readable description of the assessment" + }, + "remediationDescription": { + "type": "string", + "description": "Human readable description of what you should do to mitigate this security issue" + }, + "category": { + "type": "array", + "items": { + "type": "string", + "description": "The category of resource that is at risk when the assessment is unhealthy", + "enum": [ + "Compute", + "Networking", + "Data", + "IdentityAndAccess", + "IoT" + ], + "x-ms-enum": { + "name": "category", + "modelAsString": true, + "values": [ + { + "value": "Compute" + }, + { + "value": "Networking" + }, + { + "value": "Data" + }, + { + "value": "IdentityAndAccess" + }, + { + "value": "IoT" + } + ] + } + } + }, + "severity": { + "type": "string", + "description": "The severity level of the assessment", + "enum": [ + "Low", + "Medium", + "High" + ], + "x-ms-enum": { + "name": "severity", + "modelAsString": true, + "values": [ + { + "value": "Low" + }, + { + "value": "Medium" + }, + { + "value": "High" + } + ] + } + }, + "userImpact": { + "type": "string", + "description": "The user impact of the assessment", + "enum": [ + "Low", + "Moderate", + "High" + ], + "x-ms-enum": { + "name": "userImpact", + "modelAsString": true, + "values": [ + { + "value": "Low" + }, + { + "value": "Moderate" + }, + { + "value": "High" + } + ] + } + }, + "implementationEffort": { + "type": "string", + "description": "The implementation effort required to remediate this assessment", + "enum": [ + "Low", + "Moderate", + "High" + ], + "x-ms-enum": { + "name": "implementationEffort", + "modelAsString": true, + "values": [ + { + "value": "Low" + }, + { + "value": "Moderate" + }, + { + "value": "High" + } + ] + } + }, + "threats": { + "type": "array", + "items": { + "type": "string", + "description": "Threats impact of the assessment", + "enum": [ + "accountBreach", + "dataExfiltration", + "dataSpillage", + "maliciousInsider", + "elevationOfPrivilege", + "threatResistance", + "missingCoverage", + "denialOfService" + ], + "x-ms-enum": { + "name": "threats", + "modelAsString": true, + "values": [ + { + "value": "accountBreach" + }, + { + "value": "dataExfiltration" + }, + { + "value": "dataSpillage" + }, + { + "value": "maliciousInsider" + }, + { + "value": "elevationOfPrivilege" + }, + { + "value": "threatResistance" + }, + { + "value": "missingCoverage" + }, + { + "value": "denialOfService" + } + ] + } + } + }, + "preview": { + "type": "boolean", + "description": "True if this assessment is in preview release status" + }, + "assessmentType": { + "type": "string", + "description": "BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition", + "enum": [ + "BuiltIn", + "CustomPolicy", + "CustomerManaged", + "VerifiedPartner" + ], + "x-ms-enum": { + "name": "assessmentType", + "modelAsString": true, + "values": [ + { + "value": "BuiltIn", + "description": "Azure Security Center managed assessments" + }, + { + "value": "CustomPolicy", + "description": "User defined policies that are automatically ingested from Azure Policy to Azure Security Center" + }, + { + "value": "CustomerManaged", + "description": "User assessments pushed directly by the user or other third party to Azure Security Center" + }, + { + "value": "VerifiedPartner", + "description": "An assessment that was created by a verified 3rd party if the user connected it to ASC" + } + ] + } + }, + "partnerData": { + "$ref": "#/definitions/SecurityAssessmentMetadataPartnerData" + } + }, + "required": [ + "displayName", + "severity", + "assessmentType" + ] + }, + "SecurityAssessmentMetadataPartnerData": { + "type": "object", + "description": "Describes the partner that created the assessment", + "properties": { + "partnerName": { + "type": "string", + "description": "Name of the company of the partner" + }, + "productName": { + "type": "string", + "description": "Name of the product of the partner that created the assessment" + }, + "secret": { + "type": "string", + "description": "Secret to authenticate the partner and verify it created the assessment - write only", + "x-ms-secret": true + } + }, + "required": [ + "partnerName", + "secret" + ] + } + }, + "parameters": { + "AssessmentsMetadataName": { + "name": "assessmentMetadataName", + "in": "path", + "required": true, + "type": "string", + "description": "The Assessment Key - Unique key for the assessment type", + "x-ms-parameter-location": "method" + }, + "SecurityAssessmentMetadata": { + "name": "assessmentMetadata", + "in": "body", + "required": true, + "description": "AssessmentMetadata object", + "schema": { + "$ref": "#/definitions/SecurityAssessmentMetadata" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json new file mode 100644 index 000000000000..f3f48a5a6f61 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json @@ -0,0 +1,399 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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": { + "/{scope}/providers/Microsoft.Security/assessments": { + "get": { + "x-ms-examples": { + "List security assessments": { + "$ref": "./examples/Assessments/ListAssessments_example.json" + } + }, + "tags": [ + "Assessments" + ], + "description": "Get security assessments on all your scanned resources inside a scope", + "operationId": "Assessments_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/Scope" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}": { + "get": { + "x-ms-examples": { + "Get security recommendation task from security data location": { + "$ref": "./examples/Assessments/GetAssessment_example.json" + }, + "Get security recommendation task from security data location with expand parameter": { + "$ref": "./examples/Assessments/GetAssessmentWithExpand_example.json" + } + }, + "tags": [ + "Assessments" + ], + "description": "Get a security assessment on your scanned resource", + "operationId": "Assessments_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceId" + }, + { + "$ref": "#/parameters/AssessmentName" + }, + { + "$ref": "#/parameters/ExpandAssessments" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create security recommendation task on a resource": { + "$ref": "./examples/Assessments/PutAssessment_example.json" + } + }, + "tags": [ + "Assessments" + ], + "description": "Create a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result", + "operationId": "Assessments_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceId" + }, + { + "$ref": "#/parameters/AssessmentName" + }, + { + "$ref": "#/parameters/AssessmentBody" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SecurityAssessment" + } + }, + "200": { + "description": "OK - Updated", + "schema": { + "$ref": "#/definitions/SecurityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a security recommendation task on a resource": { + "$ref": "./examples/Assessments/DeleteAssessment_example.json" + } + }, + "tags": [ + "Assessments" + ], + "description": "Delete a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result", + "operationId": "Assessments_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceId" + }, + { + "$ref": "#/parameters/AssessmentName" + } + ], + "responses": { + "200": { + "description": "OK - Assessment was deleted" + }, + "204": { + "description": "No Content - Assessment does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SecurityAssessmentList": { + "type": "object", + "description": "Page of a security assessments list", + "properties": { + "value": { + "description": "Collection of security assessments in this page", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/SecurityAssessment" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "SecurityAssessment": { + "type": "object", + "description": "Security assessment on a resource", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SecurityAssessmentProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "SecurityAssessmentProperties": { + "type": "object", + "description": "Describes properties of an assessment.", + "properties": { + "resourceDetails": { + "$ref": "../../../common/v1/types.json#/definitions/ResourceDetails" + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "User friendly display name of the assessment" + }, + "status": { + "$ref": "#/definitions/AssessmentStatus" + }, + "additionalData": { + "type": "object", + "description": "Additional data regarding the assessment", + "additionalProperties": { + "type": "string" + } + }, + "links": { + "$ref": "#/definitions/AssessmentLinks" + }, + "metadata": { + "$ref": "./assessmentMetadata.json#/definitions/SecurityAssessmentMetadataProperties" + }, + "partnersData": { + "$ref": "#/definitions/SecurityAssessmentPartnerData" + } + }, + "required": [ + "resourceDetails", + "status" + ] + }, + "SecurityAssessmentPartnerData": { + "type": "object", + "description": "Data regarding 3rd party partner integration", + "properties": { + "partnerName": { + "type": "string", + "description": "Name of the company of the partner" + }, + "secret": { + "type": "string", + "description": "secret to authenticate the partner - write only", + "x-ms-secret": true + } + }, + "required": [ + "partnerName", + "secret" + ] + }, + "AssessmentLinks": { + "type": "object", + "description": "Links relevant to the assessment", + "readOnly": true, + "properties": { + "azurePortalUri": { + "type": "string", + "description": "Link to assessment in Azure Portal", + "readOnly": true + } + } + }, + "AssessmentStatus": { + "type": "object", + "description": "The result of the assessment", + "properties": { + "code": { + "type": "string", + "description": "Programmatic code for the status of the assessment", + "enum": [ + "Healthy", + "Unhealthy", + "NotApplicable" + ], + "x-ms-enum": { + "name": "AssessmentStatusCode", + "modelAsString": true, + "values": [ + { + "value": "Healthy", + "description": "The resource is healthy" + }, + { + "value": "Unhealthy", + "description": "The resource has a security issue that needs to be addressed" + }, + { + "value": "NotApplicable", + "description": "Assessment for this resource did not happen" + } + ] + } + }, + "cause": { + "type": "string", + "description": "Programmatic code for the cause of the assessment status" + }, + "description": { + "type": "string", + "description": "Human readable description of the assessment status" + } + }, + "required": [ + "code" + ] + } + }, + "parameters": { + "ExpandAssessments": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "OData expand. Optional.", + "x-ms-parameter-location": "method", + "enum": [ + "links", + "metadata" + ], + "x-ms-enum": { + "name": "ExpandEnum", + "modelAsString": true, + "values": [ + { + "value": "links", + "description": "All links associated with an assessment" + }, + { + "value": "metadata", + "description": "Assessment metadata" + } + ] + } + }, + "AssessmentName": { + "name": "assessmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The Assessment Key - Unique key for the assessment type", + "x-ms-parameter-location": "method" + }, + "AssessmentBody": { + "name": "assessment", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityAssessment" + }, + "description": "Calculated assessment on a pre-defined assessment metadata", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json new file mode 100644 index 000000000000..ea7a8b9984c1 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json @@ -0,0 +1,263 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/discoveredSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get discovered security solutions": { + "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json" + } + }, + "tags": [ + "DiscoveredSecuritySolutions" + ], + "description": "Gets a list of discovered Security Solutions for the subscription.", + "operationId": "DiscoveredSecuritySolutions_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiscoveredSecuritySolutionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get discovered security solutions from a security data location": { + "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json" + } + }, + "tags": [ + "DiscoveredSecuritySolutions" + ], + "description": "Gets a list of discovered Security Solutions for the subscription and location.", + "operationId": "DiscoveredSecuritySolutions_ListByHomeRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiscoveredSecuritySolutionList" + } + }, + "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/locations/{ascLocation}/discoveredSecuritySolutions/{discoveredSecuritySolutionName}": { + "get": { + "x-ms-examples": { + "Get discovered security solution from a security data location": { + "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json" + } + }, + "tags": [ + "DiscoveredSecuritySolutions" + ], + "description": "Gets a specific discovered Security Solution.", + "operationId": "DiscoveredSecuritySolutions_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/DiscoveredSecuritySolutionName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiscoveredSecuritySolution" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "DiscoveredSecuritySolutionList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DiscoveredSecuritySolution" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "DiscoveredSecuritySolution": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DiscoveredSecuritySolutionProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "DiscoveredSecuritySolutionProperties": { + "type": "object", + "properties": { + "securityFamily": { + "type": "string", + "description": "The security family of the discovered solution", + "enum": [ + "Waf", + "Ngfw", + "SaasWaf", + "Va" + ], + "x-ms-enum": { + "name": "securityFamily", + "modelAsString": true, + "values": [ + { + "value": "Waf" + }, + { + "value": "Ngfw" + }, + { + "value": "SaasWaf" + }, + { + "value": "Va" + } + ] + } + }, + "offer": { + "type": "string", + "description": "The security solutions' image offer" + }, + "publisher": { + "type": "string", + "description": "The security solutions' image publisher" + }, + "sku": { + "type": "string", + "description": "The security solutions' image sku" + } + }, + "required": [ + "securityFamily", + "offer", + "publisher", + "sku" + ] + } + }, + "parameters": { + "DiscoveredSecuritySolutionName": { + "name": "discoveredSecuritySolutionName", + "type": "string", + "in": "path", + "required": true, + "description": "Name of a discovered security solution.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json new file mode 100644 index 000000000000..dcaf5b9bdbbe --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "adaptiveNetworkHardeningResourceName": "default", + "adaptiveNetworkHardeningEnforceAction": "enforce", + "body": { + "rules": [ + { + "name": "rule1", + "direction": "Inbound", + "destinationPort": 3389, + "protocols": [ + "TCP" + ], + "ipAddresses": [ + "100.10.1.1", + "200.20.2.2", + "81.199.3.0/24" + ] + }, + { + "name": "rule2", + "direction": "Inbound", + "destinationPort": 22, + "protocols": [ + "TCP" + ], + "ipAddresses": [] + } + ], + "networkSecurityGroups": [ + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2" + ] + } + }, + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json new file mode 100644 index 000000000000..be1d1f990c52 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "adaptiveNetworkHardeningResourceName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings/default", + "name": "default", + "type": "Microsoft.Security/adaptiveNetworkHardenings", + "properties": { + "rulesCalculationTime": "2018-08-15T00:00:00.0000000Z", + "rules": [ + { + "name": "rule1", + "direction": "Inbound", + "destinationPort": 3389, + "protocols": [ + "TCP" + ], + "ipAddresses": [ + "100.10.1.1", + "200.20.2.2", + "81.199.3.0/24" + ] + }, + { + "name": "rule2", + "direction": "Inbound", + "destinationPort": 22, + "protocols": [ + "TCP" + ], + "ipAddresses": [] + } + ], + "effectiveNetworkSecurityGroups": [ + { + "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1", + "networkSecurityGroups": [ + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg", + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/subnetNsg" + ] + }, + { + "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg2/providers/Microsoft.Network/networkInterfaces/nic2", + "networkSecurityGroups": [ + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nicNsg" + ] + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json new file mode 100644 index 000000000000..76eadc462fe8 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings/default", + "name": "default", + "type": "Microsoft.Security/adaptiveNetworkHardenings", + "properties": { + "rulesCalculationTime": "2018-08-15T00:00:00.0000000Z", + "rules": [ + { + "name": "rule1", + "direction": "Inbound", + "destinationPort": 3389, + "protocols": [ + "TCP" + ], + "ipAddresses": [ + "100.10.1.1", + "200.20.2.2", + "81.199.3.0/24" + ] + }, + { + "name": "rule2", + "direction": "Inbound", + "destinationPort": 22, + "protocols": [ + "TCP" + ], + "ipAddresses": [] + } + ], + "effectiveNetworkSecurityGroups": [ + { + "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1", + "networkSecurityGroups": [ + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg", + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/subnetNsg" + ] + }, + { + "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic2", + "networkSecurityGroups": [ + "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg2" + ] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json new file mode 100644 index 000000000000..4e6cc52eb451 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", + "ascLocation": "centralus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "type": "Microsoft.Security/locations/allowedConnections", + "properties": { + "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", + "connectableResources": [ + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", + "inboundConnectedResources": [], + "outboundConnectedResources": [] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", + "name": "Internal", + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json new file mode 100644 index 000000000000..3ea22dfae99a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "type": "Microsoft.Security/locations/allowedConnections", + "properties": { + "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", + "connectableResources": [ + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", + "inboundConnectedResources": [], + "outboundConnectedResources": [] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", + "name": "Internal", + "location": "centralus" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json new file mode 100644 index 000000000000..db7cd6bc2e9b --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", + "resourceGroupName": "myResourceGroup", + "ascLocation": "centralus", + "connectionType": "Internal" + }, + "responses": { + "200": { + "body": { + "type": "Microsoft.Security/locations/allowedConnections", + "properties": { + "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", + "connectableResources": [ + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", + "inboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ], + "outboundConnectedResources": [ + { + "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", + "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", + "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" + } + ] + }, + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", + "inboundConnectedResources": [], + "outboundConnectedResources": [] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", + "name": "Internal", + "location": "centralus" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json new file mode 100644 index 000000000000..bd31aa457af2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "groupName": "GROUP1", + "ascLocation": "centralus" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json new file mode 100644 index 000000000000..1270432ac816 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "centralus", + "groupName": "ERELGROUP1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "Audit", + "script": "None" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "type": "File", + "common": true, + "action": "Add", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json new file mode 100644 index 000000000000..e61f53c406f4 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json @@ -0,0 +1,1028 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "includePathRecommendations": true, + "summary": false + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/AMIT-VA", + "name": "AMIT-VA", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "Audit", + "script": "None" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-dsc/providers/microsoft.compute/virtualmachines/erelh-14011", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/amit-va/providers/microsoft.compute/virtualmachines/ream-test", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14060", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + } + ], + "pathRecommendations": [ + { + "path": "C:\\Windows\\SoftwareDistribution\\Download\\Install\\Windows-KB890830-x64-V5.53-delta.exe", + "type": "File", + "common": true, + "action": "Remove", + "usernames": [ + { + "username": "LOCAL SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18" + ], + "fileType": "Exe", + "configurationStatus": "NoStatus" + }, + { + "path": "C:\\WindowsAzure\\GuestAgent_2.7.1198.822\\CollectGuestLogs.exe", + "type": "File", + "common": true, + "action": "Remove", + "usernames": [ + { + "username": "LOCAL SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18" + ], + "fileType": "Exe", + "configurationStatus": "NoStatus" + }, + { + "path": "C:\\Windows\\System32\\wbem\\WmiPrvSE.exe", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-5-18", + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "None", + "script": "None" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended", + "enforcementSupport": "NotSupported" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/GROUP1", + "name": "GROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "None", + "script": "None" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm-jit", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/myresourcegroup/providers/microsoft.compute/virtualmachines/myvmweb", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14061", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%PROGRAMFILES%\\RAPID7\\INSIGHT AGENT\\COMPONENTS\\INSIGHT_AGENT\\2.6.7.9\\GET_PROXY.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=RAPID7 LLC, L=BOSTON, S=MASSACHUSETTS, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%PROGRAMFILES%\\GOOGLE\\CHROME\\APPLICATION\\CHROME.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "O=GOOGLE LLC, L=MOUNTAIN VIEW, S=CA, C=US", + "productName": "GOOGLE CHROME", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US\\GOOGLE UPDATE\\*\\0.0.0.0", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US", + "productName": "GOOGLE UPDATE", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westeurope/applicationWhitelistings/GROUP1", + "name": "GROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "westeurope", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "executable": "Audit" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/nic-no-pip/providers/microsoft.compute/virtualmachines/nic-no-pip-vm", + "recommendationAction": "Recommended", + "enforcementSupport": "Unknown" + } + ], + "pathRecommendations": [ + { + "path": "/sbin/init", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-udev-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/lib/systemd/systemd-udevd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-socket-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/dhclient", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/python3.4", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/upstart-file-bridge", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/dbus-daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "messagebus", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/lib/systemd/systemd-logind", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/sbin/getty", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/atd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/cron", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/acpid", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/sshd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_vss_daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_kvp_daemon", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/nscd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "unscd", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/ntpd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "ntp", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/auoms/bin/auomscollect", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiserver", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiengine", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omi", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/omi/bin/omiagent", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/sbin/rsyslogd", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "syslog", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/python2.7", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + }, + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/omsagent/ruby/bin/ruby", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/auoms/bin/auoms", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/local/qualys/cloud-agent/bin/qualys-cloud-agent", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/dash", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + }, + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/sleep", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/dsc/bin/dsc_host", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/sudo", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/bin/bash", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/apt-get", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/http", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/gpgv", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/lib/apt/methods/copy", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "root", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/usr/bin/pgrep", + "type": "File", + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + }, + { + "path": "/opt/microsoft/omsconfig/bin/omsconsistencyinvoker", + "type": "File", + "common": false, + "action": "Recommended", + "usernames": [ + { + "username": "omsagent", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Executable", + "configurationStatus": "Configured" + } + ], + "configurationStatus": "Configured", + "issues": [ + { + "issue": "ExecutableViolationsAudited", + "numberOfVms": 1 + } + ], + "sourceSystem": "Azure_AuditD" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json new file mode 100644 index 000000000000..043e6895f54c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json @@ -0,0 +1,229 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "centralus", + "groupName": "ERELGROUP1", + "body": { + "properties": { + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "None", + "script": "None" + }, + "vmRecommendations": [ + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + }, + { + "configurationStatus": "Configured", + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended", + "enforcementSupport": "Supported" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "action": "Add", + "type": "File", + "common": true + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", + "name": "ERELGROUP1", + "type": "Microsoft.Security/applicationWhitelistings", + "location": "centralus", + "properties": { + "recommendationStatus": "Recommended", + "enforcementMode": "Audit", + "protectionMode": { + "exe": "Audit", + "msi": "None", + "script": "None" + }, + "vmRecommendations": [ + { + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", + "recommendationAction": "Recommended" + }, + { + "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", + "recommendationAction": "Recommended" + } + ], + "pathRecommendations": [ + { + "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", + "type": "ProductSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "MICROSOFT® COREXT", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", + "type": "PublisherSignature", + "publisherInfo": { + "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", + "productName": "*", + "binaryName": "*", + "version": "0.0.0.0" + }, + "common": true, + "action": "Recommended", + "usernames": [ + { + "username": "NT AUTHORITY\\SYSTEM", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "Configured" + }, + { + "path": "C:\\directory\\file.exe", + "type": "File", + "common": true, + "action": "Add", + "usernames": [ + { + "username": "Everyone", + "recommendationAction": "Recommended" + } + ], + "userSids": [ + "S-1-1-0" + ], + "fileType": "Exe", + "configurationStatus": "NotConfigured" + } + ], + "configurationStatus": "InProgress", + "issues": [], + "sourceSystem": "Azure_AppLocker" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json new file mode 100644 index 000000000000..5c8971c3bf59 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", + "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json new file mode 100644 index 000000000000..eff07cfaf4de --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", + "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b", + "$expand": "links" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" + }, + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "status": { + "code": "NotApplicable", + "cause": "OffByPolicy", + "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" + }, + "additionalData": { + "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" + }, + "links": { + "azurePortalUri": "https://www.portal.azure.com/?fea#blade/Microsoft_Azure_Security/RecommendationsBlade/assessmentKey/21300918-b2e3-0346-785f-c77ff57d243b" + } + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json new file mode 100644 index 000000000000..6db02e032bfa --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", + "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" + }, + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "status": { + "code": "NotApplicable", + "cause": "OffByPolicy", + "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" + }, + "additionalData": { + "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" + } + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json new file mode 100644 index 000000000000..78b7a01d1cb6 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1" + }, + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "status": { + "code": "Healthy" + } + } + }, + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" + }, + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "status": { + "code": "NotApplicable", + "cause": "OffByPolicy", + "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" + }, + "additionalData": { + "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" + } + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json new file mode 100644 index 000000000000..63873813b0ac --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", + "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", + "assessment": { + "properties": { + "resourceDetails": { + "source": "Azure" + }, + "status": { + "code": "Healthy" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e", + "name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e" + }, + "displayName": "Install internal agent on VM", + "status": { + "code": "Healthy" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e", + "name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", + "type": "Microsoft.Security/assessments", + "properties": { + "resourceDetails": { + "source": "Azure", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e" + }, + "displayName": "Install internal agent on VM", + "status": { + "code": "Healthy" + } + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json new file mode 100644 index 000000000000..617146f3ec81 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", + "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7", + "assessmentMetadata": { + "properties": { + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", + "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", + "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "CustomerManaged" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Security/assessmentMetadata/ca039e75-a276-4175-aebc-bcd41e4b14b7", + "name": "ca039e75-a276-4175-aebc-bcd41e4b14b7", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "My organization security assessment", + "description": "Assessment that my organization created to view our security assessment in Azure Security Center", + "remediationDescription": "Fix it with these remediation instructions", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "CustomerManaged" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json new file mode 100644 index 000000000000..1ab5daf14e38 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", + "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7" + }, + "responses": { + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json new file mode 100644 index 000000000000..f2202a19c14f --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", + "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", + "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "BuiltIn" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json new file mode 100644 index 000000000000..ae60eb4cbb9e --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", + "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", + "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", + "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "BuiltIn" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json new file mode 100644 index 000000000000..937869acbbd8 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2020-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", + "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", + "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "BuiltIn" + } + }, + { + "id": "/providers/Microsoft.Security/assessmentMetadata/bc303248-3d14-44c2-96a0-55f5c326b5fe", + "name": "bc303248-3d14-44c2-96a0-55f5c326b5fe", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Close management ports on your virtual machines", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917", + "description": "Open remote management ports expose your VM to a high level of risk from internet-based attacks that attempt to brute force credentials to gain admin access to the machine.", + "remediationDescription": "We recommend that you edit the inbound rules of the below virtual machines to restrict access to specific source ranges.
To restrict the access to your virtual machines: 1. Click on a VM from the list below 2. At the 'Networking' blade, click on each of the rules that allow management ports (e.g. RDP-3389, WINRM-5985, SSH-22) 3. Change the 'Action' property to 'Deny' 4. Click 'Save'", + "category": [ + "Networking" + ], + "severity": "Medium", + "userImpact": "High", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "preview": true, + "assessmentType": "CustomPolicy" + } + }, + { + "id": "/providers/Microsoft.Security/assessmentMetadata/ca039e75-a276-4175-aebc-bcd41e4b14b7", + "name": "ca039e75-a276-4175-aebc-bcd41e4b14b7", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "My organization security assessment", + "description": "Assessment that my organization created to view our security assessment in Azure Security Center", + "remediationDescription": "Fix it with these remediation instructions", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [], + "assessmentType": "CustomerManaged" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json new file mode 100644 index 000000000000..8bde3eae2b3d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", + "name": "21300918-b2e3-0346-785f-c77ff57d243b", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Install endpoint protection solution on virtual machine scale sets", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", + "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", + "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", + "category": [ + "Compute" + ], + "severity": "Medium", + "userImpact": "Low", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "assessmentType": "BuiltIn" + } + }, + { + "id": "/providers/Microsoft.Security/assessmentMetadata/bc303248-3d14-44c2-96a0-55f5c326b5fe", + "name": "bc303248-3d14-44c2-96a0-55f5c326b5fe", + "type": "Microsoft.Security/assessmentMetadata", + "properties": { + "displayName": "Close management ports on your virtual machines", + "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917", + "description": "Open remote management ports expose your VM to a high level of risk from internet-based attacks that attempt to brute force credentials to gain admin access to the machine.", + "remediationDescription": "We recommend that you edit the inbound rules of the below virtual machines to restrict access to specific source ranges.
To restrict the access to your virtual machines: 1. Click on a VM from the list below 2. At the 'Networking' blade, click on each of the rules that allow management ports (e.g. RDP-3389, WINRM-5985, SSH-22) 3. Change the 'Action' property to 'Deny' 4. Click 'Save'", + "category": [ + "Networking" + ], + "severity": "Medium", + "userImpact": "High", + "implementationEffort": "Low", + "threats": [ + "dataExfiltration", + "dataSpillage", + "maliciousInsider" + ], + "preview": true, + "assessmentType": "CustomPolicy" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json new file mode 100644 index 000000000000..7fdd44705361 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myRg2", + "ascLocation": "centralus", + "discoveredSecuritySolutionName": "paloalto7" + }, + "responses": { + "200": { + "body": { + "properties": { + "securityFamily": "Ngfw", + "offer": "vmseries1", + "publisher": "paloaltonetworks", + "sku": "byol" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", + "name": "paloalto7", + "type": "Microsoft.Security/locations/discoveredSecuritySolutions", + "location": "eastus2" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json new file mode 100644 index 000000000000..dd0249b47d48 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "centralus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "securityFamily": "Ngfw", + "offer": "cisco-asav", + "publisher": "cisco", + "sku": "asav-azure-byol" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP", + "name": "CP", + "type": "Microsoft.Security/locations/discoveredSecuritySolutions", + "location": "eastus" + }, + { + "properties": { + "securityFamily": "Ngfw", + "offer": "vmseries1", + "publisher": "paloaltonetworks", + "sku": "byol" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", + "name": "paloalto7", + "type": "Microsoft.Security/locations/discoveredSecuritySolutions", + "location": "eastus2" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json new file mode 100644 index 000000000000..d629d7ab5bfd --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "securityFamily": "Ngfw", + "offer": "cisco-asav", + "publisher": "cisco", + "sku": "asav-azure-byol" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP", + "name": "CP", + "type": "Microsoft.Security/locations/discoveredSecuritySolutions", + "location": "eastus" + }, + { + "properties": { + "securityFamily": "Ngfw", + "offer": "vmseries1", + "publisher": "paloaltonetworks", + "sku": "byol" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", + "name": "paloalto7", + "type": "Microsoft.Security/locations/discoveredSecuritySolutions", + "location": "eastus2" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json new file mode 100644 index 000000000000..063a365fcdf0 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "defaultresourcegroup-eus", + "ascLocation": "centralus", + "externalSecuritySolutionsName": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" + }, + "responses": { + "200": { + "body": { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "eastus" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json new file mode 100644 index 000000000000..26626803e57d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "centralus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "eastus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westeurope" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-09T10:30:11.523Z", + "hostname": "barracuda", + "deviceVendor": "barracudanetworks", + "deviceType": "WAF", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda", + "name": "cef_omsprd_barracudanetworks_waf_barracuda", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-08T15:42:22.57Z", + "hostname": "demovm20", + "deviceVendor": "virtualHoneypot", + "deviceType": "Microsoft", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20", + "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-08T10:38:53.423Z", + "hostname": "demovm10", + "deviceVendor": "virtualHoneypot", + "deviceType": "Microsoft", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10", + "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd", + "name": "aad_omsprd", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "japaneast" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json new file mode 100644 index 000000000000..90c72216fc02 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "eastus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westeurope" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-09T10:30:11.523Z", + "hostname": "barracuda", + "deviceVendor": "barracudanetworks", + "deviceType": "WAF", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda", + "name": "cef_omsprd_barracudanetworks_waf_barracuda", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-08T15:42:22.57Z", + "hostname": "demovm20", + "deviceVendor": "virtualHoneypot", + "deviceType": "Microsoft", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20", + "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "CEF", + "properties": { + "lastEventReceived": "2018-05-08T10:38:53.423Z", + "hostname": "demovm10", + "deviceVendor": "virtualHoneypot", + "deviceType": "Microsoft", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10", + "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd", + "name": "aad_omsprd", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "westcentralus" + }, + { + "kind": "AAD", + "properties": { + "connectivityState": "Discovered", + "deviceVendor": "Microsoft", + "deviceType": "Azure Active Directory Identity Protection", + "workspace": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp" + } + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", + "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", + "type": "Microsoft.Security/locations/externalSecuritySolutions", + "location": "japaneast" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json new file mode 100644 index 000000000000..a6d2b72050f2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope", + "resourceGroupName": "myRg1", + "jitNetworkAccessPolicyName": "default", + "body": { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + }, + "responses": { + "200": { + "body": { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json new file mode 100644 index 000000000000..6b5a94c52cc3 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope", + "resourceGroupName": "myRg1", + "jitNetworkAccessPolicyName": "default" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json new file mode 100644 index 000000000000..7c9ee01bb32b --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope", + "resourceGroupName": "myRg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json new file mode 100644 index 000000000000..35e5db1c748d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myRg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json new file mode 100644 index 000000000000..fd30dbf338ea --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json new file mode 100644 index 000000000000..920ad1d0824d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json new file mode 100644 index 000000000000..e81ccfd4cc46 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope", + "resourceGroupName": "myRg1", + "jitNetworkAccessPolicyName": "default" + }, + "responses": { + "200": { + "body": { + "kind": "Basic", + "properties": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 22, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + }, + { + "number": 3389, + "protocol": "*", + "allowedSourceAddressPrefix": "*", + "maxRequestAccessDuration": "PT3H" + } + ] + } + ], + "requests": [ + { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-05-17T09:06:45.5691611Z", + "status": "Initiated", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-05-17T08:06:45.5691611Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + ], + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", + "name": "default", + "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", + "location": "westeurope" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json new file mode 100644 index 000000000000..d944942dbf0c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westeurope", + "resourceGroupName": "myRg1", + "jitNetworkAccessPolicyName": "default", + "jitNetworkAccessPolicyInitiateType": "initiate", + "body": { + "virtualMachines": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "duration": "PT1H", + "allowedSourceAddressPrefix": "192.127.0.2" + } + ] + } + ], + "justification": "testing a new version of the product" + } + }, + "responses": { + "202": { + "body": { + "virtualMachines": [ + { + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", + "ports": [ + { + "number": 3389, + "allowedSourceAddressPrefix": "192.127.0.2", + "endTimeUtc": "2018-07-12T09:53:03.3658798Z", + "status": "Initiating", + "statusReason": "UserRequested" + } + ] + } + ], + "startTimeUtc": "2018-07-12T08:53:03.3658798Z", + "requestor": "barbara@contoso.com", + "justification": "testing a new version of the product" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json new file mode 100644 index 000000000000..6c0bd6832ccd --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myRg2", + "ascLocation": "centralus", + "securitySolutionName": "paloalto7" + }, + "responses": { + "200": { + "body": { + "properties": { + "securityFamily": "Ngfw", + "protectionStatus": "Good", + "template": "paloalto.paloaltofw", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/securitySolutions/paloalto7", + "name": "MyVA", + "type": "Microsoft.Security/locations/securitySolutions", + "location": "eastus2" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json new file mode 100644 index 000000000000..e255b72c1293 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "securityFamily": "SaasWaf", + "protectionStatus": "Good", + "template": "microsoft/ApplicationGateway-ARM", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/securitySolutions/SaasWaf", + "name": "MySaasWaf", + "type": "Microsoft.Security/locations/securitySolutions", + "location": "eastus" + }, + { + "properties": { + "securityFamily": "Va", + "protectionStatus": "Good", + "template": "qualys.qualysAgent", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/securitySolutions/MyVA", + "name": "MyVA", + "type": "Microsoft.Security/locations/securitySolutions", + "location": "eastus2" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json new file mode 100644 index 000000000000..1f8b43f377f2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "ascLocation": "westcentralus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "alertVendorName": "Microsoft", + "securityFamily": "SaasWaf", + "packageInfoUrl": "www.azure.com", + "productName": "Web Application Firewall", + "publisher": "microsoft", + "publisherDisplayName": "Microsoft Inc.", + "template": "microsoft/ApplicationGateway-ARM" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/microsoft.ApplicationGateway-ARM", + "name": "microsoft.ApplicationGateway-ARM", + "type": "Microsoft.Security/locations/securitySolutionsReferenceData" + }, + { + "properties": { + "alertVendorName": "Qualys VA", + "securityFamily": "Va", + "packageInfoUrl": "http://www.qualys.com/", + "productName": "Vulnerability Assessment", + "publisher": "qualys", + "publisherDisplayName": "Qualys, Inc.", + "template": "qualys/qualysAgent" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/qualys.qualysAgent", + "name": "qualys.qualysAgent", + "type": "Microsoft.Security/locations/SecuritySolutions" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json new file mode 100644 index 000000000000..ee3c112ca4cd --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "alertVendorName": "Microsoft", + "securityFamily": "SaasWaf", + "packageInfoUrl": "www.azure.com", + "productName": "Web Application Firewall", + "publisher": "microsoft", + "publisherDisplayName": "Microsoft Inc.", + "template": "microsoft/ApplicationGateway-ARM" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/microsoft.ApplicationGateway-ARM", + "name": "microsoft.ApplicationGateway-ARM", + "type": "Microsoft.Security/locations/securitySolutionsReferenceData" + }, + { + "properties": { + "alertVendorName": "Qualys VA", + "securityFamily": "Va", + "packageInfoUrl": "http://www.qualys.com/", + "productName": "Vulnerability Assessment", + "publisher": "qualys", + "publisherDisplayName": "Qualys, Inc.", + "template": "qualys/qualysAgent" + }, + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/qualys.qualysAgent", + "name": "qualys.qualysAgent", + "type": "Microsoft.Security/locations/SecuritySolutions" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..eaed80294950 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default", + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments" + } + }, + "responses": { + "202": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Provisioning" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..b47510ee03bc --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..59dddaa785dd --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1", + "serverVulnerabilityAssessment": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json new file mode 100644 index 000000000000..cdf6cd825bdb --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "rg1", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "vm1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", + "name": "default", + "type": "Microsoft.Security/serverVulnerabilityAssessments", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json new file mode 100644 index 000000000000..1d7dcfcca62a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", + "ascLocation": "centralus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", + "topologyResources": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", + "severity": "Healthy", + "networkZones": "Internal", + "recommendationsExist": false, + "topologyScore": 0, + "location": "westus", + "children": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" + } + ] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", + "name": "vnets", + "type": "Microsoft.Security/locations/topologies", + "location": "westus" + }, + { + "properties": { + "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", + "topologyResources": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "severity": "Healthy", + "networkZones": "Internal", + "recommendationsExist": false, + "topologyScore": 5, + "location": "westus", + "parents": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet" + } + ] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/subnets", + "name": "subnets", + "type": "Microsoft.Security/locations/topologies", + "location": "westus" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json new file mode 100644 index 000000000000..1df605aaf115 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", + "topologyResources": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", + "severity": "Healthy", + "networkZones": "Internal", + "recommendationsExist": false, + "topologyScore": 0, + "location": "westus", + "children": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" + } + ] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", + "name": "vnets", + "type": "Microsoft.Security/locations/topologies", + "location": "westus" + }, + { + "properties": { + "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", + "topologyResources": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "severity": "Healthy", + "networkZones": "Internal", + "recommendationsExist": false, + "topologyScore": 5, + "location": "westus", + "parents": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet" + } + ] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/subnets", + "name": "subnets", + "type": "Microsoft.Security/locations/topologies", + "location": "westus" + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json new file mode 100644 index 000000000000..46228d4d64f0 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2020-01-01", + "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", + "resourceGroupName": "myservers", + "ascLocation": "centralus", + "topologyResourceName": "vnets" + }, + "responses": { + "200": { + "body": { + "properties": { + "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", + "topologyResources": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", + "severity": "Healthy", + "networkZones": "InternetFacing", + "recommendationsExist": false, + "topologyScore": 0, + "location": "westus", + "children": [ + { + "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" + } + ] + } + ] + }, + "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", + "name": "vnets", + "type": "Microsoft.Security/locations/topologies", + "location": "westus" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json new file mode 100644 index 000000000000..3b8b3b072232 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json @@ -0,0 +1,388 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/externalSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get external security solutions on a subscription": { + "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json" + } + }, + "description": "Gets a list of external security solutions for the subscription.", + "tags": [ + "ExternalSecuritySolutions" + ], + "operationId": "ExternalSecuritySolutions_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExternalSecuritySolutionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions": { + "get": { + "x-ms-examples": { + "Get external security solutions on a subscription from security data location": { + "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json" + } + }, + "description": "Gets a list of external Security Solutions for the subscription and location.", + "tags": [ + "ExternalSecuritySolutions" + ], + "operationId": "ExternalSecuritySolutions_ListByHomeRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExternalSecuritySolutionList" + } + }, + "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/locations/{ascLocation}/ExternalSecuritySolutions/{externalSecuritySolutionsName}": { + "get": { + "x-ms-examples": { + "Get external security solution": { + "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json" + } + }, + "description": "Gets a specific external Security Solution.", + "tags": [ + "ExternalSecuritySolutions" + ], + "operationId": "ExternalSecuritySolutions_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/ExternalSecuritySolutionsName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExternalSecuritySolution" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "ExternalSecuritySolutionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalSecuritySolution" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "ExternalSecuritySolution": { + "type": "object", + "description": "Represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.", + "required": [ + "kind" + ], + "discriminator": "kind", + "properties": {}, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "#/definitions/ExternalSecuritySolutionKind" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "CefExternalSecuritySolution": { + "x-ms-discriminator-value": "CEF", + "type": "object", + "description": "Represents a security solution which sends CEF logs to an OMS workspace", + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolution" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/CefSolutionProperties" + } + } + }, + "AtaExternalSecuritySolution": { + "x-ms-discriminator-value": "ATA", + "type": "object", + "description": "Represents an ATA security solution which sends logs to an OMS workspace", + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolution" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AtaSolutionProperties" + } + } + }, + "AadExternalSecuritySolution": { + "x-ms-discriminator-value": "AAD", + "type": "object", + "description": "Represents an AAD identity protection solution which sends logs to an OMS workspace.", + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolution" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AadSolutionProperties" + } + } + }, + "ExternalSecuritySolutionKind": { + "type": "object", + "description": "Describes an Azure resource with kind", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the external solution", + "enum": [ + "CEF", + "ATA", + "AAD" + ], + "x-ms-enum": { + "name": "ExternalSecuritySolutionKind", + "modelAsString": true, + "values": [ + { + "value": "CEF" + }, + { + "value": "ATA" + }, + { + "value": "AAD" + } + ] + } + } + } + }, + "ExternalSecuritySolutionProperties": { + "type": "object", + "description": "The solution properties (correspond to the solution kind)", + "additionalProperties": true, + "properties": { + "deviceVendor": { + "type": "string" + }, + "deviceType": { + "type": "string" + }, + "workspace": { + "$ref": "#/definitions/ConnectedWorkspace" + } + } + }, + "ConnectedWorkspace": { + "type": "object", + "title": "Represents an OMS workspace to which the solution is connected", + "properties": { + "id": { + "type": "string", + "description": "Azure resource ID of the connected OMS workspace" + } + } + }, + "AadConnectivityState": { + "type": "object", + "description": "Describes an Azure resource with kind", + "properties": { + "connectivityState": { + "type": "string", + "title": "The connectivity state of the external AAD solution ", + "enum": [ + "Discovered", + "NotLicensed", + "Connected" + ], + "x-ms-enum": { + "name": "AadConnectivityState", + "modelAsString": true, + "values": [ + { + "value": "Discovered" + }, + { + "value": "NotLicensed" + }, + { + "value": "Connected" + } + ] + } + } + } + }, + "AadSolutionProperties": { + "type": "object", + "title": "The external security solution properties for AAD solutions", + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolutionProperties" + }, + { + "$ref": "#/definitions/AadConnectivityState" + } + ] + }, + "CefSolutionProperties": { + "type": "object", + "title": "The external security solution properties for CEF solutions", + "properties": { + "hostname": { + "type": "string" + }, + "agent": { + "type": "string" + }, + "lastEventReceived": { + "type": "string" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolutionProperties" + } + ] + }, + "AtaSolutionProperties": { + "type": "object", + "title": "The external security solution properties for ATA solutions", + "properties": { + "lastEventReceived": { + "type": "string" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ExternalSecuritySolutionProperties" + } + ] + } + }, + "parameters": { + "ExternalSecuritySolutionsName": { + "name": "externalSecuritySolutionsName", + "in": "path", + "description": "Name of an external security solution.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json new file mode 100644 index 000000000000..9014390efee0 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json @@ -0,0 +1,770 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/jitNetworkAccessPolicies": { + "get": { + "x-ms-examples": { + "Get JIT network access policies on a subscription": { + "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Policies for protecting resources using Just-in-Time access control.", + "operationId": "JitNetworkAccessPolicies_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPoliciesList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies": { + "get": { + "x-ms-examples": { + "Get JIT network access policies on a subscription from a security data location": { + "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", + "operationId": "JitNetworkAccessPolicies_ListByRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPoliciesList" + } + }, + "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/jitNetworkAccessPolicies": { + "get": { + "x-ms-examples": { + "Get JIT network access policies on a resource group": { + "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", + "operationId": "JitNetworkAccessPolicies_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPoliciesList" + } + }, + "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/locations/{ascLocation}/jitNetworkAccessPolicies": { + "get": { + "x-ms-examples": { + "Get JIT network access policies on a resource group from a security data location": { + "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", + "operationId": "JitNetworkAccessPolicies_ListByResourceGroupAndRegion", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPoliciesList" + } + }, + "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/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}": { + "get": { + "x-ms-examples": { + "Get JIT network access policy": { + "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", + "operationId": "JitNetworkAccessPolicies_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create JIT network access policy": { + "$ref": "./examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Create a policy for protecting resources using Just-in-Time access control", + "operationId": "JitNetworkAccessPolicies_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicy" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JitNetworkAccessPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a JIT network access policy": { + "$ref": "./examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Delete a Just-in-Time access control policy.", + "operationId": "JitNetworkAccessPolicies_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK - Resource was deleted" + }, + "204": { + "description": "No Content - Resource does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}/{jitNetworkAccessPolicyInitiateType}": { + "post": { + "x-ms-examples": { + "Initiate an action on a JIT network access policy": { + "$ref": "./examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json" + } + }, + "tags": [ + "JitNetworkAccessPolicies" + ], + "description": "Initiate a JIT access from a specific Just-in-Time policy configuration.", + "operationId": "JitNetworkAccessPolicies_Initiate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyName" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyInitiateType" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/JitNetworkAccessPolicyInitiateRequest" + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/JitNetworkAccessRequest" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "JitNetworkAccessPoliciesList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JitNetworkAccessPolicy" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "JitNetworkAccessPolicy": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/JitNetworkAccessPolicyProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Kind" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "JitNetworkAccessPolicyProperties": { + "type": "object", + "properties": { + "virtualMachines": { + "type": "array", + "description": "Configurations for Microsoft.Compute/virtualMachines resource type.", + "items": { + "$ref": "#/definitions/JitNetworkAccessPolicyVirtualMachine" + } + }, + "requests": { + "type": "array", + "items": { + "$ref": "#/definitions/JitNetworkAccessRequest" + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Gets the provisioning state of the Just-in-Time policy." + } + }, + "required": [ + "virtualMachines" + ] + }, + "JitNetworkAccessPolicyVirtualMachine": { + "type": "object", + "required": [ + "id", + "ports" + ], + "properties": { + "id": { + "type": "string", + "description": "Resource ID of the virtual machine that is linked to this policy" + }, + "ports": { + "type": "array", + "description": "Port configurations for the virtual machine", + "items": { + "$ref": "#/definitions/JitNetworkAccessPortRule" + } + }, + "publicIpAddress": { + "type": "string", + "description": "Public IP address of the Azure Firewall that is linked to this policy, if applicable" + } + } + }, + "JitNetworkAccessPortRule": { + "type": "object", + "properties": { + "number": { + "$ref": "#/definitions/PortNumber" + }, + "protocol": { + "type": "string", + "enum": [ + "TCP", + "UDP", + "*" + ], + "x-ms-enum": { + "name": "protocol", + "modelAsString": true, + "values": [ + { + "value": "TCP" + }, + { + "value": "UDP" + }, + { + "value": "*", + "name": "All" + } + ] + } + }, + "allowedSourceAddressPrefix": { + "type": "string", + "description": "Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." + }, + "allowedSourceAddressPrefixes": { + "type": "array", + "description": "Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.", + "items": { + "type": "string", + "description": "IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." + } + }, + "maxRequestAccessDuration": { + "type": "string", + "description": "Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day" + } + }, + "required": [ + "maxRequestAccessDuration", + "number", + "protocol" + ] + }, + "JitNetworkAccessRequest": { + "type": "object", + "properties": { + "virtualMachines": { + "type": "array", + "items": { + "$ref": "#/definitions/JitNetworkAccessRequestVirtualMachine" + } + }, + "startTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The start time of the request in UTC" + }, + "requestor": { + "type": "string", + "description": "The identity of the person who made the request" + }, + "justification": { + "type": "string", + "description": "The justification for making the initiate request" + } + }, + "required": [ + "requestor", + "startTimeUtc", + "virtualMachines" + ] + }, + "JitNetworkAccessRequestVirtualMachine": { + "type": "object", + "required": [ + "id", + "ports" + ], + "properties": { + "id": { + "type": "string", + "description": "Resource ID of the virtual machine that is linked to this policy" + }, + "ports": { + "type": "array", + "description": "The ports that were opened for the virtual machine", + "items": { + "$ref": "#/definitions/JitNetworkAccessRequestPort" + } + } + } + }, + "JitNetworkAccessRequestPort": { + "type": "object", + "properties": { + "number": { + "$ref": "#/definitions/PortNumber" + }, + "allowedSourceAddressPrefix": { + "type": "string", + "description": "Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." + }, + "allowedSourceAddressPrefixes": { + "type": "array", + "description": "Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.", + "items": { + "description": "IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".", + "type": "string" + } + }, + "endTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The date & time at which the request ends in UTC" + }, + "status": { + "type": "string", + "description": "The status of the port", + "enum": [ + "Revoked", + "Initiated" + ], + "x-ms-enum": { + "name": "status", + "modelAsString": true, + "values": [ + { + "value": "Revoked" + }, + { + "value": "Initiated" + } + ] + } + }, + "statusReason": { + "type": "string", + "description": "A description of why the `status` has its value", + "enum": [ + "Expired", + "UserRequested", + "NewerRequestInitiated" + ], + "x-ms-enum": { + "name": "statusReason", + "modelAsString": true, + "values": [ + { + "value": "Expired" + }, + { + "value": "UserRequested" + }, + { + "value": "NewerRequestInitiated" + } + ] + } + }, + "mappedPort": { + "type": "integer", + "description": "The port which is mapped to this port's `number` in the Azure Firewall, if applicable" + } + }, + "required": [ + "endTimeUtc", + "number", + "status", + "statusReason" + ] + }, + "JitNetworkAccessPolicyInitiateRequest": { + "type": "object", + "properties": { + "virtualMachines": { + "type": "array", + "description": "A list of virtual machines & ports to open access for", + "items": { + "$ref": "#/definitions/JitNetworkAccessPolicyInitiateVirtualMachine" + } + }, + "justification": { + "type": "string", + "description": "The justification for making the initiate request" + } + }, + "required": [ + "virtualMachines" + ] + }, + "JitNetworkAccessPolicyInitiateVirtualMachine": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID of the virtual machine that is linked to this policy" + }, + "ports": { + "type": "array", + "description": "The ports to open for the resource with the `id`", + "items": { + "$ref": "#/definitions/JitNetworkAccessPolicyInitiatePort" + } + } + }, + "required": [ + "id", + "ports" + ] + }, + "JitNetworkAccessPolicyInitiatePort": { + "type": "object", + "properties": { + "number": { + "$ref": "#/definitions/PortNumber" + }, + "allowedSourceAddressPrefix": { + "type": "string", + "description": "Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request." + }, + "endTimeUtc": { + "type": "string", + "format": "date-time", + "description": "The time to close the request in UTC" + } + }, + "required": [ + "endTimeUtc", + "number" + ] + }, + "PortNumber": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + } + }, + "parameters": { + "JitNetworkAccessPolicyName": { + "name": "jitNetworkAccessPolicyName", + "type": "string", + "in": "path", + "required": true, + "description": "Name of a Just-in-Time access configuration policy.", + "x-ms-parameter-location": "method" + }, + "JitNetworkAccessPolicyInitiateType": { + "name": "jitNetworkAccessPolicyInitiateType", + "type": "string", + "in": "path", + "required": true, + "description": "Type of the action to do on the Just-in-Time access policy.", + "enum": [ + "initiate" + ], + "x-ms-parameter-location": "method" + }, + "JitNetworkAccessPolicyInitiateRequest": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitNetworkAccessPolicyInitiateRequest" + }, + "x-ms-parameter-location": "method" + }, + "JitNetworkAccessPolicy": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/JitNetworkAccessPolicy" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json new file mode 100644 index 000000000000..92b203a528f5 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json @@ -0,0 +1,212 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/securitySolutionsReferenceData": { + "get": { + "x-ms-examples": { + "Get security solutions": { + "$ref": "./examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json" + } + }, + "tags": [ + "securitySolutionsReferenceData" + ], + "description": "Gets a list of all supported Security Solutions for the subscription.", + "operationId": "securitySolutionsReferenceData_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/securitySolutionsReferenceDataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutionsReferenceData": { + "get": { + "x-ms-examples": { + "Get security solutions from a security data location": { + "$ref": "./examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json" + } + }, + "tags": [ + "SecuritySolutionsReferenceData" + ], + "description": "Gets list of all supported Security Solutions for subscription and location.", + "operationId": "SecuritySolutionsReferenceData_ListByHomeRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/securitySolutionsReferenceDataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "securitySolutionsReferenceDataList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/securitySolutionsReferenceData" + } + } + } + }, + "securitySolutionsReferenceData": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/securitySolutionsReferenceDataProperties" + } + }, + "required": [ + "properties" + ], + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "securitySolutionsReferenceDataProperties": { + "type": "object", + "properties": { + "securityFamily": { + "type": "string", + "description": "The security family of the security solution", + "enum": [ + "Waf", + "Ngfw", + "SaasWaf", + "Va" + ], + "x-ms-enum": { + "name": "securityFamily", + "modelAsString": true, + "values": [ + { + "value": "Waf" + }, + { + "value": "Ngfw" + }, + { + "value": "SaasWaf" + }, + { + "value": "Va" + } + ] + } + }, + "alertVendorName": { + "type": "string", + "description": "The security solutions' vendor name" + }, + "packageInfoUrl": { + "type": "string", + "description": "The security solutions' package info url" + }, + "productName": { + "type": "string", + "description": "The security solutions' product name" + }, + "publisher": { + "type": "string", + "description": "The security solutions' publisher" + }, + "publisherDisplayName": { + "type": "string", + "description": "The security solutions' publisher display name" + }, + "template": { + "type": "string", + "description": "The security solutions' template" + } + }, + "required": [ + "securityFamily", + "alertVendorName", + "packageInfoUrl", + "productName", + "publisher", + "publisherDisplayName", + "template" + ] + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json new file mode 100644 index 000000000000..d21a7bca94c7 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json @@ -0,0 +1,351 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments": { + "get": { + "x-ms-examples": { + "Get a list of server vulnerability assessments on a resource. Though this API returns a list, Currently Microsoft.Security only supports a single default type of server vulnerability assessment": { + "$ref": "./examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json" + } + }, + "description": "Gets a list of server vulnerability assessment onboarding statuses on a given resource.", + "tags": [ + "ServerVulnerabilityAssessments" + ], + "operationId": "ServerVulnerabilityAssessment_ListByExtendedResource", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessmentsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}": { + "get": { + "x-ms-examples": { + "Get a server vulnerability assessments onboarding status on a resource. Currently Microsoft.Security only supports the single 'default' resource": { + "$ref": "./examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json" + } + }, + "description": "Gets a server vulnerability assessment onboarding statuses on a given resource.", + "tags": [ + "ServerVulnerabilityAssessments" + ], + "operationId": "ServerVulnerabilityAssessment_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security": { + "$ref": "./examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json" + } + }, + "description": "Creating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it", + "tags": [ + "ServerVulnerabilityAssessment" + ], + "operationId": "ServerVulnerabilityAssessment_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a server vulnerability assessments on a resource. Only 'default' resource is supported. Once deleting, Microsoft.Security will not provide vulnerability assessment findings on the resource.": { + "$ref": "./examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json" + } + }, + "description": "Removing server vulnerability assessment from a resource.", + "tags": [ + "ServerVulnerabilityAssessment" + ], + "operationId": "ServerVulnerabilityAssessment_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "serverVulnerabilityAssessment", + "in": "path", + "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", + "required": true, + "type": "string", + "enum": [ + "default" + ] + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content - Resource does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "ServerVulnerabilityAssessmentsList": { + "type": "object", + "description": "List of server vulnerability assessments", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ServerVulnerabilityAssessment" + } + } + } + }, + "ServerVulnerabilityAssessment": { + "type": "object", + "description": "Describes the server vulnerability assessment details on a resource", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServerVulnerabilityAssessmentProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "ServerVulnerabilityAssessmentProperties": { + "type": "object", + "description": "describes ServerVulnerabilityAssessment properties.", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioningState of the vulnerability assessment capability on the VM", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Deprovisioning" + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json new file mode 100644 index 000000000000..5a898ec20dcc --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json @@ -0,0 +1,301 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-01-01" + }, + "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}/providers/Microsoft.Security/topologies": { + "get": { + "x-ms-examples": { + "Get topology on a subscription": { + "$ref": "./examples/Topology/GetTopologySubscription_example.json" + } + }, + "tags": [ + "Topology" + ], + "description": "Gets a list that allows to build a topology view of a subscription.", + "operationId": "Topology_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopologyList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies": { + "get": { + "x-ms-examples": { + "Get topology on a subscription from security data location": { + "$ref": "./examples/Topology/GetTopologySubscriptionLocation_example.json" + } + }, + "tags": [ + "Topology" + ], + "description": "Gets a list that allows to build a topology view of a subscription and location.", + "operationId": "Topology_ListByHomeRegion", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopologyList" + } + }, + "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/locations/{ascLocation}/topologies/{topologyResourceName}": { + "get": { + "x-ms-examples": { + "Get topology": { + "$ref": "./examples/Topology/GetTopology_example.json" + } + }, + "tags": [ + "Topology" + ], + "description": "Gets a specific topology component.", + "operationId": "Topology_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/AscLocation" + }, + { + "$ref": "#/parameters/TopologyResourceName" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/TopologyResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "TopologyList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/TopologyResource" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "TopologyResource": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "readOnly": true, + "$ref": "#/definitions/TopologyResourceProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + }, + { + "$ref": "../../../common/v1/types.json#/definitions/Location" + } + ] + }, + "TopologyResourceProperties": { + "type": "object", + "properties": { + "calculatedDateTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The UTC time on which the topology was calculated" + }, + "topologyResources": { + "type": "array", + "readOnly": true, + "description": "Azure resources which are part of this topology resource", + "items": { + "$ref": "#/definitions/TopologySingleResource" + } + } + } + }, + "TopologySingleResource": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "readOnly": true, + "description": "Azure resource id" + }, + "severity": { + "type": "string", + "readOnly": true, + "description": "The security severity of the resource" + }, + "recommendationsExist": { + "type": "boolean", + "readOnly": true, + "description": "Indicates if the resource has security recommendations" + }, + "networkZones": { + "type": "string", + "readOnly": true, + "description": "Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.)" + }, + "topologyScore": { + "type": "integer", + "readOnly": true, + "description": "Score of the resource based on its security severity" + }, + "location": { + "type": "string", + "readOnly": true, + "description": "The location of this resource" + }, + "parents": { + "type": "array", + "readOnly": true, + "description": "Azure resources connected to this resource which are in higher level in the topology view", + "items": { + "$ref": "#/definitions/TopologySingleResourceParent" + } + }, + "children": { + "type": "array", + "readOnly": true, + "description": "Azure resources connected to this resource which are in lower level in the topology view", + "items": { + "$ref": "#/definitions/TopologySingleResourceChild" + } + } + } + }, + "TopologySingleResourceParent": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "readOnly": true, + "description": "Azure resource id which serves as parent resource in topology view" + } + } + }, + "TopologySingleResourceChild": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "readOnly": true, + "description": "Azure resource id which serves as child resource in topology view" + } + } + } + }, + "parameters": { + "TopologyResourceName": { + "name": "topologyResourceName", + "in": "path", + "description": "Name of a topology resources collection.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} From fa373b14b5035a995d50aa89dc2ded6fd064af8c Mon Sep 17 00:00:00 2001 From: Liran Chen <1437075+liranc@users.noreply.github.com> Date: Thu, 6 Aug 2020 08:42:26 +0300 Subject: [PATCH 02/24] Updates readme --- .../security/resource-manager/readme.md | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 792613468d24..db8110b2dd5b 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -54,13 +54,33 @@ These are the global settings for the Security API. title: SecurityCenter description: API spec for Microsoft.Security (Azure Security Center) resource provider openapi-type: arm -tag: package-composite-v3 +tag: package-preview-2020-08 ``` ## Composite packages The following packages may be composed from multiple api-versions. + +### Tag: package-preview-2020-08 + +These settings apply only when `--tag=package-preview-2020-08` is specified on the command line. + +```yaml $(tag) == 'package-preview-2020-08' +input-file: + - Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json + - Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json + - Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json + - Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json + - Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json + - Microsoft.Security/preview/2020-08-06-preview/assessments.json + - Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json + - Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json + - Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json + - Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json + - Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json + - Microsoft.Security/preview/2020-08-06-preview/topologies.json +``` ### Tag: package-composite-v1 These settings apply only when `--tag=package-composite-v1` is specified on the command line. @@ -409,7 +429,6 @@ AutoRest V3 generators require the use of `--tag=all-api-versions` to select api This block is updated by an automatic script. Edits may be lost! - ``` yaml $(tag) == 'all-api-versions' /*autogenerated*/ # include the azure profile definitions from the standard location require: $(this-folder)/../../../profiles/readme.md From 2a1f0efabd88eb98cc8050bc3bb44c4c2bd93848 Mon Sep 17 00:00:00 2001 From: Liran Chen <1437075+liranc@users.noreply.github.com> Date: Thu, 6 Aug 2020 08:42:31 +0300 Subject: [PATCH 03/24] Updates API version in new specs and examples --- .../preview/2020-08-06-preview/SecuritySolutions.json | 2 +- .../preview/2020-08-06-preview/adaptiveNetworkHardenings.json | 2 +- .../preview/2020-08-06-preview/allowedConnections.json | 2 +- .../preview/2020-08-06-preview/applicationWhitelistings.json | 2 +- .../preview/2020-08-06-preview/assessmentMetadata.json | 2 +- .../preview/2020-08-06-preview/assessments.json | 2 +- .../preview/2020-08-06-preview/discoveredSecuritySolutions.json | 2 +- .../EnforceAdaptiveNetworkHardeningRules_example.json | 2 +- .../GetAdaptiveNetworkHardening_example.json | 2 +- ...ListByExtendedResourceAdaptiveNetworkHardenings_example.json | 2 +- .../GetAllowedConnectionsSubscriptionLocation_example.json | 2 +- .../GetAllowedConnectionsSubscription_example.json | 2 +- .../AllowedConnections/GetAllowedConnections_example.json | 2 +- .../DeleteAdaptiveApplicationControls_example.json | 2 +- .../GetAdaptiveApplicationControlsGroup_example.json | 2 +- .../GetAdaptiveApplicationControlsSubscription_example.json | 2 +- .../PutAdaptiveApplicationControls_example.json | 2 +- .../examples/Assessments/DeleteAssessment_example.json | 2 +- .../examples/Assessments/GetAssessmentWithExpand_example.json | 2 +- .../examples/Assessments/GetAssessment_example.json | 2 +- .../examples/Assessments/ListAssessments_example.json | 2 +- .../examples/Assessments/PutAssessment_example.json | 2 +- .../CreateAssessmentsMetadata_subscription_example.json | 2 +- .../DeleteAssessmentsMetadata_subscription_example.json | 2 +- .../AssessmentsMetadata/GetAssessmentsMetadata_example.json | 2 +- .../GetAssessmentsMetadata_subscription_example.json | 2 +- .../AssessmentsMetadata/ListAssessmentsMetadata_example.json | 2 +- .../ListAssessmentsMetadata_subscription_example.json | 2 +- ...DiscoveredSecuritySolutionResourceGroupLocation_example.json | 2 +- ...DiscoveredSecuritySolutionsSubscriptionLocation_example.json | 2 +- .../GetDiscoveredSecuritySolutionsSubscription_example.json | 2 +- .../GetExternalSecuritySolution_example.json | 2 +- ...etExternalSecuritySolutionsSubscriptionLocation_example.json | 2 +- .../GetExternalSecuritySolutionsSubscription_example.json | 2 +- .../CreateJitNetworkAccessPolicy_example.json | 2 +- .../DeleteJitNetworkAccessPolicy_example.json | 2 +- ...etJitNetworkAccessPoliciesResourceGroupLocation_example.json | 2 +- .../GetJitNetworkAccessPoliciesResourceGroup_example.json | 2 +- ...GetJitNetworkAccessPoliciesSubscriptionLocation_example.json | 2 +- .../GetJitNetworkAccessPoliciesSubscription_example.json | 2 +- .../GetJitNetworkAccessPolicy_example.json | 2 +- .../InitiateJitNetworkAccessPolicy_example.json | 2 +- .../GetSecuritySolutionsResourceGroupLocation_example.json | 2 +- .../GetSecuritySolutionsSubscription_example.json | 2 +- ...uritySolutionsReferenceDataSubscriptionLocation_example.json | 2 +- .../GetSecuritySolutionsReferenceDataSubscription_example.json | 2 +- .../CreateServerVulnerabilityAssessments_example.json | 2 +- .../DeleteServerVulnerabilityAssessments_example.json | 2 +- .../GetServerVulnerabilityAssessments_example.json | 2 +- ...yExtendedResourceServerVulnerabilityAssessments_example.json | 2 +- .../Topology/GetTopologySubscriptionLocation_example.json | 2 +- .../examples/Topology/GetTopologySubscription_example.json | 2 +- .../examples/Topology/GetTopology_example.json | 2 +- .../preview/2020-08-06-preview/externalSecuritySolutions.json | 2 +- .../preview/2020-08-06-preview/jitNetworkAccessPolicies.json | 2 +- .../2020-08-06-preview/securitySolutionsReferenceData.json | 2 +- .../2020-08-06-preview/serverVulnerabilityAssessments.json | 2 +- .../preview/2020-08-06-preview/topologies.json | 2 +- 58 files changed, 58 insertions(+), 58 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json index 0c1bbb667ab3..e78a66025cfb 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json index df4f9737d4e8..feb152d79b91 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json index 377faa308c52..da9b74f3ae98 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json index 4bfa1d9d474d..c74d0dc5c89b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json index 47a2a8e0c452..127cc0af9e09 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json index f3f48a5a6f61..9f2256c752e6 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json index ea7a8b9984c1..fe53b7da63a0 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json index dcaf5b9bdbbe..962d012ecb7d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json index be1d1f990c52..98b386038b59 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json index 76eadc462fe8..a3f32e714fd2 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json index 4e6cc52eb451..3f9a1ea7b98a 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", "ascLocation": "centralus" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json index 3ea22dfae99a..3575f76f350d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json index db7cd6bc2e9b..69cf07d933a0 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", "resourceGroupName": "myResourceGroup", "ascLocation": "centralus", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json index bd31aa457af2..7896dfa9e563 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "groupName": "GROUP1", "ascLocation": "centralus" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json index 1270432ac816..0e7e64e69923 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "centralus", "groupName": "ERELGROUP1" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json index e61f53c406f4..38eee803f487 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "includePathRecommendations": true, "summary": false diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json index 043e6895f54c..008e20d86563 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "centralus", "groupName": "ERELGROUP1", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json index 5c8971c3bf59..38a071b168f7 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json index eff07cfaf4de..f412e48d1dd3 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b", "$expand": "links" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json index 6db02e032bfa..8078317d5ff9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json index 78b7a01d1cb6..dc6c1f8b1447 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json index 63873813b0ac..1e8f58da8349 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", "assessment": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json index 617146f3ec81..bf7c348dc4a1 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7", "assessmentMetadata": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json index 1ab5daf14e38..9cec994d2a09 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json index f2202a19c14f..389166a30492 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json index ae60eb4cbb9e..0c0cd58f0d24 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json index 937869acbbd8..0748bcd88359 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01" + "api-version": "2020-08-06-preview" }, "responses": { "200": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json index 8bde3eae2b3d..95bd9aaecdb1 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json index 7fdd44705361..754597f5b3ca 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myRg2", "ascLocation": "centralus", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json index dd0249b47d48..04003bd6333c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "centralus" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json index d629d7ab5bfd..284eff3e7adc 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json index 063a365fcdf0..1a7d18f3a66b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "defaultresourcegroup-eus", "ascLocation": "centralus", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json index 26626803e57d..eb7d1d32726d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "centralus" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json index 90c72216fc02..707680bd0a1c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json index a6d2b72050f2..d6a64b01bdda 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope", "resourceGroupName": "myRg1", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json index 6b5a94c52cc3..7f5891df2350 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope", "resourceGroupName": "myRg1", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json index 7c9ee01bb32b..e1d21e3e23b3 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope", "resourceGroupName": "myRg1" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json index 35e5db1c748d..72dcc0c80349 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myRg1" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json index fd30dbf338ea..4019d240910e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json index 920ad1d0824d..c626e57fbd8b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json index e81ccfd4cc46..ed8dc087f0a9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope", "resourceGroupName": "myRg1", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json index d944942dbf0c..10d331497ed9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westeurope", "resourceGroupName": "myRg1", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json index 6c0bd6832ccd..d6e43c0e3a19 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myRg2", "ascLocation": "centralus", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json index e255b72c1293..c7561f2feaad 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json index 1f8b43f377f2..bc9100dad89f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "ascLocation": "westcentralus" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json index ee3c112ca4cd..7fd9b61bc5c9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json index eaed80294950..0fd2b943997e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json index b47510ee03bc..62a559028f74 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json index 59dddaa785dd..e4cc27cfcbdf 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json index cdf6cd825bdb..b9fbdc60fe4b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "rg1", "resourceNamespace": "Microsoft.Compute", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json index 1d7dcfcca62a..3c6d2d35a25f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", "ascLocation": "centralus" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json index 1df605aaf115..ba986f6eff5a 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json index 46228d4d64f0..02534a721317 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2020-01-01", + "api-version": "2020-08-06-preview", "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", "resourceGroupName": "myservers", "ascLocation": "centralus", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json index 3b8b3b072232..8a5363c5745d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json index 9014390efee0..45d5b6fa9772 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json index 92b203a528f5..79a0963f51b5 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json index d21a7bca94c7..aba882f8794f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json index 5a898ec20dcc..20efa6415d82 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-01-01" + "version": "2020-08-06-preview" }, "host": "management.azure.com", "schemes": [ From 5b365e97541cf5ffb9163c40225431045bf385d4 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Thu, 6 Aug 2020 08:45:31 +0300 Subject: [PATCH 04/24] Clean API version --- .../2020-08-06-preview/SecuritySolutions.json | 238 ---- .../adaptiveNetworkHardenings.json | 412 ------- .../allowedConnections.json | 297 ----- .../applicationWhitelistings.json | 584 ---------- .../assessmentMetadata.json | 561 --------- .../2020-08-06-preview/assessments.json | 399 ------- .../discoveredSecuritySolutions.json | 263 ----- ...AdaptiveNetworkHardeningRules_example.json | 50 - .../GetAdaptiveNetworkHardening_example.json | 62 - ...urceAdaptiveNetworkHardenings_example.json | 65 -- ...nnectionsSubscriptionLocation_example.json | 65 -- ...llowedConnectionsSubscription_example.json | 64 - .../GetAllowedConnections_example.json | 63 - ...teAdaptiveApplicationControls_example.json | 13 - ...ptiveApplicationControlsGroup_example.json | 132 --- ...plicationControlsSubscription_example.json | 1028 ----------------- ...utAdaptiveApplicationControls_example.json | 229 ---- .../Assessments/DeleteAssessment_example.json | 11 - .../GetAssessmentWithExpand_example.json | 35 - .../Assessments/GetAssessment_example.json | 31 - .../Assessments/ListAssessments_example.json | 49 - .../Assessments/PutAssessment_example.json | 53 - ...essmentsMetadata_subscription_example.json | 53 - ...essmentsMetadata_subscription_example.json | 10 - .../GetAssessmentsMetadata_example.json | 33 - ...essmentsMetadata_subscription_example.json | 34 - .../ListAssessmentsMetadata_example.json | 78 -- ...essmentsMetadata_subscription_example.json | 61 - ...SolutionResourceGroupLocation_example.json | 25 - ...SolutionsSubscriptionLocation_example.json | 39 - ...SecuritySolutionsSubscription_example.json | 38 - .../GetExternalSecuritySolution_example.json | 28 - ...SolutionsSubscriptionLocation_example.json | 123 -- ...SecuritySolutionsSubscription_example.json | 122 -- .../CreateJitNetworkAccessPolicy_example.json | 111 -- .../DeleteJitNetworkAccessPolicy_example.json | 13 - ...PoliciesResourceGroupLocation_example.json | 66 -- ...rkAccessPoliciesResourceGroup_example.json | 65 -- ...sPoliciesSubscriptionLocation_example.json | 65 -- ...orkAccessPoliciesSubscription_example.json | 64 - .../GetJitNetworkAccessPolicy_example.json | 63 - ...nitiateJitNetworkAccessPolicy_example.json | 48 - ...olutionsResourceGroupLocation_example.json | 25 - ...SecuritySolutionsSubscription_example.json | 38 - ...renceDataSubscriptionLocation_example.json | 43 - ...ionsReferenceDataSubscription_example.json | 42 - ...erverVulnerabilityAssessments_example.json | 28 - ...erverVulnerabilityAssessments_example.json | 15 - ...erverVulnerabilityAssessments_example.json | 23 - ...erverVulnerabilityAssessments_example.json | 26 - ...tTopologySubscriptionLocation_example.json | 63 - .../GetTopologySubscription_example.json | 62 - .../Topology/GetTopology_example.json | 37 - .../externalSecuritySolutions.json | 388 ------- .../jitNetworkAccessPolicies.json | 770 ------------ .../securitySolutionsReferenceData.json | 212 ---- .../serverVulnerabilityAssessments.json | 351 ------ .../2020-08-06-preview/topologies.json | 301 ----- 58 files changed, 8267 deletions(-) delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json deleted file mode 100644 index e78a66025cfb..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/securitySolutions": { - "get": { - "x-ms-examples": { - "Get security solutions": { - "$ref": "./examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json" - } - }, - "tags": [ - "SecuritySolutions" - ], - "description": "Gets a list of Security Solutions for the subscription.", - "operationId": "SecuritySolutions_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecuritySolutionList" - } - }, - "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/locations/{ascLocation}/securitySolutions/{securitySolutionName}": { - "get": { - "x-ms-examples": { - "Get a security solution from a security data location": { - "$ref": "./examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json" - } - }, - "tags": [ - "SecuritySolutions" - ], - "description": "Gets a specific Security Solution.", - "operationId": "SecuritySolutions_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/SecuritySolutionName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecuritySolution" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "SecuritySolutionList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SecuritySolution" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "SecuritySolution": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SecuritySolutionProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "SecuritySolutionProperties": { - "type": "object", - "properties": { - "securityFamily": { - "type": "string", - "description": "The security family of the security solution", - "enum": [ - "Waf", - "Ngfw", - "SaasWaf", - "Va" - ], - "x-ms-enum": { - "name": "securityFamily", - "modelAsString": true, - "values": [ - { - "value": "Waf" - }, - { - "value": "Ngfw" - }, - { - "value": "SaasWaf" - }, - { - "value": "Va" - } - ] - } - }, - "provisioningState": { - "type": "string", - "description": "The security family provisioning State", - "enum": [ - "Succeeded", - "Failed", - "Updating" - ], - "x-ms-enum": { - "name": "provisioningState", - "modelAsString": true, - "values": [ - { - "value": "Succeeded" - }, - { - "value": "Failed" - }, - { - "value": "Updating" - } - ] - } - }, - "template": { - "type": "string", - "description": "The security solutions' template" - }, - "protectionStatus": { - "type": "string", - "description": "The security solutions' status" - } - }, - "required": [ - "securityFamily", - "provisioningState", - "template", - "protectionStatus" - ] - } - }, - "parameters": { - "SecuritySolutionName": { - "name": "securitySolutionName", - "type": "string", - "in": "path", - "required": true, - "description": "Name of security solution.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json deleted file mode 100644 index feb152d79b91..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json +++ /dev/null @@ -1,412 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings": { - "get": { - "x-ms-examples": { - "List Adaptive Network Hardenings resources of an extended resource": { - "$ref": "./examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json" - } - }, - "description": "Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.", - "tags": [ - "AdaptiveNetworkHardenings" - ], - "operationId": "AdaptiveNetworkHardenings_ListByExtendedResource", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdaptiveNetworkHardeningsList" - } - }, - "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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}": { - "get": { - "x-ms-examples": { - "Get a single Adaptive Network Hardening resource": { - "$ref": "./examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json" - } - }, - "tags": [ - "AdaptiveNetworkHardenings" - ], - "description": "Gets a single Adaptive Network Hardening resource", - "operationId": "AdaptiveNetworkHardenings_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/AdaptiveNetworkHardeningResourceName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdaptiveNetworkHardening" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}": { - "post": { - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Enforces the given rules on the NSG(s) listed in the request": { - "$ref": "./examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json" - } - }, - "tags": [ - "AdaptiveNetworkHardenings" - ], - "description": "Enforces the given rules on the NSG(s) listed in the request", - "operationId": "AdaptiveNetworkHardenings_Enforce", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/AdaptiveNetworkHardeningResourceName" - }, - { - "$ref": "#/parameters/AdaptiveNetworkHardeningEnforceAction" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AdaptiveNetworkHardeningEnforceRequest" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "202": { - "description": "Accepted" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "PortNumber": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "Rule": { - "description": "Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked", - "properties": { - "name": { - "description": "The name of the rule", - "type": "string" - }, - "direction": { - "description": "The rule's direction", - "type": "string", - "enum": [ - "Inbound", - "Outbound" - ], - "x-ms-enum": { - "name": "direction", - "modelAsString": true - } - }, - "destinationPort": { - "description": "The rule's destination port", - "$ref": "#/definitions/PortNumber" - }, - "protocols": { - "description": "The rule's transport protocols", - "type": "array", - "items": { - "type": "string", - "enum": [ - "TCP", - "UDP" - ], - "x-ms-enum": { - "name": "transportProtocol", - "modelAsString": true - } - } - }, - "ipAddresses": { - "description": "The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "EffectiveNetworkSecurityGroups": { - "description": "Describes the Network Security Groups effective on a network interface", - "properties": { - "networkInterface": { - "description": "The Azure resource ID of the network interface", - "type": "string" - }, - "networkSecurityGroups": { - "description": "The Network Security Groups effective on the network interface", - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "AdaptiveNetworkHardeningProperties": { - "description": "Adaptive Network Hardening resource properties", - "properties": { - "rules": { - "description": "The security rules which are recommended to be effective on the VM", - "type": "array", - "items": { - "$ref": "#/definitions/Rule" - } - }, - "rulesCalculationTime": { - "type": "string", - "format": "date-time", - "description": "The UTC time on which the rules were calculated" - }, - "effectiveNetworkSecurityGroups": { - "description": "The Network Security Groups effective on the network interfaces of the protected resource", - "type": "array", - "items": { - "$ref": "#/definitions/EffectiveNetworkSecurityGroups" - } - } - } - }, - "AdaptiveNetworkHardening": { - "description": "The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource", - "properties": { - "properties": { - "description": "Properties of the Adaptive Network Hardening resource", - "x-ms-client-flatten": true, - "$ref": "#/definitions/AdaptiveNetworkHardeningProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "AdaptiveNetworkHardeningsList": { - "description": "Response for ListAdaptiveNetworkHardenings API service call", - "properties": { - "value": { - "description": "A list of Adaptive Network Hardenings resources", - "type": "array", - "items": { - "$ref": "#/definitions/AdaptiveNetworkHardening" - } - }, - "nextLink": { - "description": "The URL to get the next set of results", - "type": "string" - } - } - }, - "AdaptiveNetworkHardeningEnforceRequest": { - "type": "object", - "properties": { - "rules": { - "type": "array", - "description": "The rules to enforce", - "items": { - "$ref": "#/definitions/Rule" - } - }, - "networkSecurityGroups": { - "type": "array", - "description": "The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules", - "items": { - "type": "string" - } - } - }, - "required": [ - "rules", - "networkSecurityGroups" - ] - } - }, - "parameters": { - "AdaptiveNetworkHardeningResourceName": { - "name": "adaptiveNetworkHardeningResourceName", - "in": "path", - "description": "The name of the Adaptive Network Hardening resource.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "AdaptiveNetworkHardeningEnforceAction": { - "name": "adaptiveNetworkHardeningEnforceAction", - "type": "string", - "in": "path", - "required": true, - "description": "Enforces the given rules on the NSG(s) listed in the request", - "enum": [ - "enforce" - ], - "x-ms-parameter-location": "method" - }, - "AdaptiveNetworkHardeningEnforceRequest": { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdaptiveNetworkHardeningEnforceRequest" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json deleted file mode 100644 index da9b74f3ae98..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/allowedConnections": { - "get": { - "x-ms-examples": { - "Get allowed connections on a subscription": { - "$ref": "./examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json" - } - }, - "tags": [ - "AllowedConnections" - ], - "description": "Gets the list of all possible traffic between resources for the subscription", - "operationId": "AllowedConnections_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AllowedConnectionsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections": { - "get": { - "x-ms-examples": { - "Get allowed connections on a subscription from security data location": { - "$ref": "./examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json" - } - }, - "tags": [ - "AllowedConnections" - ], - "description": "Gets the list of all possible traffic between resources for the subscription and location.", - "operationId": "AllowedConnections_ListByHomeRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AllowedConnectionsList" - } - }, - "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/locations/{ascLocation}/allowedConnections/{connectionType}": { - "get": { - "x-ms-examples": { - "Get allowed connections": { - "$ref": "./examples/AllowedConnections/GetAllowedConnections_example.json" - } - }, - "tags": [ - "AllowedConnections" - ], - "description": "Gets the list of all possible traffic between resources for the subscription and location, based on connection type.", - "operationId": "AllowedConnections_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/ConnectionType" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AllowedConnectionsResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "AllowedConnectionsList": { - "type": "object", - "description": "List of all possible traffic between Azure resources", - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/AllowedConnectionsResource" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "AllowedConnectionsResource": { - "type": "object", - "description": "The resource whose properties describes the allowed traffic between Azure resources", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "readOnly": true, - "$ref": "#/definitions/AllowedConnectionsResourceProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "AllowedConnectionsResourceProperties": { - "type": "object", - "description": "Describes the allowed traffic between Azure resources", - "properties": { - "calculatedDateTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "The UTC time on which the allowed connections resource was calculated" - }, - "connectableResources": { - "type": "array", - "readOnly": true, - "description": "List of connectable resources", - "items": { - "$ref": "#/definitions/ConnectableResource" - } - } - } - }, - "ConnectableResource": { - "type": "object", - "description": "Describes the allowed inbound and outbound traffic of an Azure resource", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The Azure resource id" - }, - "inboundConnectedResources": { - "type": "array", - "readOnly": true, - "description": "The list of Azure resources that the resource has inbound allowed connection from", - "items": { - "$ref": "#/definitions/ConnectedResource" - } - }, - "outboundConnectedResources": { - "type": "array", - "readOnly": true, - "description": "The list of Azure resources that the resource has outbound allowed connection to", - "items": { - "$ref": "#/definitions/ConnectedResource" - } - } - } - }, - "ConnectedResource": { - "type": "object", - "description": "Describes properties of a connected resource", - "properties": { - "connectedResourceId": { - "type": "string", - "readOnly": true, - "description": "The Azure resource id of the connected resource" - }, - "tcpPorts": { - "type": "string", - "readOnly": true, - "description": "The allowed tcp ports" - }, - "udpPorts": { - "type": "string", - "readOnly": true, - "description": "The allowed udp ports" - } - } - } - }, - "parameters": { - "ConnectionType": { - "name": "connectionType", - "type": "string", - "in": "path", - "description": "The type of allowed connections (Internal, External)", - "required": true, - "enum": [ - "Internal", - "External" - ], - "x-ms-enum": { - "name": "connectionType", - "modelAsString": true, - "values": [ - { - "value": "Internal" - }, - { - "value": "External" - } - ] - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json deleted file mode 100644 index c74d0dc5c89b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json +++ /dev/null @@ -1,584 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/applicationWhitelistings": { - "get": { - "description": "Gets a list of application control machine groups for the subscription.", - "operationId": "AdaptiveApplicationControls_List", - "x-ms-examples": { - "Gets a list of application control groups of machines for the subscription": { - "$ref": "./examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json" - } - }, - "tags": [ - "applicationWhitelistings" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/IncludePathRecommendations" - }, - { - "$ref": "#/parameters/Summary" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdaptiveApplicationControlGroups" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}": { - "get": { - "description": "Gets an application control VM/server group.", - "operationId": "AdaptiveApplicationControls_Get", - "x-ms-examples": { - "Gets a configured application control VM/server group": { - "$ref": "./examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json" - } - }, - "tags": [ - "applicationWhitelistings" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/GroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdaptiveApplicationControlGroup" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "tags": [ - "applicationWhitelistings" - ], - "x-ms-examples": { - "Update an application control machine group by adding a new application": { - "$ref": "./examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json" - } - }, - "description": "Update an application control machine group", - "operationId": "AdaptiveApplicationControls_Put", - "consumes": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/GroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AdaptiveApplicationControlGroup" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AdaptiveApplicationControlGroup" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete an application control machine group": { - "$ref": "./examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json" - } - }, - "tags": [ - "applicationWhitelistings" - ], - "description": "Delete an application control machine group", - "operationId": "AdaptiveApplicationControls_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/GroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK - The response indicates that the delete operation completed successfully" - }, - "202": { - "description": "Accepted. The response indicates the delete operation is performed in the background." - }, - "204": { - "description": "No Content. The response indicates the resource is already deleted." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "AdaptiveApplicationControlGroups": { - "type": "object", - "description": "Represents a list of machine groups and set of rules that are recommended by Azure Security Center to be allowed", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AdaptiveApplicationControlGroup" - } - } - } - }, - "AdaptiveApplicationControlGroup": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AdaptiveApplicationControlGroupData" - } - }, - "required": [ - "properties" - ], - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "AdaptiveApplicationControlGroupData": { - "type": "object", - "description": "Represents a machines group and set of rules to be allowed running on a machine", - "properties": { - "enforcementMode": { - "$ref": "#/definitions/EnforcementMode" - }, - "protectionMode": { - "$ref": "#/definitions/ProtectionMode" - }, - "configurationStatus": { - "readOnly": true, - "$ref": "#/definitions/ConfigurationStatus" - }, - "recommendationStatus": { - "readOnly": true, - "$ref": "#/definitions/RecommendationStatus" - }, - "issues": { - "readOnly": true, - "$ref": "#/definitions/AdaptiveApplicationControlIssuesSummaries" - }, - "sourceSystem": { - "readOnly": true, - "$ref": "#/definitions/SourceSystem" - }, - "vmRecommendations": { - "$ref": "#/definitions/VmRecommendations" - }, - "pathRecommendations": { - "$ref": "#/definitions/PathRecommendations" - } - } - }, - "ConfigurationStatus": { - "type": "string", - "description": "The configuration status of the machines group or machine or rule", - "enum": [ - "Configured", - "NotConfigured", - "InProgress", - "Failed", - "NoStatus" - ] - }, - "EnforcementMode": { - "type": "string", - "description": "The application control policy enforcement/protection mode of the machine group", - "enum": [ - "Audit", - "Enforce", - "None" - ] - }, - "EnforcementSupport": { - "type": "string", - "description": "The machine supportability of Enforce feature", - "enum": [ - "Supported", - "NotSupported", - "Unknown" - ] - }, - "ProtectionMode": { - "type": "object", - "description": "The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.", - "properties": { - "exe": { - "$ref": "#/definitions/EnforcementMode" - }, - "msi": { - "$ref": "#/definitions/EnforcementMode" - }, - "script": { - "$ref": "#/definitions/EnforcementMode" - }, - "executable": { - "$ref": "#/definitions/EnforcementMode" - } - } - }, - "RecommendationStatus": { - "type": "string", - "description": "The initial recommendation status of the machine group or machine", - "enum": [ - "Recommended", - "NotRecommended", - "NotAvailable", - "NoStatus" - ] - }, - "RecommendationAction": { - "type": "string", - "description": "The recommendation action of the machine or rule", - "enum": [ - "Recommended", - "Add", - "Remove" - ] - }, - "RecommendationType": { - "type": "string", - "description": "The type of the rule to be allowed", - "enum": [ - "File", - "FileHash", - "PublisherSignature", - "ProductSignature", - "BinarySignature", - "VersionAndAboveSignature" - ] - }, - "AdaptiveApplicationControlIssue": { - "type": "string", - "description": "An alert that machines within a group can have", - "enum": [ - "ViolationsAudited", - "ViolationsBlocked", - "MsiAndScriptViolationsAudited", - "MsiAndScriptViolationsBlocked", - "ExecutableViolationsAudited", - "RulesViolatedManually" - ] - }, - "FileType": { - "type": "string", - "description": "The type of the file (for Linux files - Executable is used)", - "enum": [ - "Exe", - "Dll", - "Msi", - "Script", - "Executable", - "Unknown" - ] - }, - "SourceSystem": { - "type": "string", - "description": "The source type of the machine group", - "enum": [ - "Azure_AppLocker", - "Azure_AuditD", - "NonAzure_AppLocker", - "NonAzure_AuditD", - "None" - ] - }, - "AdaptiveApplicationControlIssueSummary": { - "type": "object", - "description": "Represents a summary of the alerts of the machine group", - "properties": { - "issue": { - "$ref": "#/definitions/AdaptiveApplicationControlIssue" - }, - "numberOfVms": { - "type": "number", - "description": "The number of machines in the group that have this alert" - } - } - }, - "AdaptiveApplicationControlIssuesSummaries": { - "type": "array", - "items": { - "$ref": "#/definitions/AdaptiveApplicationControlIssueSummary" - } - }, - "VmRecommendations": { - "type": "array", - "items": { - "$ref": "#/definitions/VmRecommendation" - } - }, - "VmRecommendation": { - "type": "object", - "description": "Represents a machine that is part of a machine group", - "properties": { - "configurationStatus": { - "$ref": "#/definitions/ConfigurationStatus" - }, - "recommendationAction": { - "$ref": "#/definitions/RecommendationAction" - }, - "resourceId": { - "$ref": "#/definitions/VmResourceId" - }, - "enforcementSupport": { - "$ref": "#/definitions/EnforcementSupport" - } - } - }, - "PublisherInfo": { - "type": "object", - "description": "Represents the publisher information of a process/rule", - "properties": { - "publisherName": { - "type": "string", - "description": "The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, S = State or Province, and C = Country", - "example": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US" - }, - "productName": { - "type": "string", - "description": "The product name taken from the file's version resource", - "example": "GOOGLE CHROME" - }, - "binaryName": { - "type": "string", - "description": "The \"OriginalName\" field taken from the file's version resource", - "example": "CHROME.EXE" - }, - "version": { - "type": "string", - "description": "The binary file version taken from the file's version resource", - "example": "66.0.3359.139" - } - } - }, - "UserRecommendation": { - "type": "object", - "description": "Represents a user that is recommended to be allowed for a certain rule", - "properties": { - "username": { - "type": "string", - "description": "Represents a user that is recommended to be allowed for a certain rule", - "example": "LOCAL SYSTEM" - }, - "recommendationAction": { - "$ref": "#/definitions/RecommendationAction" - } - } - }, - "PathRecommendations": { - "type": "array", - "items": { - "$ref": "#/definitions/PathRecommendation" - } - }, - "PathRecommendation": { - "type": "object", - "description": "Represents a path that is recommended to be allowed and its properties", - "properties": { - "path": { - "type": "string", - "description": "The full path of the file, or an identifier of the application", - "example": "C:\\Windows\\System32\\calc.exe" - }, - "action": { - "$ref": "#/definitions/RecommendationAction" - }, - "type": { - "$ref": "#/definitions/RecommendationType" - }, - "publisherInfo": { - "$ref": "#/definitions/PublisherInfo" - }, - "common": { - "type": "boolean", - "description": "Whether the application is commonly run on the machine" - }, - "userSids": { - "type": "array", - "items": { - "type": "string", - "description": "A security identifier", - "example": "S-1-5-18" - } - }, - "usernames": { - "type": "array", - "items": { - "$ref": "#/definitions/UserRecommendation" - } - }, - "fileType": { - "$ref": "#/definitions/FileType" - }, - "configurationStatus": { - "$ref": "#/definitions/ConfigurationStatus" - } - } - }, - "GroupResourceId": { - "type": "string", - "description": "The azure resource id of the application control machine group", - "example": "/subscriptions/12345678-1234-1234-1234-123456789123/providers/Microsoft.Security/applicationWhitelistings/GROUP1" - }, - "VmResourceId": { - "type": "string", - "description": "The full resource id of the machine", - "example": "/subscriptions/12345678-1234-1234-1234-123456789123/resourcegroups/group/providers/microsoft.compute/virtualmachines/vm" - } - }, - "parameters": { - "GroupName": { - "name": "groupName", - "in": "path", - "description": "Name of an application control machine group", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "IncludePathRecommendations": { - "name": "includePathRecommendations", - "in": "query", - "description": "Include the policy rules", - "type": "boolean", - "required": false, - "enum": [ - false, - true - ], - "x-ms-parameter-location": "method" - }, - "Summary": { - "name": "summary", - "in": "query", - "description": "Return output in a summarized form", - "type": "boolean", - "required": false, - "enum": [ - false, - true - ], - "x-ms-parameter-location": "method" - }, - "AdaptiveApplicationControlGroup": { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdaptiveApplicationControlGroup" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json deleted file mode 100644 index 127cc0af9e09..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json +++ /dev/null @@ -1,561 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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": { - "/providers/Microsoft.Security/assessmentMetadata": { - "get": { - "x-ms-examples": { - "List security assessment metadata": { - "$ref": "./examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Get metadata information on all assessment types", - "operationId": "AssessmentsMetadata_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadataList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}": { - "get": { - "x-ms-examples": { - "Get security assessment metadata": { - "$ref": "./examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Get metadata information on an assessment type", - "operationId": "AssessmentsMetadata_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AssessmentsMetadataName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadata" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata": { - "get": { - "x-ms-examples": { - "List security assessment metadata for subscription": { - "$ref": "./examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Get metadata information on all assessment types in a specific subscription", - "operationId": "AssessmentsMetadata_ListBySubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadataList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}": { - "get": { - "x-ms-examples": { - "Get security assessment metadata for subscription": { - "$ref": "./examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Get metadata information on an assessment type in a specific subscription", - "operationId": "AssessmentsMetadata_GetInSubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AssessmentsMetadataName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadata" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create security assessment metadata for subscription": { - "$ref": "./examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Create metadata information on an assessment type in a specific subscription", - "operationId": "AssessmentsMetadata_CreateInSubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AssessmentsMetadataName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/SecurityAssessmentMetadata" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadata" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete a security assessment metadata for subscription": { - "$ref": "./examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json" - } - }, - "tags": [ - "Assessments Metadata" - ], - "description": "Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription", - "operationId": "AssessmentsMetadata_DeleteInSubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/AssessmentsMetadataName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "SecurityAssessmentMetadataList": { - "type": "object", - "description": "List of security assessment metadata", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SecurityAssessmentMetadata" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "SecurityAssessmentMetadata": { - "type": "object", - "description": "Security assessment metadata", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SecurityAssessmentMetadataProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "SecurityAssessmentMetadataProperties": { - "type": "object", - "description": "Describes properties of an assessment metadata.", - "properties": { - "displayName": { - "type": "string", - "description": "User friendly display name of the assessment" - }, - "policyDefinitionId": { - "readOnly": true, - "type": "string", - "description": "Azure resource ID of the policy definition that turns this assessment calculation on" - }, - "description": { - "type": "string", - "description": "Human readable description of the assessment" - }, - "remediationDescription": { - "type": "string", - "description": "Human readable description of what you should do to mitigate this security issue" - }, - "category": { - "type": "array", - "items": { - "type": "string", - "description": "The category of resource that is at risk when the assessment is unhealthy", - "enum": [ - "Compute", - "Networking", - "Data", - "IdentityAndAccess", - "IoT" - ], - "x-ms-enum": { - "name": "category", - "modelAsString": true, - "values": [ - { - "value": "Compute" - }, - { - "value": "Networking" - }, - { - "value": "Data" - }, - { - "value": "IdentityAndAccess" - }, - { - "value": "IoT" - } - ] - } - } - }, - "severity": { - "type": "string", - "description": "The severity level of the assessment", - "enum": [ - "Low", - "Medium", - "High" - ], - "x-ms-enum": { - "name": "severity", - "modelAsString": true, - "values": [ - { - "value": "Low" - }, - { - "value": "Medium" - }, - { - "value": "High" - } - ] - } - }, - "userImpact": { - "type": "string", - "description": "The user impact of the assessment", - "enum": [ - "Low", - "Moderate", - "High" - ], - "x-ms-enum": { - "name": "userImpact", - "modelAsString": true, - "values": [ - { - "value": "Low" - }, - { - "value": "Moderate" - }, - { - "value": "High" - } - ] - } - }, - "implementationEffort": { - "type": "string", - "description": "The implementation effort required to remediate this assessment", - "enum": [ - "Low", - "Moderate", - "High" - ], - "x-ms-enum": { - "name": "implementationEffort", - "modelAsString": true, - "values": [ - { - "value": "Low" - }, - { - "value": "Moderate" - }, - { - "value": "High" - } - ] - } - }, - "threats": { - "type": "array", - "items": { - "type": "string", - "description": "Threats impact of the assessment", - "enum": [ - "accountBreach", - "dataExfiltration", - "dataSpillage", - "maliciousInsider", - "elevationOfPrivilege", - "threatResistance", - "missingCoverage", - "denialOfService" - ], - "x-ms-enum": { - "name": "threats", - "modelAsString": true, - "values": [ - { - "value": "accountBreach" - }, - { - "value": "dataExfiltration" - }, - { - "value": "dataSpillage" - }, - { - "value": "maliciousInsider" - }, - { - "value": "elevationOfPrivilege" - }, - { - "value": "threatResistance" - }, - { - "value": "missingCoverage" - }, - { - "value": "denialOfService" - } - ] - } - } - }, - "preview": { - "type": "boolean", - "description": "True if this assessment is in preview release status" - }, - "assessmentType": { - "type": "string", - "description": "BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition", - "enum": [ - "BuiltIn", - "CustomPolicy", - "CustomerManaged", - "VerifiedPartner" - ], - "x-ms-enum": { - "name": "assessmentType", - "modelAsString": true, - "values": [ - { - "value": "BuiltIn", - "description": "Azure Security Center managed assessments" - }, - { - "value": "CustomPolicy", - "description": "User defined policies that are automatically ingested from Azure Policy to Azure Security Center" - }, - { - "value": "CustomerManaged", - "description": "User assessments pushed directly by the user or other third party to Azure Security Center" - }, - { - "value": "VerifiedPartner", - "description": "An assessment that was created by a verified 3rd party if the user connected it to ASC" - } - ] - } - }, - "partnerData": { - "$ref": "#/definitions/SecurityAssessmentMetadataPartnerData" - } - }, - "required": [ - "displayName", - "severity", - "assessmentType" - ] - }, - "SecurityAssessmentMetadataPartnerData": { - "type": "object", - "description": "Describes the partner that created the assessment", - "properties": { - "partnerName": { - "type": "string", - "description": "Name of the company of the partner" - }, - "productName": { - "type": "string", - "description": "Name of the product of the partner that created the assessment" - }, - "secret": { - "type": "string", - "description": "Secret to authenticate the partner and verify it created the assessment - write only", - "x-ms-secret": true - } - }, - "required": [ - "partnerName", - "secret" - ] - } - }, - "parameters": { - "AssessmentsMetadataName": { - "name": "assessmentMetadataName", - "in": "path", - "required": true, - "type": "string", - "description": "The Assessment Key - Unique key for the assessment type", - "x-ms-parameter-location": "method" - }, - "SecurityAssessmentMetadata": { - "name": "assessmentMetadata", - "in": "body", - "required": true, - "description": "AssessmentMetadata object", - "schema": { - "$ref": "#/definitions/SecurityAssessmentMetadata" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json deleted file mode 100644 index 9f2256c752e6..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/assessments.json +++ /dev/null @@ -1,399 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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": { - "/{scope}/providers/Microsoft.Security/assessments": { - "get": { - "x-ms-examples": { - "List security assessments": { - "$ref": "./examples/Assessments/ListAssessments_example.json" - } - }, - "tags": [ - "Assessments" - ], - "description": "Get security assessments on all your scanned resources inside a scope", - "operationId": "Assessments_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/Scope" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessmentList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}": { - "get": { - "x-ms-examples": { - "Get security recommendation task from security data location": { - "$ref": "./examples/Assessments/GetAssessment_example.json" - }, - "Get security recommendation task from security data location with expand parameter": { - "$ref": "./examples/Assessments/GetAssessmentWithExpand_example.json" - } - }, - "tags": [ - "Assessments" - ], - "description": "Get a security assessment on your scanned resource", - "operationId": "Assessments_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceId" - }, - { - "$ref": "#/parameters/AssessmentName" - }, - { - "$ref": "#/parameters/ExpandAssessments" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityAssessment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create security recommendation task on a resource": { - "$ref": "./examples/Assessments/PutAssessment_example.json" - } - }, - "tags": [ - "Assessments" - ], - "description": "Create a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result", - "operationId": "Assessments_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceId" - }, - { - "$ref": "#/parameters/AssessmentName" - }, - { - "$ref": "#/parameters/AssessmentBody" - } - ], - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/SecurityAssessment" - } - }, - "200": { - "description": "OK - Updated", - "schema": { - "$ref": "#/definitions/SecurityAssessment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete a security recommendation task on a resource": { - "$ref": "./examples/Assessments/DeleteAssessment_example.json" - } - }, - "tags": [ - "Assessments" - ], - "description": "Delete a security assessment on your resource. An assessment metadata that describes this assessment must be predefined with the same name before inserting the assessment result", - "operationId": "Assessments_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceId" - }, - { - "$ref": "#/parameters/AssessmentName" - } - ], - "responses": { - "200": { - "description": "OK - Assessment was deleted" - }, - "204": { - "description": "No Content - Assessment does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "SecurityAssessmentList": { - "type": "object", - "description": "Page of a security assessments list", - "properties": { - "value": { - "description": "Collection of security assessments in this page", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SecurityAssessment" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "SecurityAssessment": { - "type": "object", - "description": "Security assessment on a resource", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SecurityAssessmentProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "SecurityAssessmentProperties": { - "type": "object", - "description": "Describes properties of an assessment.", - "properties": { - "resourceDetails": { - "$ref": "../../../common/v1/types.json#/definitions/ResourceDetails" - }, - "displayName": { - "readOnly": true, - "type": "string", - "description": "User friendly display name of the assessment" - }, - "status": { - "$ref": "#/definitions/AssessmentStatus" - }, - "additionalData": { - "type": "object", - "description": "Additional data regarding the assessment", - "additionalProperties": { - "type": "string" - } - }, - "links": { - "$ref": "#/definitions/AssessmentLinks" - }, - "metadata": { - "$ref": "./assessmentMetadata.json#/definitions/SecurityAssessmentMetadataProperties" - }, - "partnersData": { - "$ref": "#/definitions/SecurityAssessmentPartnerData" - } - }, - "required": [ - "resourceDetails", - "status" - ] - }, - "SecurityAssessmentPartnerData": { - "type": "object", - "description": "Data regarding 3rd party partner integration", - "properties": { - "partnerName": { - "type": "string", - "description": "Name of the company of the partner" - }, - "secret": { - "type": "string", - "description": "secret to authenticate the partner - write only", - "x-ms-secret": true - } - }, - "required": [ - "partnerName", - "secret" - ] - }, - "AssessmentLinks": { - "type": "object", - "description": "Links relevant to the assessment", - "readOnly": true, - "properties": { - "azurePortalUri": { - "type": "string", - "description": "Link to assessment in Azure Portal", - "readOnly": true - } - } - }, - "AssessmentStatus": { - "type": "object", - "description": "The result of the assessment", - "properties": { - "code": { - "type": "string", - "description": "Programmatic code for the status of the assessment", - "enum": [ - "Healthy", - "Unhealthy", - "NotApplicable" - ], - "x-ms-enum": { - "name": "AssessmentStatusCode", - "modelAsString": true, - "values": [ - { - "value": "Healthy", - "description": "The resource is healthy" - }, - { - "value": "Unhealthy", - "description": "The resource has a security issue that needs to be addressed" - }, - { - "value": "NotApplicable", - "description": "Assessment for this resource did not happen" - } - ] - } - }, - "cause": { - "type": "string", - "description": "Programmatic code for the cause of the assessment status" - }, - "description": { - "type": "string", - "description": "Human readable description of the assessment status" - } - }, - "required": [ - "code" - ] - } - }, - "parameters": { - "ExpandAssessments": { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "description": "OData expand. Optional.", - "x-ms-parameter-location": "method", - "enum": [ - "links", - "metadata" - ], - "x-ms-enum": { - "name": "ExpandEnum", - "modelAsString": true, - "values": [ - { - "value": "links", - "description": "All links associated with an assessment" - }, - { - "value": "metadata", - "description": "Assessment metadata" - } - ] - } - }, - "AssessmentName": { - "name": "assessmentName", - "in": "path", - "required": true, - "type": "string", - "description": "The Assessment Key - Unique key for the assessment type", - "x-ms-parameter-location": "method" - }, - "AssessmentBody": { - "name": "assessment", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SecurityAssessment" - }, - "description": "Calculated assessment on a pre-defined assessment metadata", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json deleted file mode 100644 index fe53b7da63a0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/discoveredSecuritySolutions": { - "get": { - "x-ms-examples": { - "Get discovered security solutions": { - "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json" - } - }, - "tags": [ - "DiscoveredSecuritySolutions" - ], - "description": "Gets a list of discovered Security Solutions for the subscription.", - "operationId": "DiscoveredSecuritySolutions_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DiscoveredSecuritySolutionList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions": { - "get": { - "x-ms-examples": { - "Get discovered security solutions from a security data location": { - "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json" - } - }, - "tags": [ - "DiscoveredSecuritySolutions" - ], - "description": "Gets a list of discovered Security Solutions for the subscription and location.", - "operationId": "DiscoveredSecuritySolutions_ListByHomeRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DiscoveredSecuritySolutionList" - } - }, - "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/locations/{ascLocation}/discoveredSecuritySolutions/{discoveredSecuritySolutionName}": { - "get": { - "x-ms-examples": { - "Get discovered security solution from a security data location": { - "$ref": "./examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json" - } - }, - "tags": [ - "DiscoveredSecuritySolutions" - ], - "description": "Gets a specific discovered Security Solution.", - "operationId": "DiscoveredSecuritySolutions_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/DiscoveredSecuritySolutionName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DiscoveredSecuritySolution" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "DiscoveredSecuritySolutionList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DiscoveredSecuritySolution" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "DiscoveredSecuritySolution": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DiscoveredSecuritySolutionProperties" - } - }, - "required": [ - "properties" - ], - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "DiscoveredSecuritySolutionProperties": { - "type": "object", - "properties": { - "securityFamily": { - "type": "string", - "description": "The security family of the discovered solution", - "enum": [ - "Waf", - "Ngfw", - "SaasWaf", - "Va" - ], - "x-ms-enum": { - "name": "securityFamily", - "modelAsString": true, - "values": [ - { - "value": "Waf" - }, - { - "value": "Ngfw" - }, - { - "value": "SaasWaf" - }, - { - "value": "Va" - } - ] - } - }, - "offer": { - "type": "string", - "description": "The security solutions' image offer" - }, - "publisher": { - "type": "string", - "description": "The security solutions' image publisher" - }, - "sku": { - "type": "string", - "description": "The security solutions' image sku" - } - }, - "required": [ - "securityFamily", - "offer", - "publisher", - "sku" - ] - } - }, - "parameters": { - "DiscoveredSecuritySolutionName": { - "name": "discoveredSecuritySolutionName", - "type": "string", - "in": "path", - "required": true, - "description": "Name of a discovered security solution.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json deleted file mode 100644 index 962d012ecb7d..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/EnforceAdaptiveNetworkHardeningRules_example.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1", - "adaptiveNetworkHardeningResourceName": "default", - "adaptiveNetworkHardeningEnforceAction": "enforce", - "body": { - "rules": [ - { - "name": "rule1", - "direction": "Inbound", - "destinationPort": 3389, - "protocols": [ - "TCP" - ], - "ipAddresses": [ - "100.10.1.1", - "200.20.2.2", - "81.199.3.0/24" - ] - }, - { - "name": "rule2", - "direction": "Inbound", - "destinationPort": 22, - "protocols": [ - "TCP" - ], - "ipAddresses": [] - } - ], - "networkSecurityGroups": [ - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1", - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nsg2" - ] - } - }, - "responses": { - "200": { - "description": "OK." - }, - "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json deleted file mode 100644 index 98b386038b59..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/GetAdaptiveNetworkHardening_example.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1", - "adaptiveNetworkHardeningResourceName": "default" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings/default", - "name": "default", - "type": "Microsoft.Security/adaptiveNetworkHardenings", - "properties": { - "rulesCalculationTime": "2018-08-15T00:00:00.0000000Z", - "rules": [ - { - "name": "rule1", - "direction": "Inbound", - "destinationPort": 3389, - "protocols": [ - "TCP" - ], - "ipAddresses": [ - "100.10.1.1", - "200.20.2.2", - "81.199.3.0/24" - ] - }, - { - "name": "rule2", - "direction": "Inbound", - "destinationPort": 22, - "protocols": [ - "TCP" - ], - "ipAddresses": [] - } - ], - "effectiveNetworkSecurityGroups": [ - { - "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1", - "networkSecurityGroups": [ - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg", - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/subnetNsg" - ] - }, - { - "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg2/providers/Microsoft.Network/networkInterfaces/nic2", - "networkSecurityGroups": [ - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg2/providers/Microsoft.Network/networkSecurityGroups/nicNsg" - ] - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json deleted file mode 100644 index a3f32e714fd2..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AdaptiveNetworkHardenings/ListByExtendedResourceAdaptiveNetworkHardenings_example.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/adaptiveNetworkHardenings/default", - "name": "default", - "type": "Microsoft.Security/adaptiveNetworkHardenings", - "properties": { - "rulesCalculationTime": "2018-08-15T00:00:00.0000000Z", - "rules": [ - { - "name": "rule1", - "direction": "Inbound", - "destinationPort": 3389, - "protocols": [ - "TCP" - ], - "ipAddresses": [ - "100.10.1.1", - "200.20.2.2", - "81.199.3.0/24" - ] - }, - { - "name": "rule2", - "direction": "Inbound", - "destinationPort": 22, - "protocols": [ - "TCP" - ], - "ipAddresses": [] - } - ], - "effectiveNetworkSecurityGroups": [ - { - "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1", - "networkSecurityGroups": [ - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg", - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/subnetNsg" - ] - }, - { - "networkInterface": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Network/networkInterfaces/nic2", - "networkSecurityGroups": [ - "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nicNsg2" - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json deleted file mode 100644 index 3f9a1ea7b98a..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscriptionLocation_example.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", - "ascLocation": "centralus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "type": "Microsoft.Security/locations/allowedConnections", - "properties": { - "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", - "connectableResources": [ - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", - "inboundConnectedResources": [], - "outboundConnectedResources": [] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", - "name": "Internal", - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json deleted file mode 100644 index 3575f76f350d..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnectionsSubscription_example.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "type": "Microsoft.Security/locations/allowedConnections", - "properties": { - "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", - "connectableResources": [ - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", - "inboundConnectedResources": [], - "outboundConnectedResources": [] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", - "name": "Internal", - "location": "centralus" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json deleted file mode 100644 index 69cf07d933a0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AllowedConnections/GetAllowedConnections_example.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", - "resourceGroupName": "myResourceGroup", - "ascLocation": "centralus", - "connectionType": "Internal" - }, - "responses": { - "200": { - "body": { - "type": "Microsoft.Security/locations/allowedConnections", - "properties": { - "calculatedDateTime": "2018-08-06T14:55:32.3518545Z", - "connectableResources": [ - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2", - "inboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ], - "outboundConnectedResources": [ - { - "connectedResourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1", - "tcpPorts": "[0-21,23-3388,3390-5984,5987-65535]", - "udpPorts": "[0-21,23-3388,3390-5984,5987-65535]" - } - ] - }, - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3", - "inboundConnectedResources": [], - "outboundConnectedResources": [] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal", - "name": "Internal", - "location": "centralus" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json deleted file mode 100644 index 7896dfa9e563..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/DeleteAdaptiveApplicationControls_example.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "groupName": "GROUP1", - "ascLocation": "centralus" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json deleted file mode 100644 index 0e7e64e69923..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsGroup_example.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "centralus", - "groupName": "ERELGROUP1" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", - "name": "ERELGROUP1", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "centralus", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "Audit", - "script": "None" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - } - ], - "pathRecommendations": [ - { - "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "MICROSOFT® COREXT", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "C:\\directory\\file.exe", - "type": "File", - "common": true, - "action": "Add", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - } - ], - "configurationStatus": "Configured", - "issues": [], - "sourceSystem": "Azure_AppLocker" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json deleted file mode 100644 index 38eee803f487..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/GetAdaptiveApplicationControlsSubscription_example.json +++ /dev/null @@ -1,1028 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "includePathRecommendations": true, - "summary": false - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/AMIT-VA", - "name": "AMIT-VA", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "centralus", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "Audit", - "script": "None" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-dsc/providers/microsoft.compute/virtualmachines/erelh-14011", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/amit-va/providers/microsoft.compute/virtualmachines/ream-test", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14060", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - } - ], - "pathRecommendations": [ - { - "path": "C:\\Windows\\SoftwareDistribution\\Download\\Install\\Windows-KB890830-x64-V5.53-delta.exe", - "type": "File", - "common": true, - "action": "Remove", - "usernames": [ - { - "username": "LOCAL SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-5-18" - ], - "fileType": "Exe", - "configurationStatus": "NoStatus" - }, - { - "path": "C:\\WindowsAzure\\GuestAgent_2.7.1198.822\\CollectGuestLogs.exe", - "type": "File", - "common": true, - "action": "Remove", - "usernames": [ - { - "username": "LOCAL SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-5-18" - ], - "fileType": "Exe", - "configurationStatus": "NoStatus" - }, - { - "path": "C:\\Windows\\System32\\wbem\\WmiPrvSE.exe", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-5-18", - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - } - ], - "configurationStatus": "Configured", - "issues": [], - "sourceSystem": "Azure_AppLocker" - } - }, - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", - "name": "ERELGROUP1", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "centralus", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "None", - "script": "None" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", - "recommendationAction": "Recommended", - "enforcementSupport": "NotSupported" - } - ], - "pathRecommendations": [ - { - "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - } - ], - "configurationStatus": "Configured", - "issues": [], - "sourceSystem": "Azure_AppLocker" - } - }, - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/GROUP1", - "name": "GROUP1", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "centralus", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "None", - "script": "None" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/talk-va/providers/microsoft.compute/virtualmachines/tal-win-vm-jit", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/myresourcegroup/providers/microsoft.compute/virtualmachines/myvmweb", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/v-arrikl-scheduledapps/providers/microsoft.compute/virtualmachines/v-arrikl-14061", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - } - ], - "pathRecommendations": [ - { - "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "MICROSOFT® COREXT", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%PROGRAMFILES%\\RAPID7\\INSIGHT AGENT\\COMPONENTS\\INSIGHT_AGENT\\2.6.7.9\\GET_PROXY.EXE", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=RAPID7 LLC, L=BOSTON, S=MASSACHUSETTS, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%PROGRAMFILES%\\GOOGLE\\CHROME\\APPLICATION\\CHROME.EXE", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "O=GOOGLE LLC, L=MOUNTAIN VIEW, S=CA, C=US", - "productName": "GOOGLE CHROME", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US\\GOOGLE UPDATE\\*\\0.0.0.0", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "O=GOOGLE INC, L=MOUNTAIN VIEW, S=CALIFORNIA, C=US", - "productName": "GOOGLE UPDATE", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - } - ], - "configurationStatus": "Configured", - "issues": [], - "sourceSystem": "Azure_AppLocker" - } - }, - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westeurope/applicationWhitelistings/GROUP1", - "name": "GROUP1", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "westeurope", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "executable": "Audit" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/nic-no-pip/providers/microsoft.compute/virtualmachines/nic-no-pip-vm", - "recommendationAction": "Recommended", - "enforcementSupport": "Unknown" - } - ], - "pathRecommendations": [ - { - "path": "/sbin/init", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/sbin/upstart-udev-bridge", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/lib/systemd/systemd-udevd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/sbin/upstart-socket-bridge", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/sbin/dhclient", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/bin/python3.4", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/sbin/upstart-file-bridge", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/bin/dbus-daemon", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "messagebus", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/lib/systemd/systemd-logind", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/sbin/getty", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/atd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/cron", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/acpid", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/sshd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_vss_daemon", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/lib/linux-lts-xenial-tools-4.4.0-103/hv_kvp_daemon", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/nscd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "unscd", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/ntpd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "ntp", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/microsoft/auoms/bin/auomscollect", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/omi/bin/omiserver", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/omi/bin/omiengine", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "omi", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/omi/bin/omiagent", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/sbin/rsyslogd", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "syslog", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/bin/python2.7", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - }, - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/microsoft/omsagent/ruby/bin/ruby", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/microsoft/auoms/bin/auoms", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/local/qualys/cloud-agent/bin/qualys-cloud-agent", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/bin/dash", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - }, - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/bin/sleep", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/dsc/bin/dsc_host", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/bin/sudo", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/bin/bash", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/bin/apt-get", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/lib/apt/methods/http", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/lib/apt/methods/gpgv", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/lib/apt/methods/copy", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "root", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/usr/bin/pgrep", - "type": "File", - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - }, - { - "path": "/opt/microsoft/omsconfig/bin/omsconsistencyinvoker", - "type": "File", - "common": false, - "action": "Recommended", - "usernames": [ - { - "username": "omsagent", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Executable", - "configurationStatus": "Configured" - } - ], - "configurationStatus": "Configured", - "issues": [ - { - "issue": "ExecutableViolationsAudited", - "numberOfVms": 1 - } - ], - "sourceSystem": "Azure_AuditD" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json deleted file mode 100644 index 008e20d86563..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ApplicationWhitelistings/PutAdaptiveApplicationControls_example.json +++ /dev/null @@ -1,229 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "centralus", - "groupName": "ERELGROUP1", - "body": { - "properties": { - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "None", - "script": "None" - }, - "vmRecommendations": [ - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - }, - { - "configurationStatus": "Configured", - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", - "recommendationAction": "Recommended", - "enforcementSupport": "Supported" - } - ], - "pathRecommendations": [ - { - "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "MICROSOFT® COREXT", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "C:\\directory\\file.exe", - "action": "Add", - "type": "File", - "common": true - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/centralus/applicationWhitelistings/ERELGROUP1", - "name": "ERELGROUP1", - "type": "Microsoft.Security/applicationWhitelistings", - "location": "centralus", - "properties": { - "recommendationStatus": "Recommended", - "enforcementMode": "Audit", - "protectionMode": { - "exe": "Audit", - "msi": "None", - "script": "None" - }, - "vmRecommendations": [ - { - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/erelh-stable/providers/microsoft.compute/virtualmachines/erelh-16090", - "recommendationAction": "Recommended" - }, - { - "resourceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/matanvs/providers/microsoft.compute/virtualmachines/matanvs19", - "recommendationAction": "Recommended" - } - ], - "pathRecommendations": [ - { - "path": "[Exe] O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\\*\\*\\0.0.0.0", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\SECAGENT\\WASECAGENTPROV.EXE", - "type": "ProductSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "MICROSOFT® COREXT", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "%OSDRIVE%\\WINDOWSAZURE\\PACKAGES_201973_7415\\COLLECTGUESTLOGS.EXE", - "type": "PublisherSignature", - "publisherInfo": { - "publisherName": "CN=MICROSOFT AZURE DEPENDENCY CODE SIGN", - "productName": "*", - "binaryName": "*", - "version": "0.0.0.0" - }, - "common": true, - "action": "Recommended", - "usernames": [ - { - "username": "NT AUTHORITY\\SYSTEM", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "Configured" - }, - { - "path": "C:\\directory\\file.exe", - "type": "File", - "common": true, - "action": "Add", - "usernames": [ - { - "username": "Everyone", - "recommendationAction": "Recommended" - } - ], - "userSids": [ - "S-1-1-0" - ], - "fileType": "Exe", - "configurationStatus": "NotConfigured" - } - ], - "configurationStatus": "InProgress", - "issues": [], - "sourceSystem": "Azure_AppLocker" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json deleted file mode 100644 index 38a071b168f7..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/DeleteAssessment_example.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", - "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json deleted file mode 100644 index f412e48d1dd3..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessmentWithExpand_example.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", - "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b", - "$expand": "links" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" - }, - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "status": { - "code": "NotApplicable", - "cause": "OffByPolicy", - "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" - }, - "additionalData": { - "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" - }, - "links": { - "azurePortalUri": "https://www.portal.azure.com/?fea#blade/Microsoft_Azure_Security/RecommendationsBlade/assessmentKey/21300918-b2e3-0346-785f-c77ff57d243b" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json deleted file mode 100644 index 8078317d5ff9..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/GetAssessment_example.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", - "assessmentName": "21300918-b2e3-0346-785f-c77ff57d243b" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" - }, - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "status": { - "code": "NotApplicable", - "cause": "OffByPolicy", - "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" - }, - "additionalData": { - "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json deleted file mode 100644 index dc6c1f8b1447..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/ListAssessments_example.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1" - }, - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "status": { - "code": "Healthy" - } - } - }, - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2/providers/Microsoft.Security/assessments/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2" - }, - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "status": { - "code": "NotApplicable", - "cause": "OffByPolicy", - "description": "The effective policy for the assessment was evaluated to off - use Microsoft.Authorization/policyAssignments to turn this assessment on" - }, - "additionalData": { - "linkedWorkspaceId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myLaWorkspace" - } - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json deleted file mode 100644 index 1e8f58da8349..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Assessments/PutAssessment_example.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "resourceId": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2", - "assessmentName": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", - "assessment": { - "properties": { - "resourceDetails": { - "source": "Azure" - }, - "status": { - "code": "Healthy" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e", - "name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e" - }, - "displayName": "Install internal agent on VM", - "status": { - "code": "Healthy" - } - } - } - }, - "201": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e", - "name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e", - "type": "Microsoft.Security/assessments", - "properties": { - "resourceDetails": { - "source": "Azure", - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/providers/Microsoft.Security/assessments/8bb8be0a-6010-4789-812f-e4d661c4ed0e" - }, - "displayName": "Install internal agent on VM", - "status": { - "code": "Healthy" - } - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json deleted file mode 100644 index bf7c348dc4a1..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/CreateAssessmentsMetadata_subscription_example.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", - "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7", - "assessmentMetadata": { - "properties": { - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", - "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "CustomerManaged" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Security/assessmentMetadata/ca039e75-a276-4175-aebc-bcd41e4b14b7", - "name": "ca039e75-a276-4175-aebc-bcd41e4b14b7", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "My organization security assessment", - "description": "Assessment that my organization created to view our security assessment in Azure Security Center", - "remediationDescription": "Fix it with these remediation instructions", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "CustomerManaged" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json deleted file mode 100644 index 9cec994d2a09..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/DeleteAssessmentsMetadata_subscription_example.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", - "assessmentMetadataName": "ca039e75-a276-4175-aebc-bcd41e4b14b7" - }, - "responses": { - "200": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json deleted file mode 100644 index 389166a30492..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_example.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", - "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "BuiltIn" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json deleted file mode 100644 index 0c0cd58f0d24..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/GetAssessmentsMetadata_subscription_example.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e", - "assessmentMetadataName": "21300918-b2e3-0346-785f-c77ff57d243b" - }, - "responses": { - "200": { - "body": { - "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", - "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "BuiltIn" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json deleted file mode 100644 index 0748bcd88359..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_example.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", - "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "BuiltIn" - } - }, - { - "id": "/providers/Microsoft.Security/assessmentMetadata/bc303248-3d14-44c2-96a0-55f5c326b5fe", - "name": "bc303248-3d14-44c2-96a0-55f5c326b5fe", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Close management ports on your virtual machines", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917", - "description": "Open remote management ports expose your VM to a high level of risk from internet-based attacks that attempt to brute force credentials to gain admin access to the machine.", - "remediationDescription": "We recommend that you edit the inbound rules of the below virtual machines to restrict access to specific source ranges.
To restrict the access to your virtual machines: 1. Click on a VM from the list below 2. At the 'Networking' blade, click on each of the rules that allow management ports (e.g. RDP-3389, WINRM-5985, SSH-22) 3. Change the 'Action' property to 'Deny' 4. Click 'Save'", - "category": [ - "Networking" - ], - "severity": "Medium", - "userImpact": "High", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "preview": true, - "assessmentType": "CustomPolicy" - } - }, - { - "id": "/providers/Microsoft.Security/assessmentMetadata/ca039e75-a276-4175-aebc-bcd41e4b14b7", - "name": "ca039e75-a276-4175-aebc-bcd41e4b14b7", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "My organization security assessment", - "description": "Assessment that my organization created to view our security assessment in Azure Security Center", - "remediationDescription": "Fix it with these remediation instructions", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [], - "assessmentType": "CustomerManaged" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json deleted file mode 100644 index 95bd9aaecdb1..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/AssessmentsMetadata/ListAssessmentsMetadata_subscription_example.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "0980887d-03d6-408c-9566-532f3456804e" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.Security/assessmentMetadata/21300918-b2e3-0346-785f-c77ff57d243b", - "name": "21300918-b2e3-0346-785f-c77ff57d243b", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Install endpoint protection solution on virtual machine scale sets", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de", - "description": "Install an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "remediationDescription": "To install an endpoint protection solution: 1. Follow the instructions in How do I turn on antimalware in my virtual machine scale set", - "category": [ - "Compute" - ], - "severity": "Medium", - "userImpact": "Low", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "assessmentType": "BuiltIn" - } - }, - { - "id": "/providers/Microsoft.Security/assessmentMetadata/bc303248-3d14-44c2-96a0-55f5c326b5fe", - "name": "bc303248-3d14-44c2-96a0-55f5c326b5fe", - "type": "Microsoft.Security/assessmentMetadata", - "properties": { - "displayName": "Close management ports on your virtual machines", - "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917", - "description": "Open remote management ports expose your VM to a high level of risk from internet-based attacks that attempt to brute force credentials to gain admin access to the machine.", - "remediationDescription": "We recommend that you edit the inbound rules of the below virtual machines to restrict access to specific source ranges.
To restrict the access to your virtual machines: 1. Click on a VM from the list below 2. At the 'Networking' blade, click on each of the rules that allow management ports (e.g. RDP-3389, WINRM-5985, SSH-22) 3. Change the 'Action' property to 'Deny' 4. Click 'Save'", - "category": [ - "Networking" - ], - "severity": "Medium", - "userImpact": "High", - "implementationEffort": "Low", - "threats": [ - "dataExfiltration", - "dataSpillage", - "maliciousInsider" - ], - "preview": true, - "assessmentType": "CustomPolicy" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json deleted file mode 100644 index 754597f5b3ca..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionResourceGroupLocation_example.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "myRg2", - "ascLocation": "centralus", - "discoveredSecuritySolutionName": "paloalto7" - }, - "responses": { - "200": { - "body": { - "properties": { - "securityFamily": "Ngfw", - "offer": "vmseries1", - "publisher": "paloaltonetworks", - "sku": "byol" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", - "name": "paloalto7", - "type": "Microsoft.Security/locations/discoveredSecuritySolutions", - "location": "eastus2" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json deleted file mode 100644 index 04003bd6333c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscriptionLocation_example.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "centralus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "securityFamily": "Ngfw", - "offer": "cisco-asav", - "publisher": "cisco", - "sku": "asav-azure-byol" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP", - "name": "CP", - "type": "Microsoft.Security/locations/discoveredSecuritySolutions", - "location": "eastus" - }, - { - "properties": { - "securityFamily": "Ngfw", - "offer": "vmseries1", - "publisher": "paloaltonetworks", - "sku": "byol" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", - "name": "paloalto7", - "type": "Microsoft.Security/locations/discoveredSecuritySolutions", - "location": "eastus2" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json deleted file mode 100644 index 284eff3e7adc..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/DiscoveredSecuritySolutions/GetDiscoveredSecuritySolutionsSubscription_example.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "securityFamily": "Ngfw", - "offer": "cisco-asav", - "publisher": "cisco", - "sku": "asav-azure-byol" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/CP", - "name": "CP", - "type": "Microsoft.Security/locations/discoveredSecuritySolutions", - "location": "eastus" - }, - { - "properties": { - "securityFamily": "Ngfw", - "offer": "vmseries1", - "publisher": "paloaltonetworks", - "sku": "byol" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/discoveredSecuritySolutions/paloalto7", - "name": "paloalto7", - "type": "Microsoft.Security/locations/discoveredSecuritySolutions", - "location": "eastus2" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json deleted file mode 100644 index 1a7d18f3a66b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "defaultresourcegroup-eus", - "ascLocation": "centralus", - "externalSecuritySolutionsName": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" - }, - "responses": { - "200": { - "body": { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "eastus" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json deleted file mode 100644 index eb7d1d32726d..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "centralus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "eastus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westeurope" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-09T10:30:11.523Z", - "hostname": "barracuda", - "deviceVendor": "barracudanetworks", - "deviceType": "WAF", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda", - "name": "cef_omsprd_barracudanetworks_waf_barracuda", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-08T15:42:22.57Z", - "hostname": "demovm20", - "deviceVendor": "virtualHoneypot", - "deviceType": "Microsoft", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20", - "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-08T10:38:53.423Z", - "hostname": "demovm10", - "deviceVendor": "virtualHoneypot", - "deviceType": "Microsoft", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10", - "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd", - "name": "aad_omsprd", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "japaneast" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json deleted file mode 100644 index 707680bd0a1c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-eus/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-eus/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-eus", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "eastus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-weu/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-weu/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-weu", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westeurope" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-09T10:30:11.523Z", - "hostname": "barracuda", - "deviceVendor": "barracudanetworks", - "deviceType": "WAF", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_barracudanetworks_waf_barracuda", - "name": "cef_omsprd_barracudanetworks_waf_barracuda", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-08T15:42:22.57Z", - "hostname": "demovm20", - "deviceVendor": "virtualHoneypot", - "deviceType": "Microsoft", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm20", - "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm20", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "CEF", - "properties": { - "lastEventReceived": "2018-05-08T10:38:53.423Z", - "hostname": "demovm10", - "deviceVendor": "virtualHoneypot", - "deviceType": "Microsoft", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/cef_omsprd_virtualhoneypot_Microsoft_demovm10", - "name": "cef_omsprd_virtualhoneypot_Microsoft_demovm10", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/unificationprod/providers/Microsoft.OperationalInsights/workspaces/omsprd" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/unificationprod/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_omsprd", - "name": "aad_omsprd", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "westcentralus" - }, - { - "kind": "AAD", - "properties": { - "connectivityState": "Discovered", - "deviceVendor": "Microsoft", - "deviceType": "Azure Active Directory Identity Protection", - "workspace": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/defaultresourcegroup-ejp/providers/Microsoft.OperationalInsights/workspaces/defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp" - } - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/defaultresourcegroup-ejp/providers/Microsoft.Security/locations/centralus/externalSecuritySolutions/aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", - "name": "aad_defaultworkspace-20ff7fc3-e762-44dd-bd96-b71116dcdc23-ejp", - "type": "Microsoft.Security/locations/externalSecuritySolutions", - "location": "japaneast" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json deleted file mode 100644 index d6a64b01bdda..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope", - "resourceGroupName": "myRg1", - "jitNetworkAccessPolicyName": "default", - "body": { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - }, - "responses": { - "200": { - "body": { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json deleted file mode 100644 index 7f5891df2350..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope", - "resourceGroupName": "myRg1", - "jitNetworkAccessPolicyName": "default" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json deleted file mode 100644 index e1d21e3e23b3..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope", - "resourceGroupName": "myRg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json deleted file mode 100644 index 72dcc0c80349..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "myRg1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json deleted file mode 100644 index 4019d240910e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json deleted file mode 100644 index c626e57fbd8b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json deleted file mode 100644 index ed8dc087f0a9..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope", - "resourceGroupName": "myRg1", - "jitNetworkAccessPolicyName": "default" - }, - "responses": { - "200": { - "body": { - "kind": "Basic", - "properties": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 22, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - }, - { - "number": 3389, - "protocol": "*", - "allowedSourceAddressPrefix": "*", - "maxRequestAccessDuration": "PT3H" - } - ] - } - ], - "requests": [ - { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-05-17T09:06:45.5691611Z", - "status": "Initiated", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-05-17T08:06:45.5691611Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default", - "name": "default", - "type": "Microsoft.Security/locations/jitNetworkAccessPolicies", - "location": "westeurope" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json deleted file mode 100644 index 10d331497ed9..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westeurope", - "resourceGroupName": "myRg1", - "jitNetworkAccessPolicyName": "default", - "jitNetworkAccessPolicyInitiateType": "initiate", - "body": { - "virtualMachines": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "duration": "PT1H", - "allowedSourceAddressPrefix": "192.127.0.2" - } - ] - } - ], - "justification": "testing a new version of the product" - } - }, - "responses": { - "202": { - "body": { - "virtualMachines": [ - { - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1", - "ports": [ - { - "number": 3389, - "allowedSourceAddressPrefix": "192.127.0.2", - "endTimeUtc": "2018-07-12T09:53:03.3658798Z", - "status": "Initiating", - "statusReason": "UserRequested" - } - ] - } - ], - "startTimeUtc": "2018-07-12T08:53:03.3658798Z", - "requestor": "barbara@contoso.com", - "justification": "testing a new version of the product" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json deleted file mode 100644 index d6e43c0e3a19..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsResourceGroupLocation_example.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "myRg2", - "ascLocation": "centralus", - "securitySolutionName": "paloalto7" - }, - "responses": { - "200": { - "body": { - "properties": { - "securityFamily": "Ngfw", - "protectionStatus": "Good", - "template": "paloalto.paloaltofw", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/securitySolutions/paloalto7", - "name": "MyVA", - "type": "Microsoft.Security/locations/securitySolutions", - "location": "eastus2" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json deleted file mode 100644 index c7561f2feaad..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutions/GetSecuritySolutionsSubscription_example.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "securityFamily": "SaasWaf", - "protectionStatus": "Good", - "template": "microsoft/ApplicationGateway-ARM", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/centralus/securitySolutions/SaasWaf", - "name": "MySaasWaf", - "type": "Microsoft.Security/locations/securitySolutions", - "location": "eastus" - }, - { - "properties": { - "securityFamily": "Va", - "protectionStatus": "Good", - "template": "qualys.qualysAgent", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg2/providers/Microsoft.Security/locations/centralus/securitySolutions/MyVA", - "name": "MyVA", - "type": "Microsoft.Security/locations/securitySolutions", - "location": "eastus2" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json deleted file mode 100644 index bc9100dad89f..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ascLocation": "westcentralus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "alertVendorName": "Microsoft", - "securityFamily": "SaasWaf", - "packageInfoUrl": "www.azure.com", - "productName": "Web Application Firewall", - "publisher": "microsoft", - "publisherDisplayName": "Microsoft Inc.", - "template": "microsoft/ApplicationGateway-ARM" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/microsoft.ApplicationGateway-ARM", - "name": "microsoft.ApplicationGateway-ARM", - "type": "Microsoft.Security/locations/securitySolutionsReferenceData" - }, - { - "properties": { - "alertVendorName": "Qualys VA", - "securityFamily": "Va", - "packageInfoUrl": "http://www.qualys.com/", - "productName": "Vulnerability Assessment", - "publisher": "qualys", - "publisherDisplayName": "Qualys, Inc.", - "template": "qualys/qualysAgent" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/qualys.qualysAgent", - "name": "qualys.qualysAgent", - "type": "Microsoft.Security/locations/SecuritySolutions" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json deleted file mode 100644 index 7fd9b61bc5c9..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "alertVendorName": "Microsoft", - "securityFamily": "SaasWaf", - "packageInfoUrl": "www.azure.com", - "productName": "Web Application Firewall", - "publisher": "microsoft", - "publisherDisplayName": "Microsoft Inc.", - "template": "microsoft/ApplicationGateway-ARM" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/microsoft.ApplicationGateway-ARM", - "name": "microsoft.ApplicationGateway-ARM", - "type": "Microsoft.Security/locations/securitySolutionsReferenceData" - }, - { - "properties": { - "alertVendorName": "Qualys VA", - "securityFamily": "Va", - "packageInfoUrl": "http://www.qualys.com/", - "productName": "Vulnerability Assessment", - "publisher": "qualys", - "publisherDisplayName": "Qualys, Inc.", - "template": "qualys/qualysAgent" - }, - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/locations/westcentralus/securitySolutionsReferenceData/qualys.qualysAgent", - "name": "qualys.qualysAgent", - "type": "Microsoft.Security/locations/SecuritySolutions" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json deleted file mode 100644 index 0fd2b943997e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1", - "serverVulnerabilityAssessment": "default", - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", - "name": "default", - "type": "Microsoft.Security/serverVulnerabilityAssessments" - } - }, - "responses": { - "202": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", - "name": "default", - "type": "Microsoft.Security/serverVulnerabilityAssessments", - "properties": { - "provisioningState": "Provisioning" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json deleted file mode 100644 index 62a559028f74..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1", - "serverVulnerabilityAssessment": "default" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json deleted file mode 100644 index e4cc27cfcbdf..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1", - "serverVulnerabilityAssessment": "default" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", - "name": "default", - "type": "Microsoft.Security/serverVulnerabilityAssessments", - "properties": { - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json deleted file mode 100644 index b9fbdc60fe4b..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "rg1", - "resourceNamespace": "Microsoft.Compute", - "resourceType": "virtualMachines", - "resourceName": "vm1" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default", - "name": "default", - "type": "Microsoft.Security/serverVulnerabilityAssessments", - "properties": { - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json deleted file mode 100644 index 3c6d2d35a25f..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscriptionLocation_example.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", - "ascLocation": "centralus" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", - "topologyResources": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", - "severity": "Healthy", - "networkZones": "Internal", - "recommendationsExist": false, - "topologyScore": 0, - "location": "westus", - "children": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" - } - ] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", - "name": "vnets", - "type": "Microsoft.Security/locations/topologies", - "location": "westus" - }, - { - "properties": { - "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", - "topologyResources": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", - "severity": "Healthy", - "networkZones": "Internal", - "recommendationsExist": false, - "topologyScore": 5, - "location": "westus", - "parents": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet" - } - ] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/subnets", - "name": "subnets", - "type": "Microsoft.Security/locations/topologies", - "location": "westus" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json deleted file mode 100644 index ba986f6eff5a..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopologySubscription_example.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", - "topologyResources": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", - "severity": "Healthy", - "networkZones": "Internal", - "recommendationsExist": false, - "topologyScore": 0, - "location": "westus", - "children": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" - } - ] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", - "name": "vnets", - "type": "Microsoft.Security/locations/topologies", - "location": "westus" - }, - { - "properties": { - "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", - "topologyResources": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", - "severity": "Healthy", - "networkZones": "Internal", - "recommendationsExist": false, - "topologyScore": 5, - "location": "westus", - "parents": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet" - } - ] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/subnets", - "name": "subnets", - "type": "Microsoft.Security/locations/topologies", - "location": "westus" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json deleted file mode 100644 index 02534a721317..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/Topology/GetTopology_example.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "api-version": "2020-08-06-preview", - "subscriptionId": "3eeab341-f466-499c-a8be-85427e154bad", - "resourceGroupName": "myservers", - "ascLocation": "centralus", - "topologyResourceName": "vnets" - }, - "responses": { - "200": { - "body": { - "properties": { - "calculatedDateTime": "2018-07-10T13:56:10.5755270Z", - "topologyResources": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet", - "severity": "Healthy", - "networkZones": "InternetFacing", - "recommendationsExist": false, - "topologyScore": 0, - "location": "westus", - "children": [ - { - "resourceId": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet" - } - ] - } - ] - }, - "id": "/subscriptions/3eeab341-f466-499c-a8be-85427e154bad/resourceGroups/myservers/providers/Microsoft.Security/locations/centralus/topologies/vnets", - "name": "vnets", - "type": "Microsoft.Security/locations/topologies", - "location": "westus" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json deleted file mode 100644 index 8a5363c5745d..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json +++ /dev/null @@ -1,388 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/externalSecuritySolutions": { - "get": { - "x-ms-examples": { - "Get external security solutions on a subscription": { - "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscription_example.json" - } - }, - "description": "Gets a list of external security solutions for the subscription.", - "tags": [ - "ExternalSecuritySolutions" - ], - "operationId": "ExternalSecuritySolutions_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ExternalSecuritySolutionList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions": { - "get": { - "x-ms-examples": { - "Get external security solutions on a subscription from security data location": { - "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolutionsSubscriptionLocation_example.json" - } - }, - "description": "Gets a list of external Security Solutions for the subscription and location.", - "tags": [ - "ExternalSecuritySolutions" - ], - "operationId": "ExternalSecuritySolutions_ListByHomeRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ExternalSecuritySolutionList" - } - }, - "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/locations/{ascLocation}/ExternalSecuritySolutions/{externalSecuritySolutionsName}": { - "get": { - "x-ms-examples": { - "Get external security solution": { - "$ref": "./examples/ExternalSecuritySolutions/GetExternalSecuritySolution_example.json" - } - }, - "description": "Gets a specific external Security Solution.", - "tags": [ - "ExternalSecuritySolutions" - ], - "operationId": "ExternalSecuritySolutions_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/ExternalSecuritySolutionsName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ExternalSecuritySolution" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "ExternalSecuritySolutionList": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ExternalSecuritySolution" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "ExternalSecuritySolution": { - "type": "object", - "description": "Represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center.", - "required": [ - "kind" - ], - "discriminator": "kind", - "properties": {}, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "#/definitions/ExternalSecuritySolutionKind" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "CefExternalSecuritySolution": { - "x-ms-discriminator-value": "CEF", - "type": "object", - "description": "Represents a security solution which sends CEF logs to an OMS workspace", - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolution" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/CefSolutionProperties" - } - } - }, - "AtaExternalSecuritySolution": { - "x-ms-discriminator-value": "ATA", - "type": "object", - "description": "Represents an ATA security solution which sends logs to an OMS workspace", - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolution" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AtaSolutionProperties" - } - } - }, - "AadExternalSecuritySolution": { - "x-ms-discriminator-value": "AAD", - "type": "object", - "description": "Represents an AAD identity protection solution which sends logs to an OMS workspace.", - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolution" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AadSolutionProperties" - } - } - }, - "ExternalSecuritySolutionKind": { - "type": "object", - "description": "Describes an Azure resource with kind", - "properties": { - "kind": { - "type": "string", - "description": "The kind of the external solution", - "enum": [ - "CEF", - "ATA", - "AAD" - ], - "x-ms-enum": { - "name": "ExternalSecuritySolutionKind", - "modelAsString": true, - "values": [ - { - "value": "CEF" - }, - { - "value": "ATA" - }, - { - "value": "AAD" - } - ] - } - } - } - }, - "ExternalSecuritySolutionProperties": { - "type": "object", - "description": "The solution properties (correspond to the solution kind)", - "additionalProperties": true, - "properties": { - "deviceVendor": { - "type": "string" - }, - "deviceType": { - "type": "string" - }, - "workspace": { - "$ref": "#/definitions/ConnectedWorkspace" - } - } - }, - "ConnectedWorkspace": { - "type": "object", - "title": "Represents an OMS workspace to which the solution is connected", - "properties": { - "id": { - "type": "string", - "description": "Azure resource ID of the connected OMS workspace" - } - } - }, - "AadConnectivityState": { - "type": "object", - "description": "Describes an Azure resource with kind", - "properties": { - "connectivityState": { - "type": "string", - "title": "The connectivity state of the external AAD solution ", - "enum": [ - "Discovered", - "NotLicensed", - "Connected" - ], - "x-ms-enum": { - "name": "AadConnectivityState", - "modelAsString": true, - "values": [ - { - "value": "Discovered" - }, - { - "value": "NotLicensed" - }, - { - "value": "Connected" - } - ] - } - } - } - }, - "AadSolutionProperties": { - "type": "object", - "title": "The external security solution properties for AAD solutions", - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolutionProperties" - }, - { - "$ref": "#/definitions/AadConnectivityState" - } - ] - }, - "CefSolutionProperties": { - "type": "object", - "title": "The external security solution properties for CEF solutions", - "properties": { - "hostname": { - "type": "string" - }, - "agent": { - "type": "string" - }, - "lastEventReceived": { - "type": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolutionProperties" - } - ] - }, - "AtaSolutionProperties": { - "type": "object", - "title": "The external security solution properties for ATA solutions", - "properties": { - "lastEventReceived": { - "type": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/ExternalSecuritySolutionProperties" - } - ] - } - }, - "parameters": { - "ExternalSecuritySolutionsName": { - "name": "externalSecuritySolutionsName", - "in": "path", - "description": "Name of an external security solution.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json deleted file mode 100644 index 45d5b6fa9772..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json +++ /dev/null @@ -1,770 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/jitNetworkAccessPolicies": { - "get": { - "x-ms-examples": { - "Get JIT network access policies on a subscription": { - "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscription_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Policies for protecting resources using Just-in-Time access control.", - "operationId": "JitNetworkAccessPolicies_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPoliciesList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies": { - "get": { - "x-ms-examples": { - "Get JIT network access policies on a subscription from a security data location": { - "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesSubscriptionLocation_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", - "operationId": "JitNetworkAccessPolicies_ListByRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPoliciesList" - } - }, - "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/jitNetworkAccessPolicies": { - "get": { - "x-ms-examples": { - "Get JIT network access policies on a resource group": { - "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroup_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", - "operationId": "JitNetworkAccessPolicies_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPoliciesList" - } - }, - "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/locations/{ascLocation}/jitNetworkAccessPolicies": { - "get": { - "x-ms-examples": { - "Get JIT network access policies on a resource group from a security data location": { - "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPoliciesResourceGroupLocation_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", - "operationId": "JitNetworkAccessPolicies_ListByResourceGroupAndRegion", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPoliciesList" - } - }, - "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/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}": { - "get": { - "x-ms-examples": { - "Get JIT network access policy": { - "$ref": "./examples/JitNetworkAccessPolicies/GetJitNetworkAccessPolicy_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Policies for protecting resources using Just-in-Time access control for the subscription, location", - "operationId": "JitNetworkAccessPolicies_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPolicy" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create JIT network access policy": { - "$ref": "./examples/JitNetworkAccessPolicies/CreateJitNetworkAccessPolicy_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Create a policy for protecting resources using Just-in-Time access control", - "operationId": "JitNetworkAccessPolicies_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicy" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JitNetworkAccessPolicy" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete a JIT network access policy": { - "$ref": "./examples/JitNetworkAccessPolicies/DeleteJitNetworkAccessPolicy_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Delete a Just-in-Time access control policy.", - "operationId": "JitNetworkAccessPolicies_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK - Resource was deleted" - }, - "204": { - "description": "No Content - Resource does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}/{jitNetworkAccessPolicyInitiateType}": { - "post": { - "x-ms-examples": { - "Initiate an action on a JIT network access policy": { - "$ref": "./examples/JitNetworkAccessPolicies/InitiateJitNetworkAccessPolicy_example.json" - } - }, - "tags": [ - "JitNetworkAccessPolicies" - ], - "description": "Initiate a JIT access from a specific Just-in-Time policy configuration.", - "operationId": "JitNetworkAccessPolicies_Initiate", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyName" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyInitiateType" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/JitNetworkAccessPolicyInitiateRequest" - } - ], - "responses": { - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/JitNetworkAccessRequest" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "JitNetworkAccessPoliciesList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/JitNetworkAccessPolicy" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "JitNetworkAccessPolicy": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/JitNetworkAccessPolicyProperties" - } - }, - "required": [ - "properties" - ], - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Kind" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "JitNetworkAccessPolicyProperties": { - "type": "object", - "properties": { - "virtualMachines": { - "type": "array", - "description": "Configurations for Microsoft.Compute/virtualMachines resource type.", - "items": { - "$ref": "#/definitions/JitNetworkAccessPolicyVirtualMachine" - } - }, - "requests": { - "type": "array", - "items": { - "$ref": "#/definitions/JitNetworkAccessRequest" - } - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "description": "Gets the provisioning state of the Just-in-Time policy." - } - }, - "required": [ - "virtualMachines" - ] - }, - "JitNetworkAccessPolicyVirtualMachine": { - "type": "object", - "required": [ - "id", - "ports" - ], - "properties": { - "id": { - "type": "string", - "description": "Resource ID of the virtual machine that is linked to this policy" - }, - "ports": { - "type": "array", - "description": "Port configurations for the virtual machine", - "items": { - "$ref": "#/definitions/JitNetworkAccessPortRule" - } - }, - "publicIpAddress": { - "type": "string", - "description": "Public IP address of the Azure Firewall that is linked to this policy, if applicable" - } - } - }, - "JitNetworkAccessPortRule": { - "type": "object", - "properties": { - "number": { - "$ref": "#/definitions/PortNumber" - }, - "protocol": { - "type": "string", - "enum": [ - "TCP", - "UDP", - "*" - ], - "x-ms-enum": { - "name": "protocol", - "modelAsString": true, - "values": [ - { - "value": "TCP" - }, - { - "value": "UDP" - }, - { - "value": "*", - "name": "All" - } - ] - } - }, - "allowedSourceAddressPrefix": { - "type": "string", - "description": "Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." - }, - "allowedSourceAddressPrefixes": { - "type": "array", - "description": "Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.", - "items": { - "type": "string", - "description": "IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." - } - }, - "maxRequestAccessDuration": { - "type": "string", - "description": "Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day" - } - }, - "required": [ - "maxRequestAccessDuration", - "number", - "protocol" - ] - }, - "JitNetworkAccessRequest": { - "type": "object", - "properties": { - "virtualMachines": { - "type": "array", - "items": { - "$ref": "#/definitions/JitNetworkAccessRequestVirtualMachine" - } - }, - "startTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The start time of the request in UTC" - }, - "requestor": { - "type": "string", - "description": "The identity of the person who made the request" - }, - "justification": { - "type": "string", - "description": "The justification for making the initiate request" - } - }, - "required": [ - "requestor", - "startTimeUtc", - "virtualMachines" - ] - }, - "JitNetworkAccessRequestVirtualMachine": { - "type": "object", - "required": [ - "id", - "ports" - ], - "properties": { - "id": { - "type": "string", - "description": "Resource ID of the virtual machine that is linked to this policy" - }, - "ports": { - "type": "array", - "description": "The ports that were opened for the virtual machine", - "items": { - "$ref": "#/definitions/JitNetworkAccessRequestPort" - } - } - } - }, - "JitNetworkAccessRequestPort": { - "type": "object", - "properties": { - "number": { - "$ref": "#/definitions/PortNumber" - }, - "allowedSourceAddressPrefix": { - "type": "string", - "description": "Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\"." - }, - "allowedSourceAddressPrefixes": { - "type": "array", - "description": "Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.", - "items": { - "description": "IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".", - "type": "string" - } - }, - "endTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The date & time at which the request ends in UTC" - }, - "status": { - "type": "string", - "description": "The status of the port", - "enum": [ - "Revoked", - "Initiated" - ], - "x-ms-enum": { - "name": "status", - "modelAsString": true, - "values": [ - { - "value": "Revoked" - }, - { - "value": "Initiated" - } - ] - } - }, - "statusReason": { - "type": "string", - "description": "A description of why the `status` has its value", - "enum": [ - "Expired", - "UserRequested", - "NewerRequestInitiated" - ], - "x-ms-enum": { - "name": "statusReason", - "modelAsString": true, - "values": [ - { - "value": "Expired" - }, - { - "value": "UserRequested" - }, - { - "value": "NewerRequestInitiated" - } - ] - } - }, - "mappedPort": { - "type": "integer", - "description": "The port which is mapped to this port's `number` in the Azure Firewall, if applicable" - } - }, - "required": [ - "endTimeUtc", - "number", - "status", - "statusReason" - ] - }, - "JitNetworkAccessPolicyInitiateRequest": { - "type": "object", - "properties": { - "virtualMachines": { - "type": "array", - "description": "A list of virtual machines & ports to open access for", - "items": { - "$ref": "#/definitions/JitNetworkAccessPolicyInitiateVirtualMachine" - } - }, - "justification": { - "type": "string", - "description": "The justification for making the initiate request" - } - }, - "required": [ - "virtualMachines" - ] - }, - "JitNetworkAccessPolicyInitiateVirtualMachine": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource ID of the virtual machine that is linked to this policy" - }, - "ports": { - "type": "array", - "description": "The ports to open for the resource with the `id`", - "items": { - "$ref": "#/definitions/JitNetworkAccessPolicyInitiatePort" - } - } - }, - "required": [ - "id", - "ports" - ] - }, - "JitNetworkAccessPolicyInitiatePort": { - "type": "object", - "properties": { - "number": { - "$ref": "#/definitions/PortNumber" - }, - "allowedSourceAddressPrefix": { - "type": "string", - "description": "Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request." - }, - "endTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The time to close the request in UTC" - } - }, - "required": [ - "endTimeUtc", - "number" - ] - }, - "PortNumber": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - } - }, - "parameters": { - "JitNetworkAccessPolicyName": { - "name": "jitNetworkAccessPolicyName", - "type": "string", - "in": "path", - "required": true, - "description": "Name of a Just-in-Time access configuration policy.", - "x-ms-parameter-location": "method" - }, - "JitNetworkAccessPolicyInitiateType": { - "name": "jitNetworkAccessPolicyInitiateType", - "type": "string", - "in": "path", - "required": true, - "description": "Type of the action to do on the Just-in-Time access policy.", - "enum": [ - "initiate" - ], - "x-ms-parameter-location": "method" - }, - "JitNetworkAccessPolicyInitiateRequest": { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/JitNetworkAccessPolicyInitiateRequest" - }, - "x-ms-parameter-location": "method" - }, - "JitNetworkAccessPolicy": { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/JitNetworkAccessPolicy" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json deleted file mode 100644 index 79a0963f51b5..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/securitySolutionsReferenceData": { - "get": { - "x-ms-examples": { - "Get security solutions": { - "$ref": "./examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscription_example.json" - } - }, - "tags": [ - "securitySolutionsReferenceData" - ], - "description": "Gets a list of all supported Security Solutions for the subscription.", - "operationId": "securitySolutionsReferenceData_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/securitySolutionsReferenceDataList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutionsReferenceData": { - "get": { - "x-ms-examples": { - "Get security solutions from a security data location": { - "$ref": "./examples/SecuritySolutionsReferenceData/GetSecuritySolutionsReferenceDataSubscriptionLocation_example.json" - } - }, - "tags": [ - "SecuritySolutionsReferenceData" - ], - "description": "Gets list of all supported Security Solutions for subscription and location.", - "operationId": "SecuritySolutionsReferenceData_ListByHomeRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/securitySolutionsReferenceDataList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "securitySolutionsReferenceDataList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/securitySolutionsReferenceData" - } - } - } - }, - "securitySolutionsReferenceData": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/securitySolutionsReferenceDataProperties" - } - }, - "required": [ - "properties" - ], - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "securitySolutionsReferenceDataProperties": { - "type": "object", - "properties": { - "securityFamily": { - "type": "string", - "description": "The security family of the security solution", - "enum": [ - "Waf", - "Ngfw", - "SaasWaf", - "Va" - ], - "x-ms-enum": { - "name": "securityFamily", - "modelAsString": true, - "values": [ - { - "value": "Waf" - }, - { - "value": "Ngfw" - }, - { - "value": "SaasWaf" - }, - { - "value": "Va" - } - ] - } - }, - "alertVendorName": { - "type": "string", - "description": "The security solutions' vendor name" - }, - "packageInfoUrl": { - "type": "string", - "description": "The security solutions' package info url" - }, - "productName": { - "type": "string", - "description": "The security solutions' product name" - }, - "publisher": { - "type": "string", - "description": "The security solutions' publisher" - }, - "publisherDisplayName": { - "type": "string", - "description": "The security solutions' publisher display name" - }, - "template": { - "type": "string", - "description": "The security solutions' template" - } - }, - "required": [ - "securityFamily", - "alertVendorName", - "packageInfoUrl", - "productName", - "publisher", - "publisherDisplayName", - "template" - ] - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json deleted file mode 100644 index aba882f8794f..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments": { - "get": { - "x-ms-examples": { - "Get a list of server vulnerability assessments on a resource. Though this API returns a list, Currently Microsoft.Security only supports a single default type of server vulnerability assessment": { - "$ref": "./examples/ServerVulnerabilityAssessments/ListByExtendedResourceServerVulnerabilityAssessments_example.json" - } - }, - "description": "Gets a list of server vulnerability assessment onboarding statuses on a given resource.", - "tags": [ - "ServerVulnerabilityAssessments" - ], - "operationId": "ServerVulnerabilityAssessment_ListByExtendedResource", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerVulnerabilityAssessmentsList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}": { - "get": { - "x-ms-examples": { - "Get a server vulnerability assessments onboarding status on a resource. Currently Microsoft.Security only supports the single 'default' resource": { - "$ref": "./examples/ServerVulnerabilityAssessments/GetServerVulnerabilityAssessments_example.json" - } - }, - "description": "Gets a server vulnerability assessment onboarding statuses on a given resource.", - "tags": [ - "ServerVulnerabilityAssessments" - ], - "operationId": "ServerVulnerabilityAssessment_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "name": "serverVulnerabilityAssessment", - "in": "path", - "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", - "required": true, - "type": "string", - "enum": [ - "default" - ] - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServerVulnerabilityAssessment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security": { - "$ref": "./examples/ServerVulnerabilityAssessments/CreateServerVulnerabilityAssessments_example.json" - } - }, - "description": "Creating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it", - "tags": [ - "ServerVulnerabilityAssessment" - ], - "operationId": "ServerVulnerabilityAssessment_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "name": "serverVulnerabilityAssessment", - "in": "path", - "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", - "required": true, - "type": "string", - "enum": [ - "default" - ] - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/ServerVulnerabilityAssessment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete a server vulnerability assessments on a resource. Only 'default' resource is supported. Once deleting, Microsoft.Security will not provide vulnerability assessment findings on the resource.": { - "$ref": "./examples/ServerVulnerabilityAssessments/DeleteServerVulnerabilityAssessments_example.json" - } - }, - "description": "Removing server vulnerability assessment from a resource.", - "tags": [ - "ServerVulnerabilityAssessment" - ], - "operationId": "ServerVulnerabilityAssessment_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "name": "resourceNamespace", - "in": "path", - "description": "The Namespace of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceType", - "in": "path", - "description": "The type of the resource.", - "required": true, - "type": "string" - }, - { - "name": "resourceName", - "in": "path", - "description": "Name of the resource.", - "required": true, - "type": "string" - }, - { - "name": "serverVulnerabilityAssessment", - "in": "path", - "description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.", - "required": true, - "type": "string", - "enum": [ - "default" - ] - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content - Resource does not exist" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "ServerVulnerabilityAssessmentsList": { - "type": "object", - "description": "List of server vulnerability assessments", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ServerVulnerabilityAssessment" - } - } - } - }, - "ServerVulnerabilityAssessment": { - "type": "object", - "description": "Describes the server vulnerability assessment details on a resource", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ServerVulnerabilityAssessmentProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "ServerVulnerabilityAssessmentProperties": { - "type": "object", - "description": "describes ServerVulnerabilityAssessment properties.", - "properties": { - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioningState of the vulnerability assessment capability on the VM", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Provisioning", - "Deprovisioning" - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json deleted file mode 100644 index 20efa6415d82..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/topologies.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2020-08-06-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}/providers/Microsoft.Security/topologies": { - "get": { - "x-ms-examples": { - "Get topology on a subscription": { - "$ref": "./examples/Topology/GetTopologySubscription_example.json" - } - }, - "tags": [ - "Topology" - ], - "description": "Gets a list that allows to build a topology view of a subscription.", - "operationId": "Topology_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopologyList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies": { - "get": { - "x-ms-examples": { - "Get topology on a subscription from security data location": { - "$ref": "./examples/Topology/GetTopologySubscriptionLocation_example.json" - } - }, - "tags": [ - "Topology" - ], - "description": "Gets a list that allows to build a topology view of a subscription and location.", - "operationId": "Topology_ListByHomeRegion", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopologyList" - } - }, - "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/locations/{ascLocation}/topologies/{topologyResourceName}": { - "get": { - "x-ms-examples": { - "Get topology": { - "$ref": "./examples/Topology/GetTopology_example.json" - } - }, - "tags": [ - "Topology" - ], - "description": "Gets a specific topology component.", - "operationId": "Topology_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/AscLocation" - }, - { - "$ref": "#/parameters/TopologyResourceName" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TopologyResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "TopologyList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/TopologyResource" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "TopologyResource": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "readOnly": true, - "$ref": "#/definitions/TopologyResourceProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - }, - { - "$ref": "../../../common/v1/types.json#/definitions/Location" - } - ] - }, - "TopologyResourceProperties": { - "type": "object", - "properties": { - "calculatedDateTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "The UTC time on which the topology was calculated" - }, - "topologyResources": { - "type": "array", - "readOnly": true, - "description": "Azure resources which are part of this topology resource", - "items": { - "$ref": "#/definitions/TopologySingleResource" - } - } - } - }, - "TopologySingleResource": { - "type": "object", - "properties": { - "resourceId": { - "type": "string", - "readOnly": true, - "description": "Azure resource id" - }, - "severity": { - "type": "string", - "readOnly": true, - "description": "The security severity of the resource" - }, - "recommendationsExist": { - "type": "boolean", - "readOnly": true, - "description": "Indicates if the resource has security recommendations" - }, - "networkZones": { - "type": "string", - "readOnly": true, - "description": "Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.)" - }, - "topologyScore": { - "type": "integer", - "readOnly": true, - "description": "Score of the resource based on its security severity" - }, - "location": { - "type": "string", - "readOnly": true, - "description": "The location of this resource" - }, - "parents": { - "type": "array", - "readOnly": true, - "description": "Azure resources connected to this resource which are in higher level in the topology view", - "items": { - "$ref": "#/definitions/TopologySingleResourceParent" - } - }, - "children": { - "type": "array", - "readOnly": true, - "description": "Azure resources connected to this resource which are in lower level in the topology view", - "items": { - "$ref": "#/definitions/TopologySingleResourceChild" - } - } - } - }, - "TopologySingleResourceParent": { - "type": "object", - "properties": { - "resourceId": { - "type": "string", - "readOnly": true, - "description": "Azure resource id which serves as parent resource in topology view" - } - } - }, - "TopologySingleResourceChild": { - "type": "object", - "properties": { - "resourceId": { - "type": "string", - "readOnly": true, - "description": "Azure resource id which serves as child resource in topology view" - } - } - } - }, - "parameters": { - "TopologyResourceName": { - "name": "topologyResourceName", - "in": "path", - "description": "Name of a topology resources collection.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} From 5b120c8a459cf38283a6ade1de4f8341b2c9f1f4 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Thu, 6 Aug 2020 09:57:40 +0300 Subject: [PATCH 05/24] added iotDefender --- .../IotDefenders/DeleteIotDefender.json | 10 + .../IotDefenders/DownloadActivation.json | 9 + .../examples/IotDefenders/GetIotDefender.json | 22 ++ .../IotDefenders/ListIotDefenders.json | 26 ++ .../examples/IotDefenders/PutIotDefender.json | 36 +++ .../2020-08-06-preview/iotDefenders.json | 281 ++++++++++++++++++ .../2019-08-01/iotSecuritySolutions.json | 2 +- .../security/resource-manager/readme.md | 19 ++ 8 files changed, 404 insertions(+), 1 deletion(-) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json new file mode 100644 index 000000000000..539fe783ec11 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json new file mode 100644 index 000000000000..6308d66b0952 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json @@ -0,0 +1,9 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json new file mode 100644 index 000000000000..ee1d37d32c14 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", + "type": "Microsoft.Security/iotDefenders", + "properties": { + "onPremiseSensors": [ + { + "name": "sensor-1" + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json new file mode 100644 index 000000000000..d1f3d8de023a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", + "type": "Microsoft.Security/iotDefenders", + "properties": { + "onPremiseSensors": [ + { + "name": "sensor-1" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json new file mode 100644 index 000000000000..6861dd9da4fe --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", + "type": "Microsoft.Security/iotDefenders", + "properties": { + "onPremiseSensors": [ + { + "name": "sensor-1" + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", + "type": "Microsoft.Security/iotDefenders", + "properties": { + "onPremiseSensors": [ + { + "name": "sensor-1" + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json new file mode 100644 index 000000000000..4de8bf78ff43 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json @@ -0,0 +1,281 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-08-06-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}/providers/Microsoft.Security/iotDefenders": { + "get": { + "x-ms-examples": { + "List IoT Defenders": { + "$ref": "./examples/IotDefenders/ListIotDefenders.json" + } + }, + "tags": [ + "IoT Defender" + ], + "description": "List IoT Defenders", + "operationId": "IotDefenders_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IotDefendersList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default": { + "get": { + "x-ms-examples": { + "Get IoT Defender": { + "$ref": "./examples/IotDefenders/GetIotDefender.json" + } + }, + "tags": [ + "IoT Defender" + ], + "operationId": "IotDefenders_Get", + "description": "Get IoT Defender", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "IoT Defender", + "schema": { + "$ref": "#/definitions/IotDefender" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create or update IoT Defender": { + "$ref": "./examples/IotDefenders/PutIotDefender.json" + } + }, + "tags": [ + "IoT Defender" + ], + "operationId": "IotDefenders_CreateOrUpdate", + "description": "Create or update IoT Defender", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "Updated IoT Defender", + "schema": { + "$ref": "#/definitions/IotDefender" + } + }, + "201": { + "description": "Created IoT Defender", + "schema": { + "$ref": "#/definitions/IotDefender" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete IoT Defender": { + "$ref": "./examples/IotDefenders/DeleteIotDefender.json" + } + }, + "tags": [ + "IoT Defender" + ], + "operationId": "IotDefenders_Delete", + "description": "Delete IoT Defender", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "IoT Defender deleted" + }, + "204": { + "description": "IoT Defender does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default/downloadActivation": { + "post": { + "x-ms-examples": { + "Download activation file": { + "$ref": "./examples/IotDefenders/DownloadActivation.json" + } + }, + "tags": [ + "IoT Defender" + ], + "operationId": "IotDefenders_DownloadActivation", + "description": "Download activation file", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "Downloaded activation file" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "IotDefendersList": { + "description": "List of IoT Defenders", + "type": "object", + "properties": { + "value": { + "description": "List data", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/IotDefender" + } + } + } + }, + "IotDefender": { + "type": "object", + "description": "IoT Defender", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "IoT Defender properties", + "$ref": "#/definitions/IotDefenderProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "IotDefenderProperties": { + "type": "object", + "description": "IoT Defender properties", + "properties": { + "onPremiseSensors": { + "description": "List of on-premise sensors", + "readOnly": false, + "type": "array", + "items": { + "$ref": "#/definitions/OnPremiseSensorProperties" + }, + "example": [ + { + "name": "sensor-1" + } + ] + } + } + }, + "OnPremiseSensorProperties": { + "type": "object", + "description": "On-premise sensor properties", + "properties": { + "name": { + "description": "Name of the sensor", + "readOnly": false, + "type": "string", + "example": "sensor-1" + } + } + } + }, + "parameters": {} +} diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json index 8ff974f8c864..1c055bf94f6c 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json @@ -300,7 +300,7 @@ } } } - } + }z }, "definitions": { "TagsResource": { diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index db8110b2dd5b..549803b5adf2 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -44,6 +44,10 @@ directive: from: recommendationTypes.json where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/recommendationTypes"].get' reason: The list returns limited number of items + - suppress: PageableOperation + from: iotDefenders.json + where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders"].get' + reason: The list returns limited number of items ``` ### Basic Information @@ -204,6 +208,7 @@ input-file: - Microsoft.Security/preview/2020-01-01-preview/secureScore.json - Microsoft.Security/stable/2020-01-01/SecuritySolutions.json - Microsoft.Security/preview/2020-01-01-preview/connectors.json +- Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json # Needed when there is more than one input file override-info: @@ -381,6 +386,19 @@ override-info: title: SecurityCenter ``` +### Tag: package-2020-08-preview-only + +These settings apply only when `--tag=package-2020-08-preview-only` is specified on the command line. This tag is used for Ruby SDK. + +``` yaml $(tag) == 'package-2020-08-preview-only' +input-file: +- Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json + +# Needed when there is more than one input file +override-info: + title: SecurityCenter +``` + --- # Code Generation @@ -435,6 +453,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: + - $(this-folder)/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/secureScore.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/connectors.json - $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/automations.json From daa466f70429d6953ac9f5f9ce22bf64c0780df5 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 16:24:37 +0300 Subject: [PATCH 06/24] Fix --- .../stable/2019-08-01/iotSecuritySolutions.json | 2 +- specification/security/resource-manager/readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json index 1c055bf94f6c..8ff974f8c864 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-08-01/iotSecuritySolutions.json @@ -300,7 +300,7 @@ } } } - }z + } }, "definitions": { "TagsResource": { diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 549803b5adf2..9706c3f887bf 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -58,7 +58,7 @@ These are the global settings for the Security API. title: SecurityCenter description: API spec for Microsoft.Security (Azure Security Center) resource provider openapi-type: arm -tag: package-preview-2020-08 +tag: package-composite-v3 ``` ## Composite packages From cd295e3306036fc3356541b6b96f44ed8896f3ca Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 16:39:59 +0300 Subject: [PATCH 07/24] Renam to iotDefenderSettings --- .../DeleteIotDefenderSettings.json} | 0 .../DownloadActivation.json | 0 .../GetIotDefenderSettings.json} | 4 +- .../ListIotDefenderSettings.json} | 4 +- .../PutIotDefenderSettings.json} | 8 +- ...efenders.json => iotDefenderSettings.json} | 88 +++++++++---------- .../security/resource-manager/readme.md | 10 +-- 7 files changed, 57 insertions(+), 57 deletions(-) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/{IotDefenders/DeleteIotDefender.json => IotDefenderSettings/DeleteIotDefenderSettings.json} (100%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/{IotDefenders => IotDefenderSettings}/DownloadActivation.json (100%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/{IotDefenders/GetIotDefender.json => IotDefenderSettings/GetIotDefenderSettings.json} (80%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/{IotDefenders/ListIotDefenders.json => IotDefenderSettings/ListIotDefenderSettings.json} (82%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/{IotDefenders/PutIotDefender.json => IotDefenderSettings/PutIotDefenderSettings.json} (77%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/{iotDefenders.json => iotDefenderSettings.json} (71%) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DeleteIotDefenderSettings.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DeleteIotDefender.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DeleteIotDefenderSettings.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadActivation.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/DownloadActivation.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadActivation.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/GetIotDefenderSettings.json similarity index 80% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/GetIotDefenderSettings.json index ee1d37d32c14..81813255b339 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/GetIotDefender.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/GetIotDefenderSettings.json @@ -7,8 +7,8 @@ "200": { "body": { "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", - "type": "Microsoft.Security/iotDefenders", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + "type": "Microsoft.Security/iotDefenderSettings", "properties": { "onPremiseSensors": [ { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/ListIotDefenderSettings.json similarity index 82% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/ListIotDefenderSettings.json index d1f3d8de023a..6e8a2e4d0cf6 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/ListIotDefenders.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/ListIotDefenderSettings.json @@ -9,8 +9,8 @@ "value": [ { "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", - "type": "Microsoft.Security/iotDefenders", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + "type": "Microsoft.Security/iotDefenderSettings", "properties": { "onPremiseSensors": [ { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PutIotDefenderSettings.json similarity index 77% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PutIotDefenderSettings.json index 6861dd9da4fe..ca7327c2d581 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenders/PutIotDefender.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PutIotDefenderSettings.json @@ -7,8 +7,8 @@ "200": { "body": { "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", - "type": "Microsoft.Security/iotDefenders", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + "type": "Microsoft.Security/iotDefenderSettings", "properties": { "onPremiseSensors": [ { @@ -21,8 +21,8 @@ "201": { "body": { "name": "default", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default", - "type": "Microsoft.Security/iotDefenders", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + "type": "Microsoft.Security/iotDefenderSettings", "properties": { "onPremiseSensors": [ { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json similarity index 71% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json index 4de8bf78ff43..7897b3094548 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json @@ -34,18 +34,18 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings": { "get": { "x-ms-examples": { - "List IoT Defenders": { - "$ref": "./examples/IotDefenders/ListIotDefenders.json" + "List IoT Defender settings": { + "$ref": "./examples/IotDefenderSettings/ListIotDefenderSettings.json" } }, "tags": [ - "IoT Defender" + "IoT Defender Settings" ], - "description": "List IoT Defenders", - "operationId": "IotDefenders_List", + "description": "List IoT Defender Settings", + "operationId": "IotDefenderSettings_List", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -58,7 +58,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/IotDefendersList" + "$ref": "#/definitions/IotDefenderSettingsList" } }, "default": { @@ -70,18 +70,18 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default": { "get": { "x-ms-examples": { - "Get IoT Defender": { - "$ref": "./examples/IotDefenders/GetIotDefender.json" + "Get IoT Defender settings": { + "$ref": "./examples/IotDefenderSettings/GetIotDefenderSettings.json" } }, "tags": [ - "IoT Defender" + "IoT Defender Settings" ], - "operationId": "IotDefenders_Get", - "description": "Get IoT Defender", + "operationId": "IotDefenderSettings_Get", + "description": "Get IoT Defender Settings", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -92,9 +92,9 @@ ], "responses": { "200": { - "description": "IoT Defender", + "description": "IoT Defender Settings", "schema": { - "$ref": "#/definitions/IotDefender" + "$ref": "#/definitions/IotDefenderSettingsModel" } }, "default": { @@ -107,15 +107,15 @@ }, "put": { "x-ms-examples": { - "Create or update IoT Defender": { - "$ref": "./examples/IotDefenders/PutIotDefender.json" + "Create or update IoT Defender settings": { + "$ref": "./examples/IotDefenderSettings/PutIotDefenderSettings.json" } }, "tags": [ - "IoT Defender" + "IoT Defender Settings" ], - "operationId": "IotDefenders_CreateOrUpdate", - "description": "Create or update IoT Defender", + "operationId": "IotDefenderSettings_CreateOrUpdate", + "description": "Create or update IoT Defender settings", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -126,15 +126,15 @@ ], "responses": { "200": { - "description": "Updated IoT Defender", + "description": "Updated IoT Defender settings", "schema": { - "$ref": "#/definitions/IotDefender" + "$ref": "#/definitions/IotDefenderSettingsModel" } }, "201": { - "description": "Created IoT Defender", + "description": "Created IoT Defender settings", "schema": { - "$ref": "#/definitions/IotDefender" + "$ref": "#/definitions/IotDefenderSettingsModel" } }, "default": { @@ -147,15 +147,15 @@ }, "delete": { "x-ms-examples": { - "Delete IoT Defender": { - "$ref": "./examples/IotDefenders/DeleteIotDefender.json" + "Delete IoT Defender settings": { + "$ref": "./examples/IotDefenderSettings/DeleteIotDefenderSettings.json" } }, "tags": [ - "IoT Defender" + "IoT Defender Settings" ], - "operationId": "IotDefenders_Delete", - "description": "Delete IoT Defender", + "operationId": "IotDefenderSettings_Delete", + "description": "Delete IoT Defender settings", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -166,10 +166,10 @@ ], "responses": { "200": { - "description": "IoT Defender deleted" + "description": "IoT Defender settings deleted" }, "204": { - "description": "IoT Defender does not exist" + "description": "IoT Defender settings does not exist" }, "default": { "description": "Error response describing why the operation failed.", @@ -180,17 +180,17 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders/default/downloadActivation": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadActivation": { "post": { "x-ms-examples": { "Download activation file": { - "$ref": "./examples/IotDefenders/DownloadActivation.json" + "$ref": "./examples/IotDefenderSettings/DownloadActivation.json" } }, "tags": [ - "IoT Defender" + "IoT Defender Settings" ], - "operationId": "IotDefenders_DownloadActivation", + "operationId": "IotDefenderSettings_DownloadActivation", "description": "Download activation file", "parameters": [ { @@ -215,8 +215,8 @@ } }, "definitions": { - "IotDefendersList": { - "description": "List of IoT Defenders", + "IotDefenderSettingsList": { + "description": "List of IoT Defender settings", "type": "object", "properties": { "value": { @@ -224,19 +224,19 @@ "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/IotDefender" + "$ref": "#/definitions/IotDefenderSettingsModel" } } } }, - "IotDefender": { + "IotDefenderSettingsModel": { "type": "object", - "description": "IoT Defender", + "description": "IoT Defender settings", "properties": { "properties": { "x-ms-client-flatten": true, - "description": "IoT Defender properties", - "$ref": "#/definitions/IotDefenderProperties" + "description": "IoT Defender settings properties", + "$ref": "#/definitions/IotDefenderSettingsProperties" } }, "allOf": [ @@ -245,9 +245,9 @@ } ] }, - "IotDefenderProperties": { + "IotDefenderSettingsProperties": { "type": "object", - "description": "IoT Defender properties", + "description": "IoT Defender settings properties", "properties": { "onPremiseSensors": { "description": "List of on-premise sensors", diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 9706c3f887bf..c90a1e9dc4e1 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -45,8 +45,8 @@ directive: where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/recommendationTypes"].get' reason: The list returns limited number of items - suppress: PageableOperation - from: iotDefenders.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenders"].get' + from: iotDefenderSettings.json + where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings"].get' reason: The list returns limited number of items ``` @@ -208,7 +208,7 @@ input-file: - Microsoft.Security/preview/2020-01-01-preview/secureScore.json - Microsoft.Security/stable/2020-01-01/SecuritySolutions.json - Microsoft.Security/preview/2020-01-01-preview/connectors.json -- Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json +- Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json # Needed when there is more than one input file override-info: @@ -392,7 +392,7 @@ These settings apply only when `--tag=package-2020-08-preview-only` is specified ``` yaml $(tag) == 'package-2020-08-preview-only' input-file: -- Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json +- Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json # Needed when there is more than one input file override-info: @@ -453,7 +453,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - - $(this-folder)/Microsoft.Security/preview/2020-08-06-preview/iotDefenders.json + - $(this-folder)/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/secureScore.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/connectors.json - $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/automations.json From d9aa4beb276ce6ccf238219071dcc29d1e99c5bf Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 16:41:00 +0300 Subject: [PATCH 08/24] Reverted empty line removal --- specification/security/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index c90a1e9dc4e1..93438b8b5fa7 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -447,6 +447,7 @@ AutoRest V3 generators require the use of `--tag=all-api-versions` to select api This block is updated by an automatic script. Edits may be lost! + ``` yaml $(tag) == 'all-api-versions' /*autogenerated*/ # include the azure profile definitions from the standard location require: $(this-folder)/../../../profiles/readme.md From 1efd3c4e94d664474fa7bbd4f38066edca24f0c7 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 16:45:32 +0300 Subject: [PATCH 09/24] Rename downloadActivation to downloadOnPremiseActivation --- ...adActivation.json => DownloadOnPremiseActivation.json} | 0 .../preview/2020-08-06-preview/iotDefenderSettings.json | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/{DownloadActivation.json => DownloadOnPremiseActivation.json} (100%) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadActivation.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json index 7897b3094548..3bc79e75a0d4 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json @@ -180,18 +180,18 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadActivation": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadOnPremiseActivation": { "post": { "x-ms-examples": { "Download activation file": { - "$ref": "./examples/IotDefenderSettings/DownloadActivation.json" + "$ref": "./examples/IotDefenderSettings/DownloadOnPremiseActivation.json" } }, "tags": [ "IoT Defender Settings" ], - "operationId": "IotDefenderSettings_DownloadActivation", - "description": "Download activation file", + "operationId": "IotDefenderSettings_DownloadOnPremiseActivation", + "description": "Download on-premise sensors activation file", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" From ff3e1d195e5e256d4ba642aa8bc7370f88b2e787 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 17:15:57 +0300 Subject: [PATCH 10/24] Removed incorrect package from readme --- .../security/resource-manager/readme.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 93438b8b5fa7..fec7fc21ad10 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -65,25 +65,6 @@ tag: package-composite-v3 The following packages may be composed from multiple api-versions. - -### Tag: package-preview-2020-08 - -These settings apply only when `--tag=package-preview-2020-08` is specified on the command line. - -```yaml $(tag) == 'package-preview-2020-08' -input-file: - - Microsoft.Security/preview/2020-08-06-preview/SecuritySolutions.json - - Microsoft.Security/preview/2020-08-06-preview/adaptiveNetworkHardenings.json - - Microsoft.Security/preview/2020-08-06-preview/allowedConnections.json - - Microsoft.Security/preview/2020-08-06-preview/applicationWhitelistings.json - - Microsoft.Security/preview/2020-08-06-preview/assessmentMetadata.json - - Microsoft.Security/preview/2020-08-06-preview/assessments.json - - Microsoft.Security/preview/2020-08-06-preview/discoveredSecuritySolutions.json - - Microsoft.Security/preview/2020-08-06-preview/externalSecuritySolutions.json - - Microsoft.Security/preview/2020-08-06-preview/jitNetworkAccessPolicies.json - - Microsoft.Security/preview/2020-08-06-preview/securitySolutionsReferenceData.json - - Microsoft.Security/preview/2020-08-06-preview/serverVulnerabilityAssessments.json - - Microsoft.Security/preview/2020-08-06-preview/topologies.json ``` ### Tag: package-composite-v1 From 138ae9ec521979a64f35d0cefe1193b8820498f6 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 10 Aug 2020 17:37:54 +0300 Subject: [PATCH 11/24] Fixed readme --- specification/security/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index fec7fc21ad10..99678ee88bad 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -65,7 +65,7 @@ tag: package-composite-v3 The following packages may be composed from multiple api-versions. -``` + ### Tag: package-composite-v1 These settings apply only when `--tag=package-composite-v1` is specified on the command line. From 288fa6332f5a91c7aa22441b260593160ac839f8 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 11 Aug 2020 13:17:05 +0300 Subject: [PATCH 12/24] split sensors from settings --- ...teIotDefenderSettings.json => Delete.json} | 0 .../DownloadOnPremiseActivation.json | 9 - .../{GetIotDefenderSettings.json => Get.json} | 0 ...ListIotDefenderSettings.json => List.json} | 0 .../{PutIotDefenderSettings.json => Put.json} | 0 .../examples/IotSensors/Delete.json | 12 + .../IotSensors/DownloadActivation.json | 11 + .../examples/IotSensors/Get.json | 20 ++ .../examples/IotSensors/List.json | 22 ++ .../examples/IotSensors/Put.json | 30 ++ .../iotDefenderSettings.json | 69 +--- .../2020-08-06-preview/iotSensors.json | 302 ++++++++++++++++++ .../security/resource-manager/readme.md | 7 + 13 files changed, 409 insertions(+), 73 deletions(-) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/{DeleteIotDefenderSettings.json => Delete.json} (100%) delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/{GetIotDefenderSettings.json => Get.json} (100%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/{ListIotDefenderSettings.json => List.json} (100%) rename specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/{PutIotDefenderSettings.json => Put.json} (100%) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DeleteIotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DeleteIotDefenderSettings.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json deleted file mode 100644 index 6308d66b0952..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/DownloadOnPremiseActivation.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "parameters": { - "api-version": "2019-08-01", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/GetIotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/GetIotDefenderSettings.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/ListIotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/ListIotDefenderSettings.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PutIotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json similarity index 100% rename from specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PutIotDefenderSettings.json rename to specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json new file mode 100644 index 000000000000..59fdec6488a5 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "iotLocation": "westeurope", + "iotSensorName": "mySensor" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json new file mode 100644 index 000000000000..a4b8ab1c95de --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "iotLocation": "westeurope", + "iotSensorName": "mySensor" + }, + "responses": { + "200": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json new file mode 100644 index 000000000000..fc076af36085 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "iotLocation": "westeurope", + "iotSensorName": "mySensor" + }, + "responses": { + "200": { + "body": { + "name": "mySensor", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", + "type": "Microsoft.Security/locations/iotSensors", + "properties": { + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json new file mode 100644 index 000000000000..305e82ebb2a6 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "mySensor", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", + "type": "Microsoft.Security/locations/iotSensors", + "properties": { + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json new file mode 100644 index 000000000000..742577b79f40 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "iotLocation": "westeurope", + "iotSensorName": "mySensor" + }, + "responses": { + "200": { + "body": { + "name": "mySensor", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", + "type": "Microsoft.Security/locations/iotSensors", + "properties": { + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + } + } + }, + "201": { + "body": { + "name": "mySensor", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", + "type": "Microsoft.Security/locations/iotSensors", + "properties": { + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json index 3bc79e75a0d4..1d2b1685821a 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json @@ -38,7 +38,7 @@ "get": { "x-ms-examples": { "List IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/ListIotDefenderSettings.json" + "$ref": "./examples/IotDefenderSettings/List.json" } }, "tags": [ @@ -74,7 +74,7 @@ "get": { "x-ms-examples": { "Get IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/GetIotDefenderSettings.json" + "$ref": "./examples/IotDefenderSettings/Get.json" } }, "tags": [ @@ -108,7 +108,7 @@ "put": { "x-ms-examples": { "Create or update IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/PutIotDefenderSettings.json" + "$ref": "./examples/IotDefenderSettings/Put.json" } }, "tags": [ @@ -148,7 +148,7 @@ "delete": { "x-ms-examples": { "Delete IoT Defender settings": { - "$ref": "./examples/IotDefenderSettings/DeleteIotDefenderSettings.json" + "$ref": "./examples/IotDefenderSettings/Delete.json" } }, "tags": [ @@ -179,39 +179,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadOnPremiseActivation": { - "post": { - "x-ms-examples": { - "Download activation file": { - "$ref": "./examples/IotDefenderSettings/DownloadOnPremiseActivation.json" - } - }, - "tags": [ - "IoT Defender Settings" - ], - "operationId": "IotDefenderSettings_DownloadOnPremiseActivation", - "description": "Download on-premise sensors activation file", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "Downloaded activation file" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } } }, "definitions": { @@ -248,33 +215,7 @@ "IotDefenderSettingsProperties": { "type": "object", "description": "IoT Defender settings properties", - "properties": { - "onPremiseSensors": { - "description": "List of on-premise sensors", - "readOnly": false, - "type": "array", - "items": { - "$ref": "#/definitions/OnPremiseSensorProperties" - }, - "example": [ - { - "name": "sensor-1" - } - ] - } - } - }, - "OnPremiseSensorProperties": { - "type": "object", - "description": "On-premise sensor properties", - "properties": { - "name": { - "description": "Name of the sensor", - "readOnly": false, - "type": "string", - "example": "sensor-1" - } - } + "properties": {} } }, "parameters": {} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json new file mode 100644 index 000000000000..253f972483ae --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -0,0 +1,302 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2020-08-06-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}/providers/Microsoft.Security/iotSensors": { + "get": { + "x-ms-examples": { + "List IoT sensors": { + "$ref": "./examples/IotSensors/List.json" + } + }, + "tags": [ + "IoT Sensors" + ], + "description": "List IoT sensors", + "operationId": "IotSensors_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IotSensorsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}": { + "get": { + "x-ms-examples": { + "Get IoT sensor": { + "$ref": "./examples/IotSensors/Get.json" + } + }, + "tags": [ + "IoT Sensors" + ], + "operationId": "IotSensors_Get", + "description": "Get IoT sensor", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/IotLocation" + }, + { + "$ref": "#/parameters/IotSensorName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/IotSensor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create or update IoT sensor": { + "$ref": "./examples/IotSensors/Put.json" + } + }, + "tags": [ + "IoT Sensors" + ], + "operationId": "IotSensors_CreateOrUpdate", + "description": "Create or update IoT sensor", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/IotLocation" + }, + { + "$ref": "#/parameters/IotSensorName" + } + ], + "responses": { + "200": { + "description": "Updated IoT sensor", + "schema": { + "$ref": "#/definitions/IotSensor" + } + }, + "201": { + "description": "Created IoT sensor", + "schema": { + "$ref": "#/definitions/IotSensor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete IoT sensor": { + "$ref": "./examples/IotSensors/Delete.json" + } + }, + "tags": [ + "IoT Sensors" + ], + "operationId": "IotSensors_Delete", + "description": "Delete IoT sensor", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/IotLocation" + }, + { + "$ref": "#/parameters/IotSensorName" + } + ], + "responses": { + "200": { + "description": "Deleted IoT sensor" + }, + "204": { + "description": "IoT sensor does not exist" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}/downloadActivation": { + "post": { + "x-ms-examples": { + "Download activation file": { + "$ref": "./examples/IotSensors/DownloadActivation.json" + } + }, + "tags": [ + "IoT Sensors" + ], + "operationId": "IotSensors_DownloadActivation", + "description": "Download sensor activation file", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/IotLocation" + }, + { + "$ref": "#/parameters/IotSensorName" + } + ], + "responses": { + "200": { + "description": "Downloaded activation file" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "IotSensorsList": { + "description": "List of IoT sensors", + "type": "object", + "properties": { + "value": { + "description": "List data", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/IotSensor" + } + } + } + }, + "IotSensor": { + "type": "object", + "description": "IoT sensor", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "IoT sensor properties", + "$ref": "#/definitions/IotSensorProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "IotSensorProperties": { + "type": "object", + "description": "IoT sensor properties", + "properties": { + "iotHubResourceId": { + "description": "Resource id of the IoT Hub the sensor is associated with (immutable)", + "type": "string", + "example": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + } + } + } + }, + "parameters": { + "IotSensorName": { + "name": "iotSensorName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the IoT sensor", + "x-ms-parameter-location": "method" + }, + "IotLocation": { + "name": "iotLocation", + "in": "path", + "required": true, + "type": "string", + "description": "Location associated with the resource", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 99678ee88bad..558c11f266ae 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -48,6 +48,10 @@ directive: from: iotDefenderSettings.json where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings"].get' reason: The list returns limited number of items + - suppress: PageableOperation + from: iotSensors.json + where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}"].get' + reason: The list returns limited number of items ``` ### Basic Information @@ -190,6 +194,7 @@ input-file: - Microsoft.Security/stable/2020-01-01/SecuritySolutions.json - Microsoft.Security/preview/2020-01-01-preview/connectors.json - Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +- Microsoft.Security/preview/2020-08-06-preview/iotSensors.json # Needed when there is more than one input file override-info: @@ -374,6 +379,7 @@ These settings apply only when `--tag=package-2020-08-preview-only` is specified ``` yaml $(tag) == 'package-2020-08-preview-only' input-file: - Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +- Microsoft.Security/preview/2020-08-06-preview/iotSensors.json # Needed when there is more than one input file override-info: @@ -436,6 +442,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - $(this-folder)/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json + - $(this-folder)/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/secureScore.json - $(this-folder)/Microsoft.Security/preview/2020-01-01-preview/connectors.json - $(this-folder)/Microsoft.Security/preview/2019-01-01-preview/automations.json From 027f5f1ae321b6b4971e7deed4a1bd81823ffe9d Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 11 Aug 2020 13:58:16 +0300 Subject: [PATCH 13/24] Updated example --- .../examples/IotDefenderSettings/Get.json | 5 ----- .../examples/IotDefenderSettings/List.json | 5 ----- .../examples/IotDefenderSettings/Put.json | 10 ---------- 3 files changed, 20 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json index 81813255b339..37cd667e56db 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json @@ -10,11 +10,6 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", "properties": { - "onPremiseSensors": [ - { - "name": "sensor-1" - } - ] } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json index 6e8a2e4d0cf6..e46f599c753e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json @@ -12,11 +12,6 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", "properties": { - "onPremiseSensors": [ - { - "name": "sensor-1" - } - ] } } ] diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json index ca7327c2d581..3f4cb6c57771 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json @@ -10,11 +10,6 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", "properties": { - "onPremiseSensors": [ - { - "name": "sensor-1" - } - ] } } }, @@ -24,11 +19,6 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", "properties": { - "onPremiseSensors": [ - { - "name": "sensor-1" - } - ] } } } From 552d39d770adfc54256145e8f98cbf15fdfc87e7 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 11 Aug 2020 14:32:17 +0300 Subject: [PATCH 14/24] prettier --- .../examples/IotDefenderSettings/Get.json | 3 +-- .../examples/IotDefenderSettings/List.json | 3 +-- .../examples/IotDefenderSettings/Put.json | 6 ++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json index 37cd667e56db..90bfb4b46b10 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json @@ -9,8 +9,7 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - } + "properties": {} } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json index e46f599c753e..dabcbc2ed926 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json @@ -11,8 +11,7 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - } + "properties": {} } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json index 3f4cb6c57771..c501d004a703 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json @@ -9,8 +9,7 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - } + "properties": {} } }, "201": { @@ -18,8 +17,7 @@ "name": "default", "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", "type": "Microsoft.Security/iotDefenderSettings", - "properties": { - } + "properties": {} } } } From 73e988b0ddf6685a83b04a1effa81dcb113501ed Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Wed, 12 Aug 2020 11:27:02 +0300 Subject: [PATCH 15/24] add deviceId in sensor --- .../preview/2020-08-06-preview/examples/IotSensors/Get.json | 3 ++- .../2020-08-06-preview/examples/IotSensors/List.json | 3 ++- .../preview/2020-08-06-preview/examples/IotSensors/Put.json | 6 ++++-- .../preview/2020-08-06-preview/iotSensors.json | 6 ++++++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json index fc076af36085..9447442fbefc 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json @@ -12,7 +12,8 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", "type": "Microsoft.Security/locations/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", + "iotHubDeviceId": "mySensorDevice" } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json index 305e82ebb2a6..967f85e8010d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json @@ -12,7 +12,8 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", "type": "Microsoft.Security/locations/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", + "iotHubDeviceId": "mySensorDevice" } } ] diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json index 742577b79f40..13734ebb04e1 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json @@ -12,7 +12,8 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", "type": "Microsoft.Security/locations/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", + "iotHubDeviceId": "mySensorDevice" } } }, @@ -22,7 +23,8 @@ "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", "type": "Microsoft.Security/locations/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", + "iotHubDeviceId": "mySensorDevice" } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index 253f972483ae..e2b87c6d458c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -277,6 +277,12 @@ "description": "Resource id of the IoT Hub the sensor is associated with (immutable)", "type": "string", "example": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" + }, + "iotHubDeviceId": { + "description": "Device id that repreresents the sensor in the associated IoT Hub", + "readOnly": true, + "type": "string", + "example": "mySensorDevice" } } } From 0dbba8439a701d8553f0baff3edb743c5eb9812e Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Wed, 12 Aug 2020 14:18:57 +0300 Subject: [PATCH 16/24] typo --- .../preview/2020-08-06-preview/iotSensors.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index e2b87c6d458c..5d1879b323b2 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -279,7 +279,7 @@ "example": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" }, "iotHubDeviceId": { - "description": "Device id that repreresents the sensor in the associated IoT Hub", + "description": "Device id that represents the sensor in the associated IoT Hub", "readOnly": true, "type": "string", "example": "mySensorDevice" From 7f825c01b67167969758c8c7be949118d0f0c59d Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Thu, 13 Aug 2020 14:03:55 +0300 Subject: [PATCH 17/24] PackageDownloads --- .../IotDefenderSettings/PackageDownloads.json | 139 +++++++++++ .../iotDefenderSettings.json | 223 ++++++++++++++++++ 2 files changed, 362 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json new file mode 100644 index 000000000000..3c8d4ad485e0 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2019-08-01", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + }, + "responses": { + "200": { + "body": { + "sensor": { + "full": { + "iso": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.11", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ], + "ovf": { + "enterprise": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.11", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ], + "medium": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.11", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ], + "line": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.11", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ] + } + }, + "upgrade": [ + { + "version": "2.8.2", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.10", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ] + }, + "centralManager": { + "full": { + "iso": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.11", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ], + "ovf": { + "enterprise": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + } + ], + "enterpriseHighAvailability": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + } + ], + "medium": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + } + ], + "mediumHighAvailability": [ + { + "version": "3.1", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + } + ] + } + }, + "upgrade": [ + { + "version": "2.8.2", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Latest" + }, + { + "version": "2.8.10", + "link": "http://microsoft.com/downloadLocation", + "versionKind": "Previous" + } + ] + }, + "threatIntelligence": { + "link": "http://microsoft.com/downloadLocation" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json index 1d2b1685821a..540a98f405f8 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotDefenderSettings.json @@ -179,6 +179,42 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/packageDownloads": { + "post": { + "x-ms-examples": { + "Package downloads": { + "$ref": "./examples/IotDefenderSettings/PackageDownloads.json" + } + }, + "tags": [ + "IoT Defender Settings" + ], + "operationId": "IotDefenderSettings_PackageDownloads", + "description": "Information about downloadable packages", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "Package downloads", + "schema": { + "$ref": "#/definitions/PackageDownloads" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } } }, "definitions": { @@ -216,6 +252,193 @@ "type": "object", "description": "IoT Defender settings properties", "properties": {} + }, + "DownloadLink": { + "type": "string", + "description": "Download link", + "readOnly": true + }, + "PackageDownloadInfo": { + "type": "object", + "description": "Information on a specific package download", + "properties": { + "version": { + "type": "string", + "description": "Version number", + "readOnly": true + }, + "link": { + "description": "Download link", + "$ref": "#/definitions/DownloadLink" + }, + "versionKind": { + "type": "string", + "description": "Kind of the version", + "readOnly": true, + "enum": [ + "Latest", + "Previous" + ], + "x-ms-enum": { + "name": "versionKind", + "modelAsString": true, + "values": [ + { + "value": "Latest" + }, + { + "value": "Previous" + } + ] + } + } + } + }, + "PackageDownloads": { + "type": "object", + "description": "Information about package downloads", + "readOnly": true, + "properties": { + "sensor": { + "type": "object", + "description": "Contains all Sensor binary downloads", + "readOnly": true, + "properties": { + "full": { + "type": "object", + "description": "Contains full package downloads", + "readOnly": true, + "properties": { + "iso": { + "type": "array", + "description": "Contains all ISO full versions for the sensor", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "ovf": { + "type": "object", + "description": "Contains all OVF (virtual machine) full versions for the sensor", + "properties": { + "enterprise": { + "type": "array", + "description": "Enterprise package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "medium": { + "type": "array", + "description": "Medium package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "line": { + "type": "array", + "description": "Line package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + } + } + } + } + }, + "upgrade": { + "type": "array", + "description": "Sensor upgrade package downloads (on existing installations)", + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + } + } + }, + "centralManager": { + "type": "object", + "description": "All downloads for Central Manager", + "readOnly": true, + "properties": { + "full": { + "type": "object", + "description": "Contains full package downloads", + "readOnly": true, + "properties": { + "iso": { + "type": "array", + "description": "Contains all ISO full versions of the Central Manager", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "ovf": { + "type": "object", + "description": "Contains all OVF (virtual machine) full versions of the Central Manager", + "readOnly": true, + "properties": { + "enterprise": { + "type": "array", + "description": "The Enterprise package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "enterpriseHighAvailability": { + "type": "array", + "description": "The EnterpriseHighAvailability package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "medium": { + "type": "array", + "description": "The Medium package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + }, + "mediumHighAvailability": { + "type": "array", + "description": "The MediumHighAvailability package type", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + } + } + } + } + }, + "upgrade": { + "type": "array", + "description": "Central Manager upgrade package downloads (on existing installations)", + "readOnly": true, + "items": { + "$ref": "#/definitions/PackageDownloadInfo" + } + } + } + }, + "threatIntelligence": { + "type": "object", + "description": "All downloads for threat intelligence", + "readOnly": true, + "properties": { + "link": { + "description": "Download link", + "$ref": "#/definitions/DownloadLink" + } + } + } + } } }, "parameters": {} From e9f00f3e5006a2b141610d5b7504ad48a8477272 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Thu, 13 Aug 2020 14:21:26 +0300 Subject: [PATCH 18/24] Fix enum generation issue (align with stable) --- .../deviceSecurityGroups.json | 355 +++++++++++------- 1 file changed, 212 insertions(+), 143 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json index fd08950135a9..655474e9e7e8 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json @@ -37,14 +37,14 @@ "/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups": { "get": { "x-ms-examples": { - "List all device security groups for the specified IoT hub resource": { + "List all device security groups for the specified IoT Hub resource": { "$ref": "./examples/DeviceSecurityGroups/ListDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "Gets the list of device security groups for the specified IoT hub resource.", + "description": "Use this method get the list of device security groups for the specified IoT Hub resource.", "operationId": "DeviceSecurityGroups_List", "parameters": [ { @@ -76,14 +76,14 @@ "/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}": { "get": { "x-ms-examples": { - "Get an device security group for the specified IoT hub resource": { + "Get a device security group for the specified IoT Hub resource": { "$ref": "./examples/DeviceSecurityGroups/GetDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "Gets the device security group for the specified IoT hub resource.", + "description": "Use this method to get the device security group for the specified IoT Hub resource.", "operationId": "DeviceSecurityGroups_Get", "parameters": [ { @@ -98,7 +98,7 @@ ], "responses": { "200": { - "description": "Successful request to get security group.", + "description": "Successful request to get device security group.", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } @@ -120,7 +120,7 @@ "tags": [ "DeviceSecurityGroups" ], - "description": "Creates or updates the device security group on a specified IoT hub resource.", + "description": "Use this method to creates or updates the device security group on a specified IoT Hub resource.", "operationId": "DeviceSecurityGroups_CreateOrUpdate", "parameters": [ { @@ -138,13 +138,13 @@ ], "responses": { "200": { - "description": "Security group was updated", + "description": "Security group was updated.", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } }, "201": { - "description": "Security group was created", + "description": "Security group was created.", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } @@ -159,14 +159,14 @@ }, "delete": { "x-ms-examples": { - "Delete a device security group for the specified IoT hub resource": { + "Delete a device security group for the specified IoT Hub resource": { "$ref": "./examples/DeviceSecurityGroups/DeleteDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "Deletes the security group", + "description": "User this method to deletes the device security group.", "operationId": "DeviceSecurityGroups_Delete", "parameters": [ { @@ -238,7 +238,7 @@ "properties": { "thresholdRules": { "type": "array", - "description": "A list of threshold custom alert rules.", + "description": "The list of custom alert threshold rules.", "items": { "type": "object", "$ref": "#/definitions/ThresholdCustomAlertRule" @@ -246,7 +246,7 @@ }, "timeWindowRules": { "type": "array", - "description": "A list of time window custom alert rules.", + "description": "The list of custom alert time-window rules.", "items": { "type": "object", "$ref": "#/definitions/TimeWindowCustomAlertRule" @@ -254,7 +254,7 @@ }, "allowlistRules": { "type": "array", - "description": "A list of allow-list custom alert rules.", + "description": "The allow-list custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/AllowlistCustomAlertRule" @@ -262,7 +262,7 @@ }, "denylistRules": { "type": "array", - "description": "A list of deny-list custom alert rules.", + "description": "The deny-list custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/DenylistCustomAlertRule" @@ -272,7 +272,8 @@ }, "CustomAlertRule": { "type": "object", - "description": "A custom alert rule", + "description": "A custom alert rule.", + "discriminator": "ruleType", "properties": { "displayName": { "type": "string", @@ -286,7 +287,7 @@ }, "isEnabled": { "type": "boolean", - "description": "Whether the custom alert is enabled." + "description": "Status of the custom alert." }, "ruleType": { "type": "string", @@ -300,7 +301,7 @@ }, "ListCustomAlertRule": { "type": "object", - "description": "A List custom alert rule", + "description": "A List custom alert rule.", "allOf": [ { "$ref": "#/definitions/CustomAlertRule" @@ -309,7 +310,7 @@ "properties": { "valueType": { "type": "string", - "description": "The value type of the items in the list", + "description": "The value type of the items in the list.", "enum": [ "IpCidr", "String" @@ -334,7 +335,7 @@ }, "AllowlistCustomAlertRule": { "type": "object", - "description": "A custom alert rule that checks if a value (depends on the custom alert type) is allowed", + "description": "A custom alert rule that checks if a value (depends on the custom alert type) is allowed.", "allOf": [ { "$ref": "#/definitions/ListCustomAlertRule" @@ -347,42 +348,45 @@ "items": { "type": "string" } - }, - "ruleType": { - "type": "string", - "description": "The type of the custom alert rule.", - "enum": [ - "ConnectionToIpNotAllowed", - "LocalUserNotAllowed", - "ProcessNotAllowed" - ], - "x-ms-enum": { - "name": "ruleType", - "modelAsString": true, - "values": [ - { - "value": "ConnectionToIpNotAllowed", - "description": "Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation." - }, - { - "value": "LocalUserNotAllowed", - "description": "Login by a local user that isn't allowed. Allow list consists of login names to allow." - }, - { - "value": "ProcessNotAllowed", - "description": "Execution of a process that isn't allowed. Allow list consists of process names to allow." - } - ] - } } }, "required": [ "allowlistValues" ] }, + "ConnectionToIpNotAllowed": { + "type": "object", + "description": "Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation.", + "allOf": [ + { + "$ref": "#/definitions/AllowlistCustomAlertRule" + } + ], + "properties": {} + }, + "LocalUserNotAllowed": { + "type": "object", + "description": "Login by a local user that isn't allowed. Allow list consists of login names to allow.", + "allOf": [ + { + "$ref": "#/definitions/AllowlistCustomAlertRule" + } + ], + "properties": {} + }, + "ProcessNotAllowed": { + "type": "object", + "description": "Execution of a process that isn't allowed. Allow list consists of process names to allow.", + "allOf": [ + { + "$ref": "#/definitions/AllowlistCustomAlertRule" + } + ], + "properties": {} + }, "DenylistCustomAlertRule": { "type": "object", - "description": "A custom alert rule that checks if a value (depends on the custom alert type) is denied", + "description": "A custom alert rule that checks if a value (depends on the custom alert type) is denied.", "allOf": [ { "$ref": "#/definitions/ListCustomAlertRule" @@ -428,9 +432,6 @@ "type": "object", "description": "A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.", "allOf": [ - { - "$ref": "#/definitions/CustomAlertRule" - }, { "$ref": "#/definitions/ThresholdCustomAlertRule" } @@ -440,103 +441,171 @@ "type": "string", "description": "The time window size in iso8601 format.", "format": "duration" - }, - "ruleType": { - "type": "string", - "description": "The type of the custom alert rule.", - "enum": [ - "ActiveConnectionsNotInAllowedRange", - "AmqpC2DMessagesNotInAllowedRange", - "MqttC2DMessagesNotInAllowedRange", - "HttpC2DMessagesNotInAllowedRange", - "AmqpC2DRejectedMessagesNotInAllowedRange", - "MqttC2DRejectedMessagesNotInAllowedRange", - "HttpC2DRejectedMessagesNotInAllowedRange", - "AmqpD2CMessagesNotInAllowedRange", - "MqttD2CMessagesNotInAllowedRange", - "HttpD2CMessagesNotInAllowedRange", - "DirectMethodInvokesNotInAllowedRange", - "FailedLocalLoginsNotInAllowedRange", - "FileUploadsNotInAllowedRange", - "QueuePurgesNotInAllowedRange", - "TwinUpdatesNotInAllowedRange", - "UnauthorizedOperationsNotInAllowedRange" - ], - "x-ms-enum": { - "name": "ruleType", - "modelAsString": true, - "values": [ - { - "value": "ActiveConnectionsNotInAllowedRange", - "description": "Number of active connections is not in allowed range." - }, - { - "value": "AmqpC2DMessagesNotInAllowedRange", - "description": "Number of cloud to device messages (AMQP protocol) is not in allowed range." - }, - { - "value": "MqttC2DMessagesNotInAllowedRange", - "description": "Number of cloud to device messages (MQTT protocol) is not in allowed range." - }, - { - "value": "HttpC2DMessagesNotInAllowedRange", - "description": "Number of cloud to device messages (HTTP protocol) is not in allowed range." - }, - { - "value": "AmqpC2DRejectedMessagesNotInAllowedRange", - "description": "Number of rejected cloud to device messages (AMQP protocol) is not in allowed range." - }, - { - "value": "MqttC2DRejectedMessagesNotInAllowedRange", - "description": "Number of rejected cloud to device messages (MQTT protocol) is not in allowed range." - }, - { - "value": "HttpC2DRejectedMessagesNotInAllowedRange", - "description": "Number of rejected cloud to device messages (HTTP protocol) is not in allowed range." - }, - { - "value": "AmqpD2CMessagesNotInAllowedRange", - "description": "Number of device to cloud messages (AMQP protocol) is not in allowed range." - }, - { - "value": "MqttD2CMessagesNotInAllowedRange", - "description": "Number of device to cloud messages (MQTT protocol) is not in allowed range." - }, - { - "value": "HttpD2CMessagesNotInAllowedRange", - "description": "Number of device to cloud messages (HTTP protocol) is not in allowed range." - }, - { - "value": "DirectMethodInvokesNotInAllowedRange", - "description": "Number of direct method invokes is not in allowed range." - }, - { - "value": "FailedLocalLoginsNotInAllowedRange", - "description": "Number of failed local logins is not in allowed range." - }, - { - "value": "FileUploadsNotInAllowedRange", - "description": "Number of file uploads is not in allowed range." - }, - { - "value": "QueuePurgesNotInAllowedRange", - "description": "Number of device queue purges is not in allowed range." - }, - { - "value": "TwinUpdatesNotInAllowedRange", - "description": "Number of twin updates is not in allowed range." - }, - { - "value": "UnauthorizedOperationsNotInAllowedRange", - "description": "Number of unauthorized operations is not in allowed range." - } - ] - } } }, "required": [ "timeWindowSize" ] + }, + "ActiveConnectionsNotInAllowedRange": { + "type": "object", + "description": "Number of active connections is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "AmqpC2DMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of cloud to device messages (AMQP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "MqttC2DMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of cloud to device messages (MQTT protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "HttpC2DMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of cloud to device messages (HTTP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "AmqpC2DRejectedMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of rejected cloud to device messages (AMQP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "MqttC2DRejectedMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of rejected cloud to device messages (MQTT protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "HttpC2DRejectedMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of rejected cloud to device messages (HTTP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "AmqpD2CMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of device to cloud messages (AMQP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "MqttD2CMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of device to cloud messages (MQTT protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "HttpD2CMessagesNotInAllowedRange": { + "type": "object", + "description": "Number of device to cloud messages (HTTP protocol) is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "DirectMethodInvokesNotInAllowedRange": { + "type": "object", + "description": "Number of direct method invokes is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "FailedLocalLoginsNotInAllowedRange": { + "type": "object", + "description": "Number of failed local logins is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "FileUploadsNotInAllowedRange": { + "type": "object", + "description": "Number of file uploads is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "QueuePurgesNotInAllowedRange": { + "type": "object", + "description": "Number of device queue purges is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "TwinUpdatesNotInAllowedRange": { + "type": "object", + "description": "Number of twin updates is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} + }, + "UnauthorizedOperationsNotInAllowedRange": { + "type": "object", + "description": "Number of unauthorized operations is not in allowed range.", + "allOf": [ + { + "$ref": "#/definitions/TimeWindowCustomAlertRule" + } + ], + "properties": {} } }, "parameters": { @@ -545,7 +614,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the security group. Please notice that the name is case insensitive.", + "description": "The name of the device security group. Note that the name of the device security group is case insensitive.", "x-ms-parameter-location": "method" }, "DeviceSecurityGroup": { From fcaadeba9d524bf10e0beafc1be3f715f73392cc Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Thu, 13 Aug 2020 14:25:22 +0300 Subject: [PATCH 19/24] Revert "Fix enum generation issue (align with stable)" This reverts commit e9f00f3e5006a2b141610d5b7504ad48a8477272. --- .../deviceSecurityGroups.json | 355 +++++++----------- 1 file changed, 143 insertions(+), 212 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json index 655474e9e7e8..fd08950135a9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/deviceSecurityGroups.json @@ -37,14 +37,14 @@ "/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups": { "get": { "x-ms-examples": { - "List all device security groups for the specified IoT Hub resource": { + "List all device security groups for the specified IoT hub resource": { "$ref": "./examples/DeviceSecurityGroups/ListDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "Use this method get the list of device security groups for the specified IoT Hub resource.", + "description": "Gets the list of device security groups for the specified IoT hub resource.", "operationId": "DeviceSecurityGroups_List", "parameters": [ { @@ -76,14 +76,14 @@ "/{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}": { "get": { "x-ms-examples": { - "Get a device security group for the specified IoT Hub resource": { + "Get an device security group for the specified IoT hub resource": { "$ref": "./examples/DeviceSecurityGroups/GetDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "Use this method to get the device security group for the specified IoT Hub resource.", + "description": "Gets the device security group for the specified IoT hub resource.", "operationId": "DeviceSecurityGroups_Get", "parameters": [ { @@ -98,7 +98,7 @@ ], "responses": { "200": { - "description": "Successful request to get device security group.", + "description": "Successful request to get security group.", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } @@ -120,7 +120,7 @@ "tags": [ "DeviceSecurityGroups" ], - "description": "Use this method to creates or updates the device security group on a specified IoT Hub resource.", + "description": "Creates or updates the device security group on a specified IoT hub resource.", "operationId": "DeviceSecurityGroups_CreateOrUpdate", "parameters": [ { @@ -138,13 +138,13 @@ ], "responses": { "200": { - "description": "Security group was updated.", + "description": "Security group was updated", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } }, "201": { - "description": "Security group was created.", + "description": "Security group was created", "schema": { "$ref": "#/definitions/DeviceSecurityGroup" } @@ -159,14 +159,14 @@ }, "delete": { "x-ms-examples": { - "Delete a device security group for the specified IoT Hub resource": { + "Delete a device security group for the specified IoT hub resource": { "$ref": "./examples/DeviceSecurityGroups/DeleteDeviceSecurityGroups_example.json" } }, "tags": [ "DeviceSecurityGroups" ], - "description": "User this method to deletes the device security group.", + "description": "Deletes the security group", "operationId": "DeviceSecurityGroups_Delete", "parameters": [ { @@ -238,7 +238,7 @@ "properties": { "thresholdRules": { "type": "array", - "description": "The list of custom alert threshold rules.", + "description": "A list of threshold custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/ThresholdCustomAlertRule" @@ -246,7 +246,7 @@ }, "timeWindowRules": { "type": "array", - "description": "The list of custom alert time-window rules.", + "description": "A list of time window custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/TimeWindowCustomAlertRule" @@ -254,7 +254,7 @@ }, "allowlistRules": { "type": "array", - "description": "The allow-list custom alert rules.", + "description": "A list of allow-list custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/AllowlistCustomAlertRule" @@ -262,7 +262,7 @@ }, "denylistRules": { "type": "array", - "description": "The deny-list custom alert rules.", + "description": "A list of deny-list custom alert rules.", "items": { "type": "object", "$ref": "#/definitions/DenylistCustomAlertRule" @@ -272,8 +272,7 @@ }, "CustomAlertRule": { "type": "object", - "description": "A custom alert rule.", - "discriminator": "ruleType", + "description": "A custom alert rule", "properties": { "displayName": { "type": "string", @@ -287,7 +286,7 @@ }, "isEnabled": { "type": "boolean", - "description": "Status of the custom alert." + "description": "Whether the custom alert is enabled." }, "ruleType": { "type": "string", @@ -301,7 +300,7 @@ }, "ListCustomAlertRule": { "type": "object", - "description": "A List custom alert rule.", + "description": "A List custom alert rule", "allOf": [ { "$ref": "#/definitions/CustomAlertRule" @@ -310,7 +309,7 @@ "properties": { "valueType": { "type": "string", - "description": "The value type of the items in the list.", + "description": "The value type of the items in the list", "enum": [ "IpCidr", "String" @@ -335,7 +334,7 @@ }, "AllowlistCustomAlertRule": { "type": "object", - "description": "A custom alert rule that checks if a value (depends on the custom alert type) is allowed.", + "description": "A custom alert rule that checks if a value (depends on the custom alert type) is allowed", "allOf": [ { "$ref": "#/definitions/ListCustomAlertRule" @@ -348,45 +347,42 @@ "items": { "type": "string" } + }, + "ruleType": { + "type": "string", + "description": "The type of the custom alert rule.", + "enum": [ + "ConnectionToIpNotAllowed", + "LocalUserNotAllowed", + "ProcessNotAllowed" + ], + "x-ms-enum": { + "name": "ruleType", + "modelAsString": true, + "values": [ + { + "value": "ConnectionToIpNotAllowed", + "description": "Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation." + }, + { + "value": "LocalUserNotAllowed", + "description": "Login by a local user that isn't allowed. Allow list consists of login names to allow." + }, + { + "value": "ProcessNotAllowed", + "description": "Execution of a process that isn't allowed. Allow list consists of process names to allow." + } + ] + } } }, "required": [ "allowlistValues" ] }, - "ConnectionToIpNotAllowed": { - "type": "object", - "description": "Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation.", - "allOf": [ - { - "$ref": "#/definitions/AllowlistCustomAlertRule" - } - ], - "properties": {} - }, - "LocalUserNotAllowed": { - "type": "object", - "description": "Login by a local user that isn't allowed. Allow list consists of login names to allow.", - "allOf": [ - { - "$ref": "#/definitions/AllowlistCustomAlertRule" - } - ], - "properties": {} - }, - "ProcessNotAllowed": { - "type": "object", - "description": "Execution of a process that isn't allowed. Allow list consists of process names to allow.", - "allOf": [ - { - "$ref": "#/definitions/AllowlistCustomAlertRule" - } - ], - "properties": {} - }, "DenylistCustomAlertRule": { "type": "object", - "description": "A custom alert rule that checks if a value (depends on the custom alert type) is denied.", + "description": "A custom alert rule that checks if a value (depends on the custom alert type) is denied", "allOf": [ { "$ref": "#/definitions/ListCustomAlertRule" @@ -432,6 +428,9 @@ "type": "object", "description": "A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range.", "allOf": [ + { + "$ref": "#/definitions/CustomAlertRule" + }, { "$ref": "#/definitions/ThresholdCustomAlertRule" } @@ -441,171 +440,103 @@ "type": "string", "description": "The time window size in iso8601 format.", "format": "duration" + }, + "ruleType": { + "type": "string", + "description": "The type of the custom alert rule.", + "enum": [ + "ActiveConnectionsNotInAllowedRange", + "AmqpC2DMessagesNotInAllowedRange", + "MqttC2DMessagesNotInAllowedRange", + "HttpC2DMessagesNotInAllowedRange", + "AmqpC2DRejectedMessagesNotInAllowedRange", + "MqttC2DRejectedMessagesNotInAllowedRange", + "HttpC2DRejectedMessagesNotInAllowedRange", + "AmqpD2CMessagesNotInAllowedRange", + "MqttD2CMessagesNotInAllowedRange", + "HttpD2CMessagesNotInAllowedRange", + "DirectMethodInvokesNotInAllowedRange", + "FailedLocalLoginsNotInAllowedRange", + "FileUploadsNotInAllowedRange", + "QueuePurgesNotInAllowedRange", + "TwinUpdatesNotInAllowedRange", + "UnauthorizedOperationsNotInAllowedRange" + ], + "x-ms-enum": { + "name": "ruleType", + "modelAsString": true, + "values": [ + { + "value": "ActiveConnectionsNotInAllowedRange", + "description": "Number of active connections is not in allowed range." + }, + { + "value": "AmqpC2DMessagesNotInAllowedRange", + "description": "Number of cloud to device messages (AMQP protocol) is not in allowed range." + }, + { + "value": "MqttC2DMessagesNotInAllowedRange", + "description": "Number of cloud to device messages (MQTT protocol) is not in allowed range." + }, + { + "value": "HttpC2DMessagesNotInAllowedRange", + "description": "Number of cloud to device messages (HTTP protocol) is not in allowed range." + }, + { + "value": "AmqpC2DRejectedMessagesNotInAllowedRange", + "description": "Number of rejected cloud to device messages (AMQP protocol) is not in allowed range." + }, + { + "value": "MqttC2DRejectedMessagesNotInAllowedRange", + "description": "Number of rejected cloud to device messages (MQTT protocol) is not in allowed range." + }, + { + "value": "HttpC2DRejectedMessagesNotInAllowedRange", + "description": "Number of rejected cloud to device messages (HTTP protocol) is not in allowed range." + }, + { + "value": "AmqpD2CMessagesNotInAllowedRange", + "description": "Number of device to cloud messages (AMQP protocol) is not in allowed range." + }, + { + "value": "MqttD2CMessagesNotInAllowedRange", + "description": "Number of device to cloud messages (MQTT protocol) is not in allowed range." + }, + { + "value": "HttpD2CMessagesNotInAllowedRange", + "description": "Number of device to cloud messages (HTTP protocol) is not in allowed range." + }, + { + "value": "DirectMethodInvokesNotInAllowedRange", + "description": "Number of direct method invokes is not in allowed range." + }, + { + "value": "FailedLocalLoginsNotInAllowedRange", + "description": "Number of failed local logins is not in allowed range." + }, + { + "value": "FileUploadsNotInAllowedRange", + "description": "Number of file uploads is not in allowed range." + }, + { + "value": "QueuePurgesNotInAllowedRange", + "description": "Number of device queue purges is not in allowed range." + }, + { + "value": "TwinUpdatesNotInAllowedRange", + "description": "Number of twin updates is not in allowed range." + }, + { + "value": "UnauthorizedOperationsNotInAllowedRange", + "description": "Number of unauthorized operations is not in allowed range." + } + ] + } } }, "required": [ "timeWindowSize" ] - }, - "ActiveConnectionsNotInAllowedRange": { - "type": "object", - "description": "Number of active connections is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "AmqpC2DMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of cloud to device messages (AMQP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "MqttC2DMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of cloud to device messages (MQTT protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "HttpC2DMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of cloud to device messages (HTTP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "AmqpC2DRejectedMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of rejected cloud to device messages (AMQP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "MqttC2DRejectedMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of rejected cloud to device messages (MQTT protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "HttpC2DRejectedMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of rejected cloud to device messages (HTTP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "AmqpD2CMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of device to cloud messages (AMQP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "MqttD2CMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of device to cloud messages (MQTT protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "HttpD2CMessagesNotInAllowedRange": { - "type": "object", - "description": "Number of device to cloud messages (HTTP protocol) is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "DirectMethodInvokesNotInAllowedRange": { - "type": "object", - "description": "Number of direct method invokes is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "FailedLocalLoginsNotInAllowedRange": { - "type": "object", - "description": "Number of failed local logins is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "FileUploadsNotInAllowedRange": { - "type": "object", - "description": "Number of file uploads is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "QueuePurgesNotInAllowedRange": { - "type": "object", - "description": "Number of device queue purges is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "TwinUpdatesNotInAllowedRange": { - "type": "object", - "description": "Number of twin updates is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} - }, - "UnauthorizedOperationsNotInAllowedRange": { - "type": "object", - "description": "Number of unauthorized operations is not in allowed range.", - "allOf": [ - { - "$ref": "#/definitions/TimeWindowCustomAlertRule" - } - ], - "properties": {} } }, "parameters": { @@ -614,7 +545,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the device security group. Note that the name of the device security group is case insensitive.", + "description": "The name of the security group. Please notice that the name is case insensitive.", "x-ms-parameter-location": "method" }, "DeviceSecurityGroup": { From 5ffe8da3b86f7e7f63e99f6abc6e3f022d64fced Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Mon, 17 Aug 2020 10:39:24 +0300 Subject: [PATCH 20/24] Fix api verison in examples --- .../2020-08-06-preview/examples/IotDefenderSettings/Delete.json | 2 +- .../2020-08-06-preview/examples/IotDefenderSettings/Get.json | 2 +- .../2020-08-06-preview/examples/IotDefenderSettings/List.json | 2 +- .../examples/IotDefenderSettings/PackageDownloads.json | 2 +- .../2020-08-06-preview/examples/IotDefenderSettings/Put.json | 2 +- .../preview/2020-08-06-preview/examples/IotSensors/Delete.json | 2 +- .../examples/IotSensors/DownloadActivation.json | 2 +- .../preview/2020-08-06-preview/examples/IotSensors/Get.json | 2 +- .../preview/2020-08-06-preview/examples/IotSensors/List.json | 2 +- .../preview/2020-08-06-preview/examples/IotSensors/Put.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json index 539fe783ec11..1e27394b4322 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json index 90bfb4b46b10..838aa27b70fa 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Get.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json index dabcbc2ed926..2cf5f5fee30d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json index 3c8d4ad485e0..a074c8f4ed72 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/PackageDownloads.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json index c501d004a703..b4738db76a87 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotDefenderSettings/Put.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json index 59fdec6488a5..9c4dcd6aaf57 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "iotLocation": "westeurope", "iotSensorName": "mySensor" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json index a4b8ab1c95de..4dd45ee26df9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "iotLocation": "westeurope", "iotSensorName": "mySensor" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json index 9447442fbefc..0f24dfdda338 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "iotLocation": "westeurope", "iotSensorName": "mySensor" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json index 967f85e8010d..a3d172e075be 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json index 13734ebb04e1..53938352813d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2019-08-01", + "api-version": "2020-08-06-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "iotLocation": "westeurope", "iotSensorName": "mySensor" From d29e7b8c5cc436a7153ae640e019d454fa76871a Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 18 Aug 2020 11:16:28 +0300 Subject: [PATCH 21/24] Remove location from iotSensors. Transition to extension resource --- .../examples/IotSensors/Delete.json | 3 +- .../IotSensors/DownloadActivation.json | 3 +- .../examples/IotSensors/Get.json | 8 ++-- .../examples/IotSensors/List.json | 13 +++-- .../examples/IotSensors/Put.json | 13 ++--- .../2020-08-06-preview/iotSensors.json | 48 +++++++------------ 6 files changed, 35 insertions(+), 53 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json index 9c4dcd6aaf57..c24e42c7df41 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Delete.json @@ -1,8 +1,7 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotLocation": "westeurope", + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", "iotSensorName": "mySensor" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json index 4dd45ee26df9..2aebd9e8ac3b 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/DownloadActivation.json @@ -1,8 +1,7 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotLocation": "westeurope", + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", "iotSensorName": "mySensor" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json index 0f24dfdda338..e66575a02c00 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json @@ -1,18 +1,16 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotLocation": "westeurope", + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", "iotSensorName": "mySensor" }, "responses": { "200": { "body": { "name": "mySensor", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", - "type": "Microsoft.Security/locations/iotSensors", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", + "type": "Microsoft.Security/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", "iotHubDeviceId": "mySensorDevice" } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json index a3d172e075be..de3b6dbc7002 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub" }, "responses": { "200": { @@ -9,12 +9,17 @@ "value": [ { "name": "mySensor", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", - "type": "Microsoft.Security/locations/iotSensors", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", + "type": "Microsoft.Security/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", "iotHubDeviceId": "mySensorDevice" } + }, + { + "name": "otherSensor", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/otherSensor", + "type": "Microsoft.Security/iotSensors", + "properties": {} } ] } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json index 53938352813d..ff111c8049e1 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json @@ -1,18 +1,16 @@ { "parameters": { "api-version": "2020-08-06-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "iotLocation": "westeurope", + "scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub", "iotSensorName": "mySensor" }, "responses": { "200": { "body": { "name": "mySensor", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", - "type": "Microsoft.Security/locations/iotSensors", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", + "type": "Microsoft.Security/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", "iotHubDeviceId": "mySensorDevice" } } @@ -20,10 +18,9 @@ "201": { "body": { "name": "mySensor", - "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/westeurope/iotSensors/mySensor", - "type": "Microsoft.Security/locations/iotSensors", + "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", + "type": "Microsoft.Security/iotSensors", "properties": { - "iotHubResourceId": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub", "iotHubDeviceId": "mySensorDevice" } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index 5d1879b323b2..ec9f236987d6 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSensors": { + "/{scope}/providers/Microsoft.Security/iotSensors": { "get": { "x-ms-examples": { "List IoT sensors": { @@ -51,7 +51,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + "$ref": "#/parameters/Scope" } ], "responses": { @@ -70,7 +70,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}": { + "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}": { "get": { "x-ms-examples": { "Get IoT sensor": { @@ -87,10 +87,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IotLocation" + "$ref": "#/parameters/Scope" }, { "$ref": "#/parameters/IotSensorName" @@ -127,10 +124,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IotLocation" + "$ref": "#/parameters/Scope" }, { "$ref": "#/parameters/IotSensorName" @@ -173,10 +167,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IotLocation" + "$ref": "#/parameters/Scope" }, { "$ref": "#/parameters/IotSensorName" @@ -198,7 +189,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}/downloadActivation": { + "/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadActivation": { "post": { "x-ms-examples": { "Download activation file": { @@ -215,10 +206,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IotLocation" + "$ref": "#/parameters/Scope" }, { "$ref": "#/parameters/IotSensorName" @@ -273,11 +261,6 @@ "type": "object", "description": "IoT sensor properties", "properties": { - "iotHubResourceId": { - "description": "Resource id of the IoT Hub the sensor is associated with (immutable)", - "type": "string", - "example": "/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede/resourceGroups/myGroup/Providers/Microsoft.Devices/iotHubs/myHub" - }, "iotHubDeviceId": { "description": "Device id that represents the sensor in the associated IoT Hub", "readOnly": true, @@ -288,20 +271,21 @@ } }, "parameters": { - "IotSensorName": { - "name": "iotSensorName", + "Scope": { + "name": "scope", "in": "path", "required": true, "type": "string", - "description": "Name of the IoT sensor", - "x-ms-parameter-location": "method" + "description": "Scope of the query, can be subscription (/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede) or IoT Hub (/providers/Microsoft.Devices/iotHubs/myHub)", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true }, - "IotLocation": { - "name": "iotLocation", + "IotSensorName": { + "name": "iotSensorName", "in": "path", "required": true, "type": "string", - "description": "Location associated with the resource", + "description": "Name of the IoT sensor", "x-ms-parameter-location": "method" } } From 4fcec3584cbef1f2b8a2313acf0b388c099508f4 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 18 Aug 2020 11:41:07 +0300 Subject: [PATCH 22/24] Fix param name duplication --- .../preview/2020-08-06-preview/iotSensors.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index ec9f236987d6..5a59f00c6c8d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -51,7 +51,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Scope" + "$ref": "#/parameters/IotSensorScope" } ], "responses": { @@ -87,7 +87,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Scope" + "$ref": "#/parameters/IotSensorScope" }, { "$ref": "#/parameters/IotSensorName" @@ -124,7 +124,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Scope" + "$ref": "#/parameters/IotSensorScope" }, { "$ref": "#/parameters/IotSensorName" @@ -167,7 +167,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Scope" + "$ref": "#/parameters/IotSensorScope" }, { "$ref": "#/parameters/IotSensorName" @@ -206,7 +206,7 @@ "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" }, { - "$ref": "#/parameters/Scope" + "$ref": "#/parameters/IotSensorScope" }, { "$ref": "#/parameters/IotSensorName" @@ -271,7 +271,7 @@ } }, "parameters": { - "Scope": { + "IotSensorScope": { "name": "scope", "in": "path", "required": true, From 3c6afd9ac417dc1582b8b70c159ff268fe2b3be9 Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 18 Aug 2020 15:24:54 +0300 Subject: [PATCH 23/24] Update warning ignore path --- specification/security/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index babd905255e0..a03c0b99f5e1 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -50,7 +50,7 @@ directive: reason: The list returns limited number of items - suppress: PageableOperation from: iotSensors.json - where: '$.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{iotLocation}/iotSensors/{iotSensorName}"].get' + where: '$.paths["/{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}"].get' reason: The list returns limited number of items ``` From c1370e4829c9591612c2730f2038d224a5ba4d6d Mon Sep 17 00:00:00 2001 From: Liran Chen Date: Tue, 18 Aug 2020 22:32:00 +0300 Subject: [PATCH 24/24] Remove deviceId --- .../2020-08-06-preview/examples/IotSensors/Get.json | 4 +--- .../2020-08-06-preview/examples/IotSensors/List.json | 4 +--- .../2020-08-06-preview/examples/IotSensors/Put.json | 8 ++------ .../preview/2020-08-06-preview/iotSensors.json | 9 +-------- 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json index e66575a02c00..3c79cade9456 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json @@ -10,9 +10,7 @@ "name": "mySensor", "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", "type": "Microsoft.Security/iotSensors", - "properties": { - "iotHubDeviceId": "mySensorDevice" - } + "properties": {} } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json index de3b6dbc7002..b7e9675bad0d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json @@ -11,9 +11,7 @@ "name": "mySensor", "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", "type": "Microsoft.Security/iotSensors", - "properties": { - "iotHubDeviceId": "mySensorDevice" - } + "properties": {} }, { "name": "otherSensor", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json index ff111c8049e1..9bcb0dc2df12 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json @@ -10,9 +10,7 @@ "name": "mySensor", "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", "type": "Microsoft.Security/iotSensors", - "properties": { - "iotHubDeviceId": "mySensorDevice" - } + "properties": {} } }, "201": { @@ -20,9 +18,7 @@ "name": "mySensor", "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/mySensor", "type": "Microsoft.Security/iotSensors", - "properties": { - "iotHubDeviceId": "mySensorDevice" - } + "properties": {} } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json index 5a59f00c6c8d..cad4e4eaf779 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json @@ -260,14 +260,7 @@ "IotSensorProperties": { "type": "object", "description": "IoT sensor properties", - "properties": { - "iotHubDeviceId": { - "description": "Device id that represents the sensor in the associated IoT Hub", - "readOnly": true, - "type": "string", - "example": "mySensorDevice" - } - } + "properties": {} } }, "parameters": {