From e29cec83040e037c3b181640d51ea3996a8ce9f3 Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes <32778998+SapirElmakayes@users.noreply.github.com> Date: Tue, 26 Oct 2021 12:37:12 +0300 Subject: [PATCH 1/6] Adds base for updating Microsoft.Security from version preview/2021-07-01-preview to version 2021-07-02-preview --- .../customAssessmentAutomation.json | 481 +++++++++++++++ .../customEntityStoreAssignment.json | 351 +++++++++++ ...tomAssessmentAutomationCreate_example.json | 71 +++ ...tomAssessmentAutomationDelete_example.json | 12 + ...customAssessmentAutomationGet_example.json | 35 ++ ...AutomationListByResourceGroup_example.json | 62 ++ ...tAutomationListBySubscription_example.json | 61 ++ ...omEntityStoreAssignmentCreate_example.json | 53 ++ ...omEntityStoreAssignmentDelete_example.json | 12 + ...ustomEntityStoreAssignmentGet_example.json | 29 + ...AssignmentListByResourceGroup_example.json | 42 ++ ...eAssignmentListBySubscription_example.json | 49 ++ .../DeleteSecurityConnector_example.json | 12 + ...ecurityConnectorResourceGroup_example.json | 42 ++ ...curityConnectorsResourceGroup_example.json | 45 ++ ...ecurityConnectorsSubscription_example.json | 43 ++ .../PatchSecurityConnector_example.json | 59 ++ .../PutSecurityConnector_example.json | 91 +++ .../securityConnectors.json | 574 ++++++++++++++++++ 19 files changed, 2124 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json new file mode 100644 index 000000000000..979a6048845c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json @@ -0,0 +1,481 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2021-07-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}": { + "get": { + "summary": "Gets a custom assessment automation", + "description": "Gets a single custom assessment automation by name for the provided subscription and resource group.", + "tags": [ + "customAssessmentAutomations" + ], + "operationId": "CustomAssessmentAutomations_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customAssessmentAutomationName" + } + ], + "x-ms-examples": { + "Get a Custom Assessment Automation": { + "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json" + } + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/customAssessmentAutomation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "summary": "Creates a custom assessment automation", + "description": "Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.", + "tags": [ + "customAssessmentAutomations" + ], + "operationId": "CustomAssessmentAutomations_Create", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customAssessmentAutomationName" + }, + { + "$ref": "#/parameters/customAssessmentAutomationBody" + } + ], + "x-ms-examples": { + "Create a Custom Assessment Automation": { + "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json" + } + }, + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/customAssessmentAutomation" + } + }, + "200": { + "description": "OK - Updated", + "schema": { + "$ref": "#/definitions/customAssessmentAutomation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "summary": "Deletes a custom assessment automation", + "description": "Deletes a custom assessment automation by name for a provided subscription", + "tags": [ + "customAssessmentAutomations" + ], + "operationId": "CustomAssessmentAutomations_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customAssessmentAutomationName" + } + ], + "x-ms-examples": { + "Delete a Custom Assessment Automation": { + "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Custom Assessment Automation was deleted" + }, + "204": { + "description": "No Content - Custom Assessment Automation 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/customAssessmentAutomations": { + "get": { + "summary": "List custom assessment automations in a subscription and a resource group", + "description": "List custom assessment automations by provided subscription and resource group", + "tags": [ + "customAssessmentAutomations" + ], + "operationId": "CustomAssessmentAutomations_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + } + ], + "x-ms-examples": { + "List Custom Assessment Automations in a subscription and a resource group": { + "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns a collection of Custom Assessment Automations", + "schema": { + "$ref": "#/definitions/customAssessmentAutomationsListResult" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations": { + "get": { + "summary": "List custom assessment automations in a subscription", + "description": "List custom assessment automations by provided subscription", + "tags": [ + "customAssessmentAutomations" + ], + "operationId": "CustomAssessmentAutomations_ListBySubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "x-ms-examples": { + "List Custom Assessment Automations in a subscription": { + "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns a collection of Custom Assessment Automations", + "schema": { + "$ref": "#/definitions/customAssessmentAutomationsListResult" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "customAssessmentAutomationsListResult": { + "type": "object", + "description": "A list of Custom Assessment Automations", + "properties": { + "value": { + "description": "Collection of Custom Assessment Automations", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/customAssessmentAutomation" + } + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + } + }, + "customAssessmentAutomation": { + "type": "object", + "description": "Custom Assessment Automation", + "properties": { + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "describes Custom Assessment Automation properties.", + "$ref": "#/definitions/customAssessmentAutomationProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "customAssessmentAutomationRequest": { + "type": "object", + "description": "Custom Assessment Automation request", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "describes Custom Assessment Automation request properties.", + "$ref": "#/definitions/customAssessmentAutomationRequestProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "customAssessmentAutomationProperties": { + "type": "object", + "description": "describes the Custom Assessment Automation properties", + "properties": { + "compressedQuery": { + "description": "GZip encoded KQL query representing the assessment automation results required.", + "type": "string" + }, + "supportedCloud": { + "description": "Relevant cloud for the custom assessment automation.", + "type": "string", + "enum": [ + "AWS" + ], + "x-ms-enum": { + "name": "supportedCloudEnum", + "modelAsString": true + }, + "x-ms-client-default": "AWS" + }, + "severity": { + "description": "The severity to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Medium", + "Low" + ], + "x-ms-enum": { + "name": "severityEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "userImpact": { + "description": "The user impact to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Moderate", + "Low" + ], + "x-ms-enum": { + "name": "userImpactEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "implementationEffort": { + "description": "The implementation effort to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Moderate", + "Low" + ], + "x-ms-enum": { + "name": "implementationEffortEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "description": { + "description": "The description to relate to the assessments generated by this assessment automation.", + "type": "string" + }, + "remediationDescription": { + "description": "The remediation description to relate to the assessments generated by this assessment automation.", + "type": "string" + }, + "assessmentKey": { + "description": "The assessment metadata key used when an assessment is generated for this assessment automation.", + "type": "string" + } + } + }, + "customAssessmentAutomationRequestProperties": { + "type": "object", + "description": "describes the Custom Assessment Automation properties", + "properties": { + "compressedQuery": { + "description": "Base 64 encoded KQL query representing the assessment automation results required.", + "type": "string" + }, + "supportedCloud": { + "description": "Relevant cloud for the custom assessment automation.", + "type": "string", + "enum": [ + "AWS" + ], + "x-ms-enum": { + "name": "supportedCloudEnum", + "modelAsString": true + }, + "x-ms-client-default": "AWS" + }, + "severity": { + "description": "The severity to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Medium", + "Low" + ], + "x-ms-enum": { + "name": "severityEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "userImpact": { + "description": "The user impact to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Moderate", + "Low" + ], + "x-ms-enum": { + "name": "userImpactEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "implementationEffort": { + "description": "The implementation effort to relate to the assessments generated by this assessment automation.", + "type": "string", + "enum": [ + "High", + "Moderate", + "Low" + ], + "x-ms-enum": { + "name": "implementationEffortEnum", + "modelAsString": true + }, + "x-ms-client-default": "Low" + }, + "description": { + "description": "The description to relate to the assessments generated by this assessment automation.", + "type": "string" + }, + "remediationDescription": { + "description": "The remediation description to relate to the assessments generated by this assessment automation.", + "type": "string" + } + } + } + }, + "parameters": { + "customAssessmentAutomationName": { + "name": "customAssessmentAutomationName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the Custom Assessment Automation.", + "x-ms-parameter-location": "method" + }, + "customAssessmentAutomationBody": { + "name": "customAssessmentAutomationBody", + "in": "body", + "description": "Custom Assessment Automation body", + "required": true, + "schema": { + "$ref": "#/definitions/customAssessmentAutomationRequest" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json new file mode 100644 index 000000000000..5aedaab3a909 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json @@ -0,0 +1,351 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2021-07-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments/{customEntityStoreAssignmentName}": { + "get": { + "summary": "Gets a custom entity store assignment", + "description": "Gets a single custom entity store assignment by name for the provided subscription and resource group.", + "tags": [ + "customEntityStoreAssignments" + ], + "operationId": "CustomEntityStoreAssignments_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customEntityStoreAssignmentName" + } + ], + "x-ms-examples": { + "Get a custom entity store assignment": { + "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json" + } + }, + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "summary": "Creates a custom entity store assignment", + "description": "Creates a custom entity store assignment for the provided subscription, if not already exists.", + "tags": [ + "customEntityStoreAssignments" + ], + "operationId": "CustomEntityStoreAssignments_Create", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customEntityStoreAssignmentName" + }, + { + "$ref": "#/parameters/customEntityStoreAssignmentRequestBody" + } + ], + "x-ms-examples": { + "Create a custom entity store assignment": { + "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json" + } + }, + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignment" + } + }, + "200": { + "description": "OK - Updated", + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "summary": "Deleted a custom entity store assignment", + "description": "Delete a custom entity store assignment by name for a provided subscription", + "tags": [ + "customEntityStoreAssignments" + ], + "operationId": "CustomEntityStoreAssignments_Delete", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/customEntityStoreAssignmentName" + } + ], + "x-ms-examples": { + "Delete a custom entity store assignment": { + "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Custom Entity Store Assignment was deleted" + }, + "204": { + "description": "No Content - Custom Entity Store Assignment 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/customEntityStoreAssignments": { + "get": { + "summary": "List custom entity store assignments in a subscription and a resource group", + "description": "List custom entity store assignments by a provided subscription and resource group", + "tags": [ + "customEntityStoreAssignments" + ], + "operationId": "CustomEntityStoreAssignments_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + } + ], + "x-ms-examples": { + "List custom entity store assignments in a subscription and a resource group": { + "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns a collection of custom entity store assignments", + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignmentsListResult" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/customEntityStoreAssignments": { + "get": { + "summary": "List custom entity store assignments in a subscription", + "description": "List custom entity store assignments by provided subscription", + "tags": [ + "customEntityStoreAssignments" + ], + "operationId": "CustomEntityStoreAssignments_ListBySubscription", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "x-ms-examples": { + "List custom entity store assignments in a subscription": { + "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json" + } + }, + "responses": { + "200": { + "description": "OK - Returns a collection of custom entity store assignments", + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignmentsListResult" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "CustomEntityStoreAssignmentsListResult": { + "type": "object", + "description": "A list of custom entity store assignments", + "properties": { + "value": { + "description": "Collection of custom entity store assignments", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/CustomEntityStoreAssignment" + } + }, + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + } + } + }, + "CustomEntityStoreAssignment": { + "type": "object", + "description": "Custom entity store assignment", + "properties": { + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "describes custom entity store assignment properties.", + "$ref": "#/definitions/CustomEntityStoreAssignmentProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/Resource" + } + ] + }, + "CustomEntityStoreAssignmentProperties": { + "type": "object", + "description": "describes the custom entity store assignment properties", + "properties": { + "principal": { + "description": "The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]", + "type": "string" + }, + "entityStoreDatabaseLink": { + "description": "The link to entity store database.", + "type": "string" + } + } + }, + "CustomEntityStoreAssignmentRequest": { + "type": "object", + "description": "describes the custom entity store assignment request", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CustomEntityStoreAssignmentRequestProperties" + } + } + }, + "CustomEntityStoreAssignmentRequestProperties": { + "type": "object", + "description": "describes properties of custom entity store assignment request", + "properties": { + "principal": { + "description": "The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]", + "type": "string" + } + } + } + }, + "parameters": { + "customEntityStoreAssignmentName": { + "name": "customEntityStoreAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the custom entity store assignment. Generated name is GUID.", + "x-ms-parameter-location": "method" + }, + "customEntityStoreAssignmentRequestBody": { + "name": "customEntityStoreAssignmentRequestBody", + "in": "body", + "description": "Custom entity store assignment body", + "required": true, + "schema": { + "$ref": "#/definitions/CustomEntityStoreAssignmentRequest" + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json new file mode 100644 index 000000000000..eb9f5dd87657 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customAssessmentAutomationName": "MyCustomAssessmentAutomation", + "customAssessmentAutomationBody": { + "properties": { + "compressedQuery": "H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=", + "supportedCloud": "AWS", + "severity": "Medium", + "userImpact": "Moderate", + "implementationEffort": "High", + "description": "Data should be encrypted", + "remediationDescription": "Encrypt store by..." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", + "supportedCloud": "AWS", + "severity": "Medium", + "userImpact": "Moderate", + "implementationEffort": "High", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:01:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:01:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", + "supportedCloud": "AWS", + "severity": "Medium", + "userImpact": "Moderate", + "implementationEffort": "High", + "description": "Data should be encrypted", + "remediationDescription": "Encrypt store by...", + "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json new file mode 100644 index 000000000000..b6939c3fe989 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customAssessmentAutomationName": "MyCustomAssessmentAutomation" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json new file mode 100644 index 000000000000..2e88c71e335c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customAssessmentAutomationName": "MyCustomAssessmentAutomation" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation", + "name": "MyCustomAssessmentAutomation", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", + "supportedCloud": "AWS", + "severity": "Low", + "userImpact": "Low", + "implementationEffort": "Low", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json new file mode 100644 index 000000000000..55eb700b0c0e --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation1", + "name": "MyCustomAssessmentAutomation1", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", + "supportedCloud": "AWS", + "severity": "Medium", + "userImpact": "Moderate", + "implementationEffort": "High", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" + } + }, + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation2", + "name": "MyCustomAssessmentAutomation2", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:01:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:01:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", + "supportedCloud": "AWS", + "severity": "Low", + "userImpact": "Low", + "implementationEffort": "Low", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json new file mode 100644 index 000000000000..c42826394b7c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation1", + "name": "MyCustomAssessmentAutomation1", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", + "supportedCloud": "AWS", + "severity": "Medium", + "userImpact": "Moderate", + "implementationEffort": "High", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" + } + }, + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation2", + "name": "MyCustomAssessmentAutomation2", + "type": "Microsoft.Security/customAssessmentAutomations", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:01:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:01:50.328Z" + }, + "properties": { + "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", + "supportedCloud": "AWS", + "severity": "Low", + "userImpact": "Low", + "implementationEffort": "Low", + "description": "organization passwords policy", + "remediationDescription": "Change password policy to...", + "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json new file mode 100644 index 000000000000..4cba8dc52cc9 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "customEntityStoreAssignmentRequestBody": { + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:01:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:01:50.328Z" + }, + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json new file mode 100644 index 000000000000..bc98e0c7315a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json new file mode 100644 index 000000000000..f9f50ea3620a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup", + "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json new file mode 100644 index 000000000000..cfb735592f80 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", + "resourceGroupName": "TestResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" + } + }, + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/a400695c-4728-d5cc-8e19-4b5a76f209df", + "name": "a400695c-4728-d5cc-8e19-4b5a76f209df", + "type": "Microsoft.Security/customEntityStoreAssignments", + "properties": { + "principal": "aaduser=f6e2564c-f34a-9b61-416c-5e5e7e521118;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwvIz8lMrgzKz0nlqlFIrShJzUtR8Cz2SE3MKcmoVLBVUE9LzClOVQcA1IFnficAAAA=" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json new file mode 100644 index 000000000000..18bc9a3e319d --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", + "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" + } + }, + { + "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/a400695c-4728-d5cc-8e19-4b5a76f209df", + "name": "a400695c-4728-d5cc-8e19-4b5a76f209df", + "type": "Microsoft.Security/customEntityStoreAssignments", + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:01:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:01:50.328Z" + }, + "properties": { + "principal": "aaduser=f6e2564c-f34a-9b61-416c-5e5e7e521118;72f988bf-86f1-41af-91ab-2d7cd011db47", + "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwvIz8lMrgzKz0nlqlFIrShJzUtR8Cz2SE3MKcmoVLBVUE9LzClOVQcA1IFnficAAAA=" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json new file mode 100644 index 000000000000..238efa15c67c --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", + "resourceGroupName": "myRg", + "securityConnectorName": "mySecurityConnectorName" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json new file mode 100644 index 000000000000..487e7959f1aa --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", + "resourceGroupName": "exampleResourceGroup", + "securityConnectorName": "exampleSecurityConnectorName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "organizationalData": null, + "hierarchyIdentifier": "exampleHierarchyId", + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json new file mode 100644 index 000000000000..63ef8a2e9880 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", + "resourceGroupName": "exampleResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "organizationalData": null, + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json new file mode 100644 index 000000000000..5f90b30f38fe --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "organizationalData": null, + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json new file mode 100644 index 000000000000..4f6ca41f222b --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", + "securityConnectorName": "exampleSecurityConnectorName", + "resourceGroupName": "exampleResourceGroup", + "securityConnector": { + "location": "Central US", + "etag": "etag value (must be supplied for update)", + "tags": {}, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "location": "Central US", + "kind": "", + "etag": "etag value", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "organizationalData": null, + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json new file mode 100644 index 000000000000..1c82e395fab2 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", + "securityConnectorName": "exampleSecurityConnectorName", + "resourceGroupName": "exampleResourceGroup", + "securityConnector": { + "location": "Central US", + "etag": "etag value (must be supplied for update)", + "tags": {}, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "location": "Central US", + "kind": "", + "etag": "", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "organizationalData": null, + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", + "name": "exampleSecurityConnectorName", + "type": "Microsoft.Security/securityConnectors", + "location": "Central US", + "kind": "", + "etag": "", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-08-31T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-31T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "organizationalData": null, + "cloudName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json new file mode 100644 index 000000000000..422c0953b858 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json @@ -0,0 +1,574 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2021-07-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/securityConnectors": { + "get": { + "x-ms-examples": { + "List all security connectors of a specified subscription": { + "$ref": "./examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "description": "Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.", + "operationId": "SecurityConnectors_List", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityConnectorsList" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors": { + "get": { + "x-ms-examples": { + "List all security connectors of a specified resource group": { + "$ref": "./examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "description": "Lists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to get the next page of security connectors for the specified resource group.", + "operationId": "SecurityConnectors_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityConnectorsList" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}": { + "get": { + "x-ms-examples": { + "Retrieve a security connector": { + "$ref": "./examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "description": "Retrieves details of a specific security connector", + "operationId": "SecurityConnectors_Get", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/securityConnectorName" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityConnector" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "put": { + "x-ms-examples": { + "Create or update a security connector": { + "$ref": "./examples/SecurityConnectors/PutSecurityConnector_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "description": "Creates or updates a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.", + "operationId": "SecurityConnectors_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/securityConnectorName" + }, + { + "$ref": "#/parameters/securityConnectorInBody" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityConnector" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SecurityConnector" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "patch": { + "x-ms-examples": { + "Update a security connector": { + "$ref": "./examples/SecurityConnectors/PatchSecurityConnector_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "description": "Updates a security connector", + "operationId": "SecurityConnectors_Update", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/securityConnectorName" + }, + { + "$ref": "#/parameters/securityConnectorInBody" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SecurityConnector" + } + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + }, + "delete": { + "x-ms-examples": { + "Delete a security connector": { + "$ref": "./examples/SecurityConnectors/DeleteSecurityConnector_example.json" + } + }, + "tags": [ + "SecurityConnectors" + ], + "operationId": "SecurityConnectors_Delete", + "description": "Deletes a security connector.", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/securityConnectorName" + } + ], + "responses": { + "200": { + "description": "The resource was deleted successfully" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response that describes why the operation failed.", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "SecurityConnectorsList": { + "type": "object", + "description": "List of security connectors response.", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "The list of security connectors under the given scope.", + "items": { + "$ref": "#/definitions/SecurityConnector" + } + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URI to fetch the next page." + } + } + }, + "SecurityConnector": { + "type": "object", + "description": "The security connector resource.", + "properties": { + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Security connector data", + "$ref": "#/definitions/SecurityConnectorProperties" + } + }, + "allOf": [ + { + "$ref": "../../../common/v1/types.json#/definitions/TrackedResource" + } + ] + }, + "SecurityConnectorProperties": { + "type": "object", + "description": "A set of properties that defines the security connector configuration.", + "properties": { + "hierarchyIdentifier": { + "type": "string", + "description": "The multi cloud resource identifier (account id in case of AWS connector)." + }, + "cloudName": { + "type": "string", + "description": "The multi cloud resource's cloud name.", + "enum": [ + "Azure", + "AWS", + "GCP" + ], + "x-ms-enum": { + "name": "cloudName", + "modelAsString": true + } + }, + "offerings": { + "type": "array", + "description": "A collection of offerings for the security connector.", + "items": { + "$ref": "#/definitions/cloudOffering" + } + }, + "organizationalData": { + "type": "object", + "description": "The multi cloud account's organizational data", + "properties": { + "organizationMembershipType": { + "type": "string", + "description": "The multi cloud account's membership type in the organization", + "enum": [ + "Member", + "Organization" + ], + "x-ms-enum": { + "name": "organizationMembershipType", + "modelAsString": true + } + }, + "parentHierarchyId": { + "type": "string", + "description": "If the multi cloud account is not of membership type organization, this will be the ID of the account's parent" + }, + "stacksetName": { + "type": "string", + "description": "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset" + }, + "excludedAccountId": { + "type": "array", + "description": "If the multi cloud account is of membership type organization, list of accounts excluded from offering", + "items": { + "type": "string", + "description": "account ID" + } + } + } + } + } + }, + "cloudOffering": { + "type": "object", + "description": "The security offering details", + "discriminator": "offeringType", + "required": [ + "offeringType" + ], + "properties": { + "offeringType": { + "type": "string", + "description": "The type of the security offering.", + "enum": [ + "CspmMonitorAws", + "DefenderForContainersAws", + "DefenderForServersAws" + ], + "x-ms-enum": { + "name": "OfferingType", + "modelAsString": true + } + }, + "description": { + "type": "string", + "description": "The offering description.", + "readOnly": true + } + } + }, + "cspmMonitorAwsOffering": { + "type": "object", + "description": "The CSPM monitoring for AWS offering configurations", + "x-ms-discriminator-value": "CspmMonitorAws", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "nativeCloudConnection": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + } + } + }, + "defenderForContainersAwsOffering": { + "type": "object", + "description": "The Defender for Containers AWS offering configurations", + "x-ms-discriminator-value": "DefenderForContainersAws", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "kubernetesService": { + "type": "object", + "description": "The kubernetes service connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "kubernetesScubaReader": { + "type": "object", + "description": "The kubernetes to scuba connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "cloudWatchToKinesis": { + "type": "object", + "description": "The cloudwatch to kinesis connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "kinesisToS3": { + "type": "object", + "description": "The kinesis to s3 connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + } + } + }, + "defenderForServersAwsOffering": { + "type": "object", + "description": "The Defender for Servers AWS offering configurations", + "x-ms-discriminator-value": "DefenderForServersAWS", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "defenderForServers": { + "type": "object", + "description": "The Defender for servers connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "arcAutoProvisioning": { + "type": "object", + "description": "The ARC autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is arc auto provisioning enabled" + }, + "servicePrincipalSecretMetadata": { + "type": "object", + "description": "Metadata of Service Principal secret for autoprovisioning", + "properties": { + "expiryDate": { + "type": "string", + "description": "expiration date of service principal secret" + }, + "parameterStoreRegion": { + "type": "string", + "description": "region of parameter store where secret is kept" + }, + "parameterNameInStore": { + "type": "string", + "description": "name of secret resource in parameter store" + } + } + } + } + } + } + } + }, + "parameters": { + "securityConnectorName": { + "name": "securityConnectorName", + "in": "path", + "required": true, + "type": "string", + "description": "The security connector name.", + "x-ms-parameter-location": "method" + }, + "securityConnectorInBody": { + "name": "securityConnector", + "in": "body", + "required": true, + "description": "The security connector resource", + "schema": { + "$ref": "#/definitions/SecurityConnector" + }, + "x-ms-parameter-location": "method" + } + } +} From e62aa763e398d33387f797ef365ad2f58d1c3358 Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes <32778998+SapirElmakayes@users.noreply.github.com> Date: Tue, 26 Oct 2021 12:37:52 +0300 Subject: [PATCH 2/6] Updates readme --- .../security/resource-manager/readme.md | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 3d1035144fe7..c8b2f82b7b0d 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -66,13 +66,24 @@ 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-2021-07 ``` ### Composite packages The following packages may be composed from multiple api-versions. + +### Tag: package-preview-2021-07 + +These settings apply only when `--tag=package-preview-2021-07` is specified on the command line. + +```yaml $(tag) == 'package-preview-2021-07' +input-file: + - Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json + - Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json + - Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json +``` ### Tag: package-preview-2021-08 These settings apply only when `--tag=package-preview-2021-08` is specified on the command line. @@ -454,7 +465,7 @@ override-info: These settings apply only when `--tag=package-2021-07-preview-only` is specified on the command line. -```yaml $(tag) == 'package-2021-07-preview-only' +``` yaml $(tag) == 'package-2021-07-preview-only' input-file: - Microsoft.Security/preview/2021-07-01-preview/customAssessmentAutomation.json - Microsoft.Security/preview/2021-07-01-preview/customEntityStoreAssignment.json @@ -464,15 +475,17 @@ input-file: These settings apply only when `--tag=package-2021-10-preview-only` is specified on the command line. -```yaml $(tag) == 'package-2021-10-preview-only' +``` yaml $(tag) == 'package-2021-10-preview-only' input-file: - Microsoft.Security/preview/2021-10-01-preview/mdeOnboardings.json ``` # Needed when there is more than one input file + override-info: - title: SecurityCenter -``` +title: SecurityCenter + +``` ### Tag: package-2021-06-only From d11e88fcc1176fdf63a253bb06ef006098f45dd3 Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes <32778998+SapirElmakayes@users.noreply.github.com> Date: Tue, 26 Oct 2021 12:38:05 +0300 Subject: [PATCH 3/6] Updates API version in new specs and examples --- .../preview/2021-07-02-preview/customAssessmentAutomation.json | 2 +- .../preview/2021-07-02-preview/customEntityStoreAssignment.json | 2 +- .../customAssessmentAutomationCreate_example.json | 2 +- .../customAssessmentAutomationDelete_example.json | 2 +- .../customAssessmentAutomationGet_example.json | 2 +- .../customAssessmentAutomationListByResourceGroup_example.json | 2 +- .../customAssessmentAutomationListBySubscription_example.json | 2 +- .../customEntityStoreAssignmentCreate_example.json | 2 +- .../customEntityStoreAssignmentDelete_example.json | 2 +- .../customEntityStoreAssignmentGet_example.json | 2 +- .../customEntityStoreAssignmentListByResourceGroup_example.json | 2 +- .../customEntityStoreAssignmentListBySubscription_example.json | 2 +- .../SecurityConnectors/DeleteSecurityConnector_example.json | 2 +- .../GetSecurityConnectorResourceGroup_example.json | 2 +- .../GetSecurityConnectorsResourceGroup_example.json | 2 +- .../GetSecurityConnectorsSubscription_example.json | 2 +- .../SecurityConnectors/PatchSecurityConnector_example.json | 2 +- .../SecurityConnectors/PutSecurityConnector_example.json | 2 +- .../preview/2021-07-02-preview/securityConnectors.json | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json index 979a6048845c..fd5ee64729ec 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-07-01-preview" + "version": "2021-07-02-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json index 5aedaab3a909..c5fdc66daf17 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-07-01-preview" + "version": "2021-07-02-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json index eb9f5dd87657..ff48afae5dc9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customAssessmentAutomationName": "MyCustomAssessmentAutomation", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json index b6939c3fe989..1db0a7c9cc1c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customAssessmentAutomationName": "MyCustomAssessmentAutomation" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json index 2e88c71e335c..b6e40c450ab2 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customAssessmentAutomationName": "MyCustomAssessmentAutomation" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json index 55eb700b0c0e..e0510db7450e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json index c42826394b7c..863a5c6b7383 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json index 4cba8dc52cc9..d74544147602 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json index bc98e0c7315a..7b6fad03b621 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json index f9f50ea3620a..5011b5d59947 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup", "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json index cfb735592f80..0bbc324f926d 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", "resourceGroupName": "TestResourceGroup" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json index 18bc9a3e319d..7604153fc18e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json index 238efa15c67c..04fa5201443c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myRg", "securityConnectorName": "mySecurityConnectorName" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json index 487e7959f1aa..06a93dbf9432 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "resourceGroupName": "exampleResourceGroup", "securityConnectorName": "exampleSecurityConnectorName" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json index 63ef8a2e9880..8f63e9ad0025 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "resourceGroupName": "exampleResourceGroup" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json index 5f90b30f38fe..fc364252ef5c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json index 4f6ca41f222b..769d4fb0b1ba 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "securityConnectorName": "exampleSecurityConnectorName", "resourceGroupName": "exampleResourceGroup", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json index 1c82e395fab2..5dfc70a1cb2f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-07-01-preview", + "api-version": "2021-07-02-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "securityConnectorName": "exampleSecurityConnectorName", "resourceGroupName": "exampleResourceGroup", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json index 422c0953b858..6a57bf23d96f 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-07-01-preview" + "version": "2021-07-02-preview" }, "host": "management.azure.com", "schemes": [ From 34b19097ad4ae4e69380cdb21eb9dfc4c11ce82f Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes Date: Tue, 26 Oct 2021 12:51:58 +0300 Subject: [PATCH 4/6] Fix account id to account ids --- .../securityConnectors.json | 4 +- .../customAssessmentAutomation.json | 481 --------------- .../customEntityStoreAssignment.json | 351 ----------- ...tomAssessmentAutomationCreate_example.json | 71 --- ...tomAssessmentAutomationDelete_example.json | 12 - ...customAssessmentAutomationGet_example.json | 35 -- ...AutomationListByResourceGroup_example.json | 62 -- ...tAutomationListBySubscription_example.json | 61 -- ...omEntityStoreAssignmentCreate_example.json | 53 -- ...omEntityStoreAssignmentDelete_example.json | 12 - ...ustomEntityStoreAssignmentGet_example.json | 29 - ...AssignmentListByResourceGroup_example.json | 42 -- ...eAssignmentListBySubscription_example.json | 49 -- .../DeleteSecurityConnector_example.json | 12 - ...ecurityConnectorResourceGroup_example.json | 42 -- ...curityConnectorsResourceGroup_example.json | 45 -- ...ecurityConnectorsSubscription_example.json | 43 -- .../PatchSecurityConnector_example.json | 59 -- .../PutSecurityConnector_example.json | 91 --- .../securityConnectors.json | 574 ------------------ .../security/resource-manager/readme.md | 15 +- 21 files changed, 4 insertions(+), 2139 deletions(-) delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/securityConnectors.json index 422c0953b858..324ba5500bdc 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/securityConnectors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-01-preview/securityConnectors.json @@ -386,12 +386,12 @@ "type": "string", "description": "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset" }, - "excludedAccountId": { + "excludedAccountIds": { "type": "array", "description": "If the multi cloud account is of membership type organization, list of accounts excluded from offering", "items": { "type": "string", - "description": "account ID" + "description": "account IDs" } } } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json deleted file mode 100644 index fd5ee64729ec..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json +++ /dev/null @@ -1,481 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-07-02-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customAssessmentAutomations/{customAssessmentAutomationName}": { - "get": { - "summary": "Gets a custom assessment automation", - "description": "Gets a single custom assessment automation by name for the provided subscription and resource group.", - "tags": [ - "customAssessmentAutomations" - ], - "operationId": "CustomAssessmentAutomations_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customAssessmentAutomationName" - } - ], - "x-ms-examples": { - "Get a Custom Assessment Automation": { - "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json" - } - }, - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/customAssessmentAutomation" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "summary": "Creates a custom assessment automation", - "description": "Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.", - "tags": [ - "customAssessmentAutomations" - ], - "operationId": "CustomAssessmentAutomations_Create", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customAssessmentAutomationName" - }, - { - "$ref": "#/parameters/customAssessmentAutomationBody" - } - ], - "x-ms-examples": { - "Create a Custom Assessment Automation": { - "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json" - } - }, - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/customAssessmentAutomation" - } - }, - "200": { - "description": "OK - Updated", - "schema": { - "$ref": "#/definitions/customAssessmentAutomation" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "summary": "Deletes a custom assessment automation", - "description": "Deletes a custom assessment automation by name for a provided subscription", - "tags": [ - "customAssessmentAutomations" - ], - "operationId": "CustomAssessmentAutomations_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customAssessmentAutomationName" - } - ], - "x-ms-examples": { - "Delete a Custom Assessment Automation": { - "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Custom Assessment Automation was deleted" - }, - "204": { - "description": "No Content - Custom Assessment Automation 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/customAssessmentAutomations": { - "get": { - "summary": "List custom assessment automations in a subscription and a resource group", - "description": "List custom assessment automations by provided subscription and resource group", - "tags": [ - "customAssessmentAutomations" - ], - "operationId": "CustomAssessmentAutomations_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - } - ], - "x-ms-examples": { - "List Custom Assessment Automations in a subscription and a resource group": { - "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Returns a collection of Custom Assessment Automations", - "schema": { - "$ref": "#/definitions/customAssessmentAutomationsListResult" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/customAssessmentAutomations": { - "get": { - "summary": "List custom assessment automations in a subscription", - "description": "List custom assessment automations by provided subscription", - "tags": [ - "customAssessmentAutomations" - ], - "operationId": "CustomAssessmentAutomations_ListBySubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "x-ms-examples": { - "List Custom Assessment Automations in a subscription": { - "$ref": "./examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Returns a collection of Custom Assessment Automations", - "schema": { - "$ref": "#/definitions/customAssessmentAutomationsListResult" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "customAssessmentAutomationsListResult": { - "type": "object", - "description": "A list of Custom Assessment Automations", - "properties": { - "value": { - "description": "Collection of Custom Assessment Automations", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/customAssessmentAutomation" - } - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - } - }, - "customAssessmentAutomation": { - "type": "object", - "description": "Custom Assessment Automation", - "properties": { - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "describes Custom Assessment Automation properties.", - "$ref": "#/definitions/customAssessmentAutomationProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "customAssessmentAutomationRequest": { - "type": "object", - "description": "Custom Assessment Automation request", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "describes Custom Assessment Automation request properties.", - "$ref": "#/definitions/customAssessmentAutomationRequestProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "customAssessmentAutomationProperties": { - "type": "object", - "description": "describes the Custom Assessment Automation properties", - "properties": { - "compressedQuery": { - "description": "GZip encoded KQL query representing the assessment automation results required.", - "type": "string" - }, - "supportedCloud": { - "description": "Relevant cloud for the custom assessment automation.", - "type": "string", - "enum": [ - "AWS" - ], - "x-ms-enum": { - "name": "supportedCloudEnum", - "modelAsString": true - }, - "x-ms-client-default": "AWS" - }, - "severity": { - "description": "The severity to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Medium", - "Low" - ], - "x-ms-enum": { - "name": "severityEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "userImpact": { - "description": "The user impact to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Moderate", - "Low" - ], - "x-ms-enum": { - "name": "userImpactEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "implementationEffort": { - "description": "The implementation effort to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Moderate", - "Low" - ], - "x-ms-enum": { - "name": "implementationEffortEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "description": { - "description": "The description to relate to the assessments generated by this assessment automation.", - "type": "string" - }, - "remediationDescription": { - "description": "The remediation description to relate to the assessments generated by this assessment automation.", - "type": "string" - }, - "assessmentKey": { - "description": "The assessment metadata key used when an assessment is generated for this assessment automation.", - "type": "string" - } - } - }, - "customAssessmentAutomationRequestProperties": { - "type": "object", - "description": "describes the Custom Assessment Automation properties", - "properties": { - "compressedQuery": { - "description": "Base 64 encoded KQL query representing the assessment automation results required.", - "type": "string" - }, - "supportedCloud": { - "description": "Relevant cloud for the custom assessment automation.", - "type": "string", - "enum": [ - "AWS" - ], - "x-ms-enum": { - "name": "supportedCloudEnum", - "modelAsString": true - }, - "x-ms-client-default": "AWS" - }, - "severity": { - "description": "The severity to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Medium", - "Low" - ], - "x-ms-enum": { - "name": "severityEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "userImpact": { - "description": "The user impact to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Moderate", - "Low" - ], - "x-ms-enum": { - "name": "userImpactEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "implementationEffort": { - "description": "The implementation effort to relate to the assessments generated by this assessment automation.", - "type": "string", - "enum": [ - "High", - "Moderate", - "Low" - ], - "x-ms-enum": { - "name": "implementationEffortEnum", - "modelAsString": true - }, - "x-ms-client-default": "Low" - }, - "description": { - "description": "The description to relate to the assessments generated by this assessment automation.", - "type": "string" - }, - "remediationDescription": { - "description": "The remediation description to relate to the assessments generated by this assessment automation.", - "type": "string" - } - } - } - }, - "parameters": { - "customAssessmentAutomationName": { - "name": "customAssessmentAutomationName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the Custom Assessment Automation.", - "x-ms-parameter-location": "method" - }, - "customAssessmentAutomationBody": { - "name": "customAssessmentAutomationBody", - "in": "body", - "description": "Custom Assessment Automation body", - "required": true, - "schema": { - "$ref": "#/definitions/customAssessmentAutomationRequest" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json deleted file mode 100644 index c5fdc66daf17..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.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": "2021-07-02-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Security/customEntityStoreAssignments/{customEntityStoreAssignmentName}": { - "get": { - "summary": "Gets a custom entity store assignment", - "description": "Gets a single custom entity store assignment by name for the provided subscription and resource group.", - "tags": [ - "customEntityStoreAssignments" - ], - "operationId": "CustomEntityStoreAssignments_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customEntityStoreAssignmentName" - } - ], - "x-ms-examples": { - "Get a custom entity store assignment": { - "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json" - } - }, - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "summary": "Creates a custom entity store assignment", - "description": "Creates a custom entity store assignment for the provided subscription, if not already exists.", - "tags": [ - "customEntityStoreAssignments" - ], - "operationId": "CustomEntityStoreAssignments_Create", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customEntityStoreAssignmentName" - }, - { - "$ref": "#/parameters/customEntityStoreAssignmentRequestBody" - } - ], - "x-ms-examples": { - "Create a custom entity store assignment": { - "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json" - } - }, - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignment" - } - }, - "200": { - "description": "OK - Updated", - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "summary": "Deleted a custom entity store assignment", - "description": "Delete a custom entity store assignment by name for a provided subscription", - "tags": [ - "customEntityStoreAssignments" - ], - "operationId": "CustomEntityStoreAssignments_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/customEntityStoreAssignmentName" - } - ], - "x-ms-examples": { - "Delete a custom entity store assignment": { - "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Custom Entity Store Assignment was deleted" - }, - "204": { - "description": "No Content - Custom Entity Store Assignment 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/customEntityStoreAssignments": { - "get": { - "summary": "List custom entity store assignments in a subscription and a resource group", - "description": "List custom entity store assignments by a provided subscription and resource group", - "tags": [ - "customEntityStoreAssignments" - ], - "operationId": "CustomEntityStoreAssignments_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - } - ], - "x-ms-examples": { - "List custom entity store assignments in a subscription and a resource group": { - "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Returns a collection of custom entity store assignments", - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignmentsListResult" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/customEntityStoreAssignments": { - "get": { - "summary": "List custom entity store assignments in a subscription", - "description": "List custom entity store assignments by provided subscription", - "tags": [ - "customEntityStoreAssignments" - ], - "operationId": "CustomEntityStoreAssignments_ListBySubscription", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "x-ms-examples": { - "List custom entity store assignments in a subscription": { - "$ref": "./examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json" - } - }, - "responses": { - "200": { - "description": "OK - Returns a collection of custom entity store assignments", - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignmentsListResult" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "CustomEntityStoreAssignmentsListResult": { - "type": "object", - "description": "A list of custom entity store assignments", - "properties": { - "value": { - "description": "Collection of custom entity store assignments", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/CustomEntityStoreAssignment" - } - }, - "nextLink": { - "description": "The link used to get the next page of operations.", - "type": "string" - } - } - }, - "CustomEntityStoreAssignment": { - "type": "object", - "description": "Custom entity store assignment", - "properties": { - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "describes custom entity store assignment properties.", - "$ref": "#/definitions/CustomEntityStoreAssignmentProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "CustomEntityStoreAssignmentProperties": { - "type": "object", - "description": "describes the custom entity store assignment properties", - "properties": { - "principal": { - "description": "The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]", - "type": "string" - }, - "entityStoreDatabaseLink": { - "description": "The link to entity store database.", - "type": "string" - } - } - }, - "CustomEntityStoreAssignmentRequest": { - "type": "object", - "description": "describes the custom entity store assignment request", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/CustomEntityStoreAssignmentRequestProperties" - } - } - }, - "CustomEntityStoreAssignmentRequestProperties": { - "type": "object", - "description": "describes properties of custom entity store assignment request", - "properties": { - "principal": { - "description": "The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]", - "type": "string" - } - } - } - }, - "parameters": { - "customEntityStoreAssignmentName": { - "name": "customEntityStoreAssignmentName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the custom entity store assignment. Generated name is GUID.", - "x-ms-parameter-location": "method" - }, - "customEntityStoreAssignmentRequestBody": { - "name": "customEntityStoreAssignmentRequestBody", - "in": "body", - "description": "Custom entity store assignment body", - "required": true, - "schema": { - "$ref": "#/definitions/CustomEntityStoreAssignmentRequest" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json deleted file mode 100644 index ff48afae5dc9..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationCreate_example.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customAssessmentAutomationName": "MyCustomAssessmentAutomation", - "customAssessmentAutomationBody": { - "properties": { - "compressedQuery": "H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=", - "supportedCloud": "AWS", - "severity": "Medium", - "userImpact": "Moderate", - "implementationEffort": "High", - "description": "Data should be encrypted", - "remediationDescription": "Encrypt store by..." - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", - "supportedCloud": "AWS", - "severity": "Medium", - "userImpact": "Moderate", - "implementationEffort": "High", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:01:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:01:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", - "supportedCloud": "AWS", - "severity": "Medium", - "userImpact": "Moderate", - "implementationEffort": "High", - "description": "Data should be encrypted", - "remediationDescription": "Encrypt store by...", - "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json deleted file mode 100644 index 1db0a7c9cc1c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationDelete_example.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customAssessmentAutomationName": "MyCustomAssessmentAutomation" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json deleted file mode 100644 index b6e40c450ab2..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationGet_example.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customAssessmentAutomationName": "MyCustomAssessmentAutomation" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation", - "name": "MyCustomAssessmentAutomation", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", - "supportedCloud": "AWS", - "severity": "Low", - "userImpact": "Low", - "implementationEffort": "Low", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json deleted file mode 100644 index e0510db7450e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListByResourceGroup_example.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation1", - "name": "MyCustomAssessmentAutomation1", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", - "supportedCloud": "AWS", - "severity": "Medium", - "userImpact": "Moderate", - "implementationEffort": "High", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" - } - }, - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation2", - "name": "MyCustomAssessmentAutomation2", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:01:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:01:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", - "supportedCloud": "AWS", - "severity": "Low", - "userImpact": "Low", - "implementationEffort": "Low", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" - } - } - ], - "nextLink": "link" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json deleted file mode 100644 index 863a5c6b7383..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomAssessmentAutomations/customAssessmentAutomationListBySubscription_example.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation1", - "name": "MyCustomAssessmentAutomation1", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8ARwByAG8AdQBwAA0ACgB8ACAAZQB4AHQAZQBuAGQAIABIAGUAYQBsAHQAaABTAHQAYQB0AHUAcwAgAD0AIABpAGYAZgAoAHQAbwBzAHQAcgBpAG4AZwAoAFIAZQBjAG8AcgBkAC4AVQBzAGUAcgBOAGEAbQBlACkAIABjAG8AbgB0AGEAaQBuAHMAIAAnAHUAcwBlAHIAJwAsACAAJwBVAE4ASABFAEEATABUAEgAWQAnACwAIAAnAEgARQBBAEwAVABIAFkAJwApAA0ACgA=", - "supportedCloud": "AWS", - "severity": "Medium", - "userImpact": "Moderate", - "implementationEffort": "High", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "d5f442f7-7e77-4bcf-a450-a9c1b9a94eeb" - } - }, - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customAssessmentAutomations/MyCustomAssessmentAutomation2", - "name": "MyCustomAssessmentAutomation2", - "type": "Microsoft.Security/customAssessmentAutomations", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:01:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:01:50.328Z" - }, - "properties": { - "compressedQuery": "DQAKAEkAYQBtAF8AUABhAHMAcwB3AG8AcgBkAFAAbwBsAGkAYwB5ACAADQAKAHwAIABlAHgAdABlAG4AZAAgAEgAZQBhAGwAdABoAFMAdABhAHQAdQBzACAAPQAgAGkAZgBmACgAdABvAGkAbgB0ACgAUgBlAGMAbwByAGQALgBNAGkAbgBpAG0AdQBtAFAAYQBzAHMAdwBvAHIAZABMAGUAbgBnAHQAaAApACAAPAAgADgALAAgACcAVQBOAEgARQBBAEwAVABIAFkAJwAsACAAJwBIAEUAQQBMAFQASABZACcAKQANAAoA", - "supportedCloud": "AWS", - "severity": "Low", - "userImpact": "Low", - "implementationEffort": "Low", - "description": "organization passwords policy", - "remediationDescription": "Change password policy to...", - "assessmentKey": "fc1dbcd0-502c-4eab-9312-4014cfc8ea56" - } - } - ], - "nextLink": "link" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json deleted file mode 100644 index d74544147602..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentCreate_example.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "customEntityStoreAssignmentRequestBody": { - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" - } - } - }, - "201": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:01:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:01:50.328Z" - }, - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json deleted file mode 100644 index 7b6fad03b621..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentDelete_example.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json deleted file mode 100644 index 5011b5d59947..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentGet_example.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup", - "customEntityStoreAssignmentName": "33e7cc6e-a139-4723-a0e5-76993aee0771" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json deleted file mode 100644 index 0bbc324f926d..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListByResourceGroup_example.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b", - "resourceGroupName": "TestResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" - } - }, - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/a400695c-4728-d5cc-8e19-4b5a76f209df", - "name": "a400695c-4728-d5cc-8e19-4b5a76f209df", - "type": "Microsoft.Security/customEntityStoreAssignments", - "properties": { - "principal": "aaduser=f6e2564c-f34a-9b61-416c-5e5e7e521118;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwvIz8lMrgzKz0nlqlFIrShJzUtR8Cz2SE3MKcmoVLBVUE9LzClOVQcA1IFnficAAAA=" - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json deleted file mode 100644 index 7604153fc18e..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/CustomEntityStoreAssignments/customEntityStoreAssignmentListBySubscription_example.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "e5d1b86c-3051-44d5-8802-aa65d45a279b" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/33e7cc6e-a139-4723-a0e5-76993aee0771", - "name": "33e7cc6e-a139-4723-a0e5-76993aee0771", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "principal": "aaduser=f3923a3e-ad57-4752-b1a9-fbf3c8e5e082;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwtILC4uzy9KCcjPyUyu5OWqUShJzE5VMAQAlMJzABgAAAA=" - } - }, - { - "id": "/subscriptions/e5d1b86c-3051-44d5-8802-aa65d45a279b/resourcegroups/TestResourceGroup/providers/Microsoft.Security/customEntityStoreAssignments/a400695c-4728-d5cc-8e19-4b5a76f209df", - "name": "a400695c-4728-d5cc-8e19-4b5a76f209df", - "type": "Microsoft.Security/customEntityStoreAssignments", - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:01:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:01:50.328Z" - }, - "properties": { - "principal": "aaduser=f6e2564c-f34a-9b61-416c-5e5e7e521118;72f988bf-86f1-41af-91ab-2d7cd011db47", - "entityStoreDatabaseLink": "https://dataexplorer.azure.com/clusters/securitydatastore.centralus/databases/DiscoveryAwsKedamari?query=H4sIAAAAAAAAAwvIz8lMrgzKz0nlqlFIrShJzUtR8Cz2SE3MKcmoVLBVUE9LzClOVQcA1IFnficAAAA=" - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json deleted file mode 100644 index 04fa5201443c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "myRg", - "securityConnectorName": "mySecurityConnectorName" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json deleted file mode 100644 index 06a93dbf9432..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", - "resourceGroupName": "exampleResourceGroup", - "securityConnectorName": "exampleSecurityConnectorName" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "organizationalData": null, - "hierarchyIdentifier": "exampleHierarchyId", - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json deleted file mode 100644 index 8f63e9ad0025..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", - "resourceGroupName": "exampleResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "organizationalData": null, - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json deleted file mode 100644 index fc364252ef5c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "organizationalData": null, - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json deleted file mode 100644 index 769d4fb0b1ba..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", - "securityConnectorName": "exampleSecurityConnectorName", - "resourceGroupName": "exampleResourceGroup", - "securityConnector": { - "location": "Central US", - "etag": "etag value (must be supplied for update)", - "tags": {}, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "location": "Central US", - "kind": "", - "etag": "etag value", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "organizationalData": null, - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json deleted file mode 100644 index 5dfc70a1cb2f..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/examples/SecurityConnectors/PutSecurityConnector_example.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "parameters": { - "api-version": "2021-07-02-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", - "securityConnectorName": "exampleSecurityConnectorName", - "resourceGroupName": "exampleResourceGroup", - "securityConnector": { - "location": "Central US", - "etag": "etag value (must be supplied for update)", - "tags": {}, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "location": "Central US", - "kind": "", - "etag": "", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "organizationalData": null, - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - }, - "201": { - "body": { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorName", - "name": "exampleSecurityConnectorName", - "type": "Microsoft.Security/securityConnectors", - "location": "Central US", - "kind": "", - "etag": "", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-08-31T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-31T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "organizationalData": null, - "cloudName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json deleted file mode 100644 index 6a57bf23d96f..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json +++ /dev/null @@ -1,574 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-07-02-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/securityConnectors": { - "get": { - "x-ms-examples": { - "List all security connectors of a specified subscription": { - "$ref": "./examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "description": "Lists all the security connectors in the specified subscription. Use the 'nextLink' property in the response to get the next page of security connectors for the specified subscription.", - "operationId": "SecurityConnectors_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityConnectorsList" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors": { - "get": { - "x-ms-examples": { - "List all security connectors of a specified resource group": { - "$ref": "./examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "description": "Lists all the security connectors in the specified resource group. Use the 'nextLink' property in the response to get the next page of security connectors for the specified resource group.", - "operationId": "SecurityConnectors_ListByResourceGroup", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityConnectorsList" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}": { - "get": { - "x-ms-examples": { - "Retrieve a security connector": { - "$ref": "./examples/SecurityConnectors/GetSecurityConnectorResourceGroup_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "description": "Retrieves details of a specific security connector", - "operationId": "SecurityConnectors_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/securityConnectorName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityConnector" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create or update a security connector": { - "$ref": "./examples/SecurityConnectors/PutSecurityConnector_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "description": "Creates or updates a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.", - "operationId": "SecurityConnectors_CreateOrUpdate", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/securityConnectorName" - }, - { - "$ref": "#/parameters/securityConnectorInBody" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityConnector" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/SecurityConnector" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "patch": { - "x-ms-examples": { - "Update a security connector": { - "$ref": "./examples/SecurityConnectors/PatchSecurityConnector_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "description": "Updates a security connector", - "operationId": "SecurityConnectors_Update", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/securityConnectorName" - }, - { - "$ref": "#/parameters/securityConnectorInBody" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SecurityConnector" - } - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete a security connector": { - "$ref": "./examples/SecurityConnectors/DeleteSecurityConnector_example.json" - } - }, - "tags": [ - "SecurityConnectors" - ], - "operationId": "SecurityConnectors_Delete", - "description": "Deletes a security connector.", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/securityConnectorName" - } - ], - "responses": { - "200": { - "description": "The resource was deleted successfully" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Error response that describes why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "SecurityConnectorsList": { - "type": "object", - "description": "List of security connectors response.", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "array", - "description": "The list of security connectors under the given scope.", - "items": { - "$ref": "#/definitions/SecurityConnector" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "SecurityConnector": { - "type": "object", - "description": "The security connector resource.", - "properties": { - "systemData": { - "readOnly": true, - "type": "object", - "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Security connector data", - "$ref": "#/definitions/SecurityConnectorProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/TrackedResource" - } - ] - }, - "SecurityConnectorProperties": { - "type": "object", - "description": "A set of properties that defines the security connector configuration.", - "properties": { - "hierarchyIdentifier": { - "type": "string", - "description": "The multi cloud resource identifier (account id in case of AWS connector)." - }, - "cloudName": { - "type": "string", - "description": "The multi cloud resource's cloud name.", - "enum": [ - "Azure", - "AWS", - "GCP" - ], - "x-ms-enum": { - "name": "cloudName", - "modelAsString": true - } - }, - "offerings": { - "type": "array", - "description": "A collection of offerings for the security connector.", - "items": { - "$ref": "#/definitions/cloudOffering" - } - }, - "organizationalData": { - "type": "object", - "description": "The multi cloud account's organizational data", - "properties": { - "organizationMembershipType": { - "type": "string", - "description": "The multi cloud account's membership type in the organization", - "enum": [ - "Member", - "Organization" - ], - "x-ms-enum": { - "name": "organizationMembershipType", - "modelAsString": true - } - }, - "parentHierarchyId": { - "type": "string", - "description": "If the multi cloud account is not of membership type organization, this will be the ID of the account's parent" - }, - "stacksetName": { - "type": "string", - "description": "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset" - }, - "excludedAccountId": { - "type": "array", - "description": "If the multi cloud account is of membership type organization, list of accounts excluded from offering", - "items": { - "type": "string", - "description": "account ID" - } - } - } - } - } - }, - "cloudOffering": { - "type": "object", - "description": "The security offering details", - "discriminator": "offeringType", - "required": [ - "offeringType" - ], - "properties": { - "offeringType": { - "type": "string", - "description": "The type of the security offering.", - "enum": [ - "CspmMonitorAws", - "DefenderForContainersAws", - "DefenderForServersAws" - ], - "x-ms-enum": { - "name": "OfferingType", - "modelAsString": true - } - }, - "description": { - "type": "string", - "description": "The offering description.", - "readOnly": true - } - } - }, - "cspmMonitorAwsOffering": { - "type": "object", - "description": "The CSPM monitoring for AWS offering configurations", - "x-ms-discriminator-value": "CspmMonitorAws", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "nativeCloudConnection": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - } - } - }, - "defenderForContainersAwsOffering": { - "type": "object", - "description": "The Defender for Containers AWS offering configurations", - "x-ms-discriminator-value": "DefenderForContainersAws", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "kubernetesService": { - "type": "object", - "description": "The kubernetes service connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "kubernetesScubaReader": { - "type": "object", - "description": "The kubernetes to scuba connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "cloudWatchToKinesis": { - "type": "object", - "description": "The cloudwatch to kinesis connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "kinesisToS3": { - "type": "object", - "description": "The kinesis to s3 connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - } - } - }, - "defenderForServersAwsOffering": { - "type": "object", - "description": "The Defender for Servers AWS offering configurations", - "x-ms-discriminator-value": "DefenderForServersAWS", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "defenderForServers": { - "type": "object", - "description": "The Defender for servers connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "arcAutoProvisioning": { - "type": "object", - "description": "The ARC autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is arc auto provisioning enabled" - }, - "servicePrincipalSecretMetadata": { - "type": "object", - "description": "Metadata of Service Principal secret for autoprovisioning", - "properties": { - "expiryDate": { - "type": "string", - "description": "expiration date of service principal secret" - }, - "parameterStoreRegion": { - "type": "string", - "description": "region of parameter store where secret is kept" - }, - "parameterNameInStore": { - "type": "string", - "description": "name of secret resource in parameter store" - } - } - } - } - } - } - } - }, - "parameters": { - "securityConnectorName": { - "name": "securityConnectorName", - "in": "path", - "required": true, - "type": "string", - "description": "The security connector name.", - "x-ms-parameter-location": "method" - }, - "securityConnectorInBody": { - "name": "securityConnector", - "in": "body", - "required": true, - "description": "The security connector resource", - "schema": { - "$ref": "#/definitions/SecurityConnector" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index c8b2f82b7b0d..94a0f8794291 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -66,24 +66,13 @@ 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-2021-07 +tag: package-composite-v3 ``` ### Composite packages The following packages may be composed from multiple api-versions. - -### Tag: package-preview-2021-07 - -These settings apply only when `--tag=package-preview-2021-07` is specified on the command line. - -```yaml $(tag) == 'package-preview-2021-07' -input-file: - - Microsoft.Security/preview/2021-07-02-preview/customAssessmentAutomation.json - - Microsoft.Security/preview/2021-07-02-preview/customEntityStoreAssignment.json - - Microsoft.Security/preview/2021-07-02-preview/securityConnectors.json -``` ### Tag: package-preview-2021-08 These settings apply only when `--tag=package-preview-2021-08` is specified on the command line. @@ -561,4 +550,4 @@ See configuration in [readme.ruby.md](./readme.ruby.md) ## Java -See configuration in [readme.java.md](./readme.java.md) +See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file From 0b9dedab4de7e652db1944e36bf5f482e7eb9a91 Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes Date: Tue, 26 Oct 2021 12:57:56 +0300 Subject: [PATCH 5/6] Minor --- specification/security/resource-manager/readme.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 94a0f8794291..4719ca9a581f 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -454,7 +454,7 @@ override-info: These settings apply only when `--tag=package-2021-07-preview-only` is specified on the command line. -``` yaml $(tag) == 'package-2021-07-preview-only' +```yaml $(tag) == 'package-2021-07-preview-only' input-file: - Microsoft.Security/preview/2021-07-01-preview/customAssessmentAutomation.json - Microsoft.Security/preview/2021-07-01-preview/customEntityStoreAssignment.json @@ -464,16 +464,14 @@ input-file: These settings apply only when `--tag=package-2021-10-preview-only` is specified on the command line. -``` yaml $(tag) == 'package-2021-10-preview-only' +```yaml $(tag) == 'package-2021-10-preview-only' input-file: - Microsoft.Security/preview/2021-10-01-preview/mdeOnboardings.json ``` # Needed when there is more than one input file - override-info: -title: SecurityCenter - + title: SecurityCenter ``` ### Tag: package-2021-06-only From 8c4f338a5d18604a2d56ef47c7e870473923fccf Mon Sep 17 00:00:00 2001 From: Sapir Elmakayes Date: Tue, 26 Oct 2021 12:59:25 +0300 Subject: [PATCH 6/6] Minor --- 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 4719ca9a581f..abd1373a9744 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -84,7 +84,7 @@ input-file: override-info: title: SecurityCenter -``` +``` ### Tag: package-composite-v1