diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/CreateIngestionSetting_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/CreateIngestionSetting_example.json deleted file mode 100644 index 37a9405975b2..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/CreateIngestionSetting_example.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ingestionSettingName": "default", - "ingestionSetting": {} - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/ingestionSettings/default", - "name": "default", - "type": "Microsoft.Security/ingestionSettings" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/DeleteIngestionSetting_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/DeleteIngestionSetting_example.json deleted file mode 100644 index 476c7350eef0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/DeleteIngestionSetting_example.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ingestionSettingName": "default" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSetting_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSetting_example.json deleted file mode 100644 index 0796b0e912f7..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSetting_example.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ingestionSettingName": "default" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/ingestionSettings/default", - "name": "default", - "type": "Microsoft.Security/ingestionSettings" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSettings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSettings_example.json deleted file mode 100644 index d84ed1d45653..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/GetIngestionSettings_example.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/ingestionSettings/default", - "name": "default", - "type": "Microsoft.Security/ingestionSettings" - }, - { - "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/ingestionSettings/default2", - "name": "default2", - "type": "Microsoft.Security/ingestionSettings" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListConnectionStrings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListConnectionStrings_example.json deleted file mode 100644 index a83f04b81872..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListConnectionStrings_example.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ingestionSettingName": "default" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "CUS", - "value": "" - }, - { - "location": "WEU", - "value": "" - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListTokensIngestionSetting_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListTokensIngestionSetting_example.json deleted file mode 100644 index 1d0e37ecd760..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/examples/IngestionSettings/ListTokensIngestionSetting_example.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2021-01-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "ingestionSettingName": "default" - }, - "responses": { - "200": { - "body": { - "token": "" - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json deleted file mode 100644 index 593b245f7cd6..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2021-01-15-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/ingestionSettings": { - "get": { - "x-ms-examples": { - "Get ingestion settings on subscription": { - "$ref": "./examples/IngestionSettings/GetIngestionSettings_example.json" - } - }, - "tags": [ - "Ingestion Settings" - ], - "description": "Settings for ingesting security data and logs to correlate with resources associated with the subscription.", - "operationId": "IngestionSettings_List", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IngestionSettingList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}": { - "get": { - "x-ms-examples": { - "Get a ingestion setting on subscription": { - "$ref": "./examples/IngestionSettings/GetIngestionSetting_example.json" - } - }, - "tags": [ - "Ingestion Settings" - ], - "description": "Settings for ingesting security data and logs to correlate with resources associated with the subscription.", - "operationId": "IngestionSettings_Get", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IngestionSettingName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IngestionSetting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "put": { - "x-ms-examples": { - "Create an ingestion setting for subscription": { - "$ref": "./examples/IngestionSettings/CreateIngestionSetting_example.json" - } - }, - "tags": [ - "Ingestion Settings" - ], - "description": "Create setting for ingesting security data and logs to correlate with resources associated with the subscription.", - "operationId": "IngestionSettings_Create", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IngestionSettingName" - }, - { - "$ref": "#/parameters/IngestionSetting" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IngestionSetting" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - }, - "delete": { - "x-ms-examples": { - "Delete an ingestion setting for the subscription": { - "$ref": "./examples/IngestionSettings/DeleteIngestionSetting_example.json" - } - }, - "tags": [ - "Ingestion Settings" - ], - "description": "Deletes the ingestion settings for this subscription.", - "operationId": "IngestionSettings_Delete", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IngestionSettingName" - } - ], - "responses": { - "200": { - "description": "The resource was deleted successfully" - }, - "204": { - "description": "The resource was not found" - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listTokens": { - "post": { - "x-ms-examples": { - "List ingestion setting tokens": { - "$ref": "./examples/IngestionSettings/ListTokensIngestionSetting_example.json" - } - }, - "tags": [ - "Ingestion Settings" - ], - "description": "Returns the token that is used for correlating ingested telemetry with the resources in the subscription.", - "operationId": "IngestionSettings_ListTokens", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IngestionSettingName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/IngestionSettingToken" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listConnectionStrings": { - "post": { - "x-ms-examples": { - "List connection strings for ingesting security data and logs": { - "$ref": "./examples/IngestionSettings/ListConnectionStrings_example.json" - } - }, - "tags": [ - "Connection Strings" - ], - "description": "Connection strings for ingesting security scan logs and data.", - "operationId": "IngestionSettings_ListConnectionStrings", - "parameters": [ - { - "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/IngestionSettingName" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ConnectionStrings" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../common/v1/types.json#/definitions/CloudError" - } - } - } - } - } - }, - "definitions": { - "IngestionSettingList": { - "description": "List of ingestion settings", - "properties": { - "value": { - "readOnly": true, - "type": "array", - "description": "List of ingestion settings", - "items": { - "$ref": "#/definitions/IngestionSetting" - } - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URI to fetch the next page." - } - } - }, - "IngestionSetting": { - "type": "object", - "description": "Configures how to correlate scan data and logs with resources associated with the subscription.", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Ingestion setting data", - "$ref": "#/definitions/IngestionSettingProperties" - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/Resource" - } - ] - }, - "IngestionSettingToken": { - "type": "object", - "description": "Configures how to correlate scan data and logs with resources associated with the subscription.", - "properties": { - "token": { - "type": "string", - "x-ms-secret": true, - "readOnly": true, - "description": "The token is used for correlating security data and logs with the resources in the subscription." - } - } - }, - "IngestionSettingProperties": { - "type": "object", - "description": "Ingestion setting data" - }, - "IngestionConnectionString": { - "type": "object", - "description": "Connection string for ingesting security data and logs", - "properties": { - "location": { - "type": "string", - "readOnly": true, - "description": "The region where ingested logs and data resides" - }, - "value": { - "type": "string", - "readOnly": true, - "x-ms-secret": true, - "description": "Connection string value" - } - } - }, - "ConnectionStrings": { - "description": "Connection string for ingesting security data and logs", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "array", - "description": "Connection strings", - "items": { - "$ref": "#/definitions/IngestionConnectionString" - } - } - } - } - }, - "parameters": { - "IngestionSettingName": { - "name": "ingestionSettingName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the ingestion setting", - "x-ms-parameter-location": "method" - }, - "IngestionSetting": { - "name": "ingestionSetting", - "in": "body", - "required": true, - "description": "Ingestion setting object", - "schema": { - "$ref": "#/definitions/IngestionSetting" - }, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 870aa4e27f5d..ef0b9a4f6bfe 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -36,14 +36,6 @@ directive: from: iotSecuritySolutionAnalytics.json where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels"].get' reason: The list returns limited number of items - - suppress: SECRET_PROPERTY - from: ingestionSettings.json - where: $.definitions.IngestionSettingToken.properties.token - reason: Secrets are OK to return in a POST response. - - suppress: SECRET_PROPERTY - from: ingestionSettings.json - where: $.definitions.IngestionConnectionString.properties.value - reason: Secrets are OK to return in a POST response. - suppress: OperationsAPIImplementation where: $.paths from: settings.json @@ -321,7 +313,6 @@ input-file: - Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json - Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json - Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json -- Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json # Needed when there is more than one input file override-info: @@ -370,7 +361,6 @@ input-file: - Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json - Microsoft.Security/preview/2015-06-01-preview/adaptiveNetworkHardenings.json - Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json -- Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json # Needed when there is more than one input file override-info: @@ -421,7 +411,6 @@ input-file: - Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json - Microsoft.Security/stable/2022-01-01/alerts.json - Microsoft.Security/stable/2022-05-01/settings.json -- Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json - Microsoft.Security/preview/2021-05-01-preview/softwareInventories.json - Microsoft.Security/preview/2022-01-01-preview/governanceRules.json - Microsoft.Security/preview/2022-01-01-preview/governanceAssignments.json @@ -499,7 +488,6 @@ input-file: - Microsoft.Security/preview/2020-01-01-preview/connectors.json - Microsoft.Security/stable/2022-01-01/alerts.json - Microsoft.Security/stable/2022-05-01/settings.json -- Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json - Microsoft.Security/preview/2021-05-01-preview/softwareInventories.json - Microsoft.Security/preview/2022-08-01-preview/securityConnectors.json - Microsoft.Security/preview/2022-01-01-preview/governanceRules.json @@ -817,18 +805,6 @@ override-info: title: SecurityCenter ``` -### Tag: package-2021-01-preview-only - -These settings apply only when `--tag=package-2021-01-preview-only` is specified on the command line. This tag is used for Ruby SDK. - -``` yaml $(tag) == 'package-2021-01-preview-only' -input-file: -- Microsoft.Security/preview/2021-01-15-preview/ingestionSettings.json -# Needed when there is more than one input file -override-info: - title: SecurityCenter -``` - ### Tag: package-2021-01-only These settings apply only when `--tag=package-2021-01-only` is specified on the command line. This tag is used for Ruby SDK.