From 4b24574b4d741cb5b68999f36d37208957361e0e Mon Sep 17 00:00:00 2001 From: Elad Stavi Date: Sun, 2 Apr 2023 18:47:30 +0300 Subject: [PATCH 1/8] Adds base for updating Microsoft.Security from version preview/2023-03-01-preview to version 2023-02-15-preview --- .../DeleteSecurityConnector_example.json | 12 + ...curityConnectorSingleResource_example.json | 44 + ...curityConnectorsResourceGroup_example.json | 124 ++ ...ecurityConnectorsSubscription_example.json | 181 ++ .../PatchSecurityConnector_example.json | 64 + .../PutSecurityConnector_example.json | 98 ++ .../securityConnectors.json | 1494 +++++++++++++++++ 7 files changed, 2017 insertions(+) create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json new file mode 100644 index 000000000000..6ebfc633aeea --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2023-03-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/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json new file mode 100644 index 000000000000..7028f06f8a42 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2023-03-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": { + "environmentData": { + "environmentType": "AwsAccount" + }, + "hierarchyIdentifier": "exampleHierarchyId", + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json new file mode 100644 index 000000000000..1e8a8bcc55ed --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "api-version": "2023-03-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/exampleSecurityConnectorAws", + "name": "exampleSecurityConnectorAws", + "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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization", + "name": "exampleSecurityConnectorAwsOrganization", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "environmentData": { + "environmentType": "AwsAccount", + "organizationalData": { + "organizationMembershipType": "Organization", + "stacksetName": "myStackSetName", + "excludedAccountIds": [ + "excludedAccountIdExample" + ] + } + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp", + "name": "exampleSecurityConnectorGcp", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "environmentData": { + "environmentType": "GcpProject", + "projectDetails": { + "projectNumber": "exampleHierarchyId", + "projectId": "My-0GCP-Project", + "workloadIdentityPoolId": "My-workload-identity-federation-pool-id" + } + }, + "environmentName": "GCP", + "offerings": [ + { + "offeringType": "CspmMonitorGcp", + "nativeCloudConnection": { + "workloadIdentityProviderId": "My workload identity provider Id", + "serviceAccountEmailAddress": "capm@projectName.com" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json new file mode 100644 index 000000000000..4c1435a74d6a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json @@ -0,0 +1,181 @@ +{ + "parameters": { + "api-version": "2023-03-01-preview", + "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup1/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAws", + "name": "exampleSecurityConnectorAws", + "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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup2/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization", + "name": "exampleSecurityConnectorAwsOrganization", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "environmentData": { + "environmentType": "AwsAccount", + "organizationalData": { + "organizationMembershipType": "Organization", + "stacksetName": "myStackSetName", + "excludedAccountIds": [ + "excludedAccountIdExample" + ] + } + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGithub", + "name": "githubTest", + "etag": "etag value", + "type": "Microsoft.Security/securityconnectors", + "location": "centralus", + "kind": "", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.SecurityDevops/githubConnectors/exampleGithubConnector", + "environmentName": "Github", + "environmentData": { + "environmentType": "GithubScope" + }, + "offerings": [ + { + "offeringType": "CspmMonitorGithub" + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAzureDevOpsConnectors", + "name": "AzureDevOpsTest", + "etag": "etag value", + "type": "Microsoft.Security/securityconnectors", + "location": "centralus", + "kind": "", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.SecurityDevops/azureDevOpsConnectors/exampleAzureDevOpsConnector", + "environmentName": "Github", + "environmentData": { + "environmentType": "GithubScope" + }, + "offerings": [ + { + "offeringType": "CspmMonitorGithub" + } + ] + } + }, + { + "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp", + "name": "exampleSecurityConnectorGcp", + "type": "Microsoft.Security/securityConnectors", + "etag": "etag value", + "kind": "", + "location": "Central US", + "tags": {}, + "systemData": { + "createdBy": "user@contoso.com", + "createdByType": "User", + "createdAt": "2021-12-15T13:47:50.328Z", + "lastModifiedBy": "user@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-12-15T13:47:50.328Z" + }, + "properties": { + "hierarchyIdentifier": "exampleHierarchyId", + "environmentData": { + "environmentType": "GcpProject", + "projectDetails": { + "projectNumber": "exampleHierarchyId", + "projectId": "My-0GCP-Project", + "workloadIdentityPoolId": "6c78da41157548d3b1d8b3c72effdf8c" + } + }, + "environmentName": "GCP", + "offerings": [ + { + "offeringType": "CspmMonitorGcp", + "nativeCloudConnection": { + "workloadIdentityProviderId": "My workload identity provider Id", + "serviceAccountEmailAddress": "capm@projectName.com" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json new file mode 100644 index 000000000000..0fd2bd8dc98a --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2023-03-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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json new file mode 100644 index 000000000000..80d6a941ce58 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2023-03-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", + "environmentName": "AWS", + "environmentData": { + "environmentType": "AwsAccount" + }, + "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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "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", + "environmentData": { + "environmentType": "AwsAccount" + }, + "environmentName": "AWS", + "offerings": [ + { + "offeringType": "CspmMonitorAws", + "nativeCloudConnection": { + "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" + } + } + ] + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json new file mode 100644 index 000000000000..b0d34d1f506b --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json @@ -0,0 +1,1494 @@ +{ + "swagger": "2.0", + "info": { + "title": "Security Center", + "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", + "version": "2023-03-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/GetSecurityConnectorSingleResource_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, project number in case of GCP connector)." + }, + "hierarchyIdentifierTrialEndDate": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings." + }, + "environmentName": { + "type": "string", + "description": "The multi cloud resource's cloud name.", + "enum": [ + "Azure", + "AWS", + "GCP", + "Github", + "AzureDevOps", + "GitLab" + ], + "x-ms-enum": { + "name": "cloudName", + "modelAsString": true + } + }, + "offerings": { + "type": "array", + "description": "A collection of offerings for the security connector.", + "items": { + "$ref": "#/definitions/cloudOffering" + }, + "x-ms-identifiers": [] + }, + "environmentData": { + "type": "object", + "description": "The security connector environment data.", + "$ref": "#/definitions/EnvironmentData" + } + } + }, + "EnvironmentData": { + "type": "object", + "description": "The security connector environment data.", + "discriminator": "environmentType", + "required": [ + "environmentType" + ], + "properties": { + "environmentType": { + "type": "string", + "description": "The type of the environment data.", + "enum": [ + "AwsAccount", + "GcpProject", + "GithubScope", + "AzureDevOpsScope", + "GitlabScope" + ], + "x-ms-enum": { + "name": "environmentType", + "modelAsString": true + } + } + } + }, + "AwsEnvironmentData": { + "type": "object", + "description": "The AWS connector environment data", + "x-ms-discriminator-value": "AwsAccount", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentData" + } + ], + "properties": { + "organizationalData": { + "type": "object", + "description": "The AWS account's organizational data", + "$ref": "#/definitions/AwsOrganizationalData" + }, + "regions": { + "type": "array", + "description": "list of regions to scan", + "items": { + "type": "string", + "description": "AWS regions names" + } + }, + "accountName": { + "type": "string", + "description": "The AWS account name", + "readOnly": true + } + } + }, + "AwsOrganizationalData": { + "type": "object", + "description": "The AWS organization data", + "discriminator": "organizationMembershipType", + "required": [ + "organizationMembershipType" + ], + "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 + } + } + } + }, + "AwsOrganizationalDataMaster": { + "type": "object", + "description": "The AWS organization data for the master account", + "x-ms-discriminator-value": "Organization", + "allOf": [ + { + "$ref": "#/definitions/AwsOrganizationalData" + } + ], + "properties": { + "stacksetName": { + "type": "string", + "description": "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset" + }, + "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 IDs" + } + } + } + }, + "AwsOrganizationalDataMember": { + "type": "object", + "description": "The AWS organization data for the member account", + "x-ms-discriminator-value": "Member", + "allOf": [ + { + "$ref": "#/definitions/AwsOrganizationalData" + } + ], + "properties": { + "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" + } + } + }, + "GcpProjectEnvironmentData": { + "type": "object", + "description": "The GCP project connector environment data", + "x-ms-discriminator-value": "GcpProject", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentData" + } + ], + "properties": { + "organizationalData": { + "type": "object", + "description": "The Gcp project's organizational data", + "$ref": "#/definitions/GcpOrganizationalData" + }, + "projectDetails": { + "type": "object", + "description": "The Gcp project's details", + "$ref": "#/definitions/GcpProjectDetails" + } + } + }, + "GcpProjectDetails": { + "type": "object", + "description": "The details about the project represented by the security connector", + "properties": { + "projectNumber": { + "type": "string", + "description": "The unique GCP Project number" + }, + "projectId": { + "type": "string", + "description": "The GCP Project id" + }, + "workloadIdentityPoolId": { + "readOnly": true, + "type": "string", + "description": "The GCP workload identity federation pool id" + }, + "projectName": { + "readOnly": true, + "type": "string", + "description": "GCP project name" + } + } + }, + "GcpOrganizationalData": { + "type": "object", + "description": "The gcpOrganization data", + "discriminator": "organizationMembershipType", + "required": [ + "organizationMembershipType" + ], + "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 + } + } + } + }, + "GcpOrganizationalDataOrganization": { + "type": "object", + "description": "The gcpOrganization data for the parent account", + "x-ms-discriminator-value": "Organization", + "allOf": [ + { + "$ref": "#/definitions/GcpOrganizationalData" + } + ], + "properties": { + "excludedProjectNumbers": { + "type": "array", + "description": "If the multi cloud account is of membership type organization, list of accounts excluded from offering", + "items": { + "type": "string", + "description": "account IDs" + } + }, + "serviceAccountEmailAddress": { + "type": "string", + "description": "The service account email address which represents the organization level permissions container." + }, + "workloadIdentityProviderId": { + "type": "string", + "description": "The GCP workload identity provider id which represents the permissions required to auto provision security connectors" + }, + "organizationName": { + "readOnly": true, + "type": "string", + "description": "GCP organization name" + } + } + }, + "GcpOrganizationalDataMember": { + "type": "object", + "description": "The gcpOrganization data for the member account", + "x-ms-discriminator-value": "Member", + "allOf": [ + { + "$ref": "#/definitions/GcpOrganizationalData" + } + ], + "properties": { + "parentHierarchyId": { + "type": "string", + "description": "If the multi cloud account is not of membership type organization, this will be the ID of the project's parent" + }, + "managementProjectNumber": { + "type": "string", + "description": "The GCP management project number from organizational onboarding" + } + } + }, + "GithubScopeEnvironmentData": { + "type": "object", + "description": "The github scope connector's environment data", + "x-ms-discriminator-value": "GithubScope", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentData" + } + ], + "properties": {} + }, + "AzureDevOpsScopeEnvironmentData": { + "type": "object", + "description": "The AzureDevOps scope connector's environment data", + "x-ms-discriminator-value": "AzureDevOpsScope", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentData" + } + ], + "properties": {} + }, + "GitlabScopeEnvironmentData": { + "type": "object", + "description": "The GitLab scope connector's environment data", + "x-ms-discriminator-value": "GitlabScope", + "allOf": [ + { + "$ref": "#/definitions/EnvironmentData" + } + ], + "properties": {} + }, + "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", + "DefenderForDatabasesAws", + "InformationProtectionAws", + "CspmMonitorGcp", + "CspmMonitorGithub", + "CspmMonitorAzureDevOps", + "DefenderForServersGcp", + "DefenderForContainersGcp", + "DefenderForDatabasesGcp", + "DefenderCspmAws", + "DefenderCspmGcp", + "DefenderForDevOpsGithub", + "DefenderForDevOpsAzureDevOps", + "CspmMonitorGitLab", + "DefenderForDevOpsGitLab" + ], + "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", + "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", + "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 used for provisioning resources" + } + } + }, + "kubernetesScubaReader": { + "type": "object", + "description": "The kubernetes to scuba connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature used for reading data" + } + } + }, + "cloudWatchToKinesis": { + "type": "object", + "description": "The cloudwatch to kinesis connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis" + } + } + }, + "kinesisToS3": { + "type": "object", + "description": "The kinesis to s3 connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS used by Kinesis to transfer data into S3" + } + } + }, + "containerVulnerabilityAssessment": { + "type": "object", + "description": "The container vulnerability assessment configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "containerVulnerabilityAssessmentTask": { + "type": "object", + "description": "The container vulnerability assessment task configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "enableContainerVulnerabilityAssessment": { + "type": "boolean", + "description": "Enable container vulnerability assessment feature" + }, + "autoProvisioning": { + "type": "boolean", + "description": "Is audit logs pipeline auto provisioning enabled" + }, + "kubeAuditRetentionTime": { + "type": "integer", + "format": "int64", + "description": "The retention time in days of kube audit logs set on the CloudWatch log group" + }, + "scubaExternalId": { + "type": "string", + "description": "The externalId used by the data reader to prevent the confused deputy attack" + } + } + }, + "defenderForServersAwsOffering": { + "type": "object", + "description": "The Defender for Servers AWS offering", + "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" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + }, + "configuration": { + "type": "object", + "description": "Configuration for servers Arc auto provisioning", + "properties": { + "proxy": { + "type": "string", + "description": "Optional HTTP proxy endpoint to use for the Arc agent" + }, + "privateLinkScope": { + "type": "string", + "description": "Optional Arc private link scope resource id to link the Arc agent" + } + } + } + } + }, + "vaAutoProvisioning": { + "type": "object", + "description": "The Vulnerability Assessment autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Vulnerability Assessment auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Vulnerability Assessment autoprovisioning", + "properties": { + "type": { + "type": "string", + "description": "The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'", + "enum": [ + "Qualys", + "TVM" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true + } + } + } + } + } + }, + "mdeAutoProvisioning": { + "type": "object", + "description": "The Microsoft Defender for Endpoint autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender for Endpoint auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Microsoft Defender for Endpoint autoprovisioning", + "properties": {} + } + } + }, + "subPlan": { + "type": "object", + "description": "configuration for the servers offering subPlan", + "properties": { + "type": { + "type": "string", + "description": "The available sub plans", + "enum": [ + "P1", + "P2" + ], + "x-ms-enum": { + "name": "subPlan", + "modelAsString": true + } + } + } + }, + "vmScanners": { + "type": "object", + "description": "The Microsoft Defender for Server VM scanning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender for Server VM scanning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Microsoft Defender for Server VM scanning", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + }, + "scanningMode": { + "type": "string", + "description": "The scanning mode for the VM scan.", + "enum": [ + "Default" + ], + "x-ms-enum": { + "name": "scanningMode", + "modelAsString": true + } + }, + "exclusionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "VM tags that indicates that VM should not be scanned" + } + } + } + } + } + } + }, + "defenderFoDatabasesAwsOffering": { + "type": "object", + "description": "The Defender for Databases AWS offering", + "x-ms-discriminator-value": "DefenderForDatabasesAws", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "arcAutoProvisioning": { + "type": "object", + "description": "The ARC autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is arc auto provisioning enabled" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + }, + "configuration": { + "type": "object", + "description": "Configuration for servers Arc auto provisioning", + "properties": { + "proxy": { + "type": "string", + "description": "Optional http proxy endpoint to use for the Arc agent" + }, + "privateLinkScope": { + "type": "string", + "description": "Optional Arc private link scope resource id to link the Arc agent" + } + } + } + } + }, + "rds": { + "type": "object", + "description": "The RDS configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is RDS protection enabled" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "databasesDspm": { + "type": "object", + "description": "The databases data security posture management (DSPM) configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is databases data security posture management (DSPM) protection enabled" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + } + } + }, + "informationProtectionAwsOffering": { + "type": "object", + "description": "The information protection for AWS offering", + "x-ms-discriminator-value": "InformationProtectionAws", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "informationProtection": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + } + } + }, + "cspmMonitorGcpOffering": { + "type": "object", + "description": "The CSPM monitoring for GCP offering", + "x-ms-discriminator-value": "CspmMonitorGcp", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "nativeCloudConnection": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "workloadIdentityProviderId": { + "type": "string", + "description": "The GCP workload identity provider id for the offering" + }, + "serviceAccountEmailAddress": { + "type": "string", + "description": "The service account email address in GCP for this offering" + } + } + } + } + }, + "defenderForServersGcpOffering": { + "type": "object", + "description": "The Defender for Servers GCP offering configurations", + "x-ms-discriminator-value": "DefenderForServersGcp", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "defenderForServers": { + "type": "object", + "description": "The Defender for servers connection configuration", + "properties": { + "workloadIdentityProviderId": { + "type": "string", + "description": "The workload identity provider id in GCP for this feature" + }, + "serviceAccountEmailAddress": { + "type": "string", + "description": "The service account email address in GCP for this feature" + } + } + }, + "arcAutoProvisioning": { + "type": "object", + "description": "The ARC autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is arc auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "Configuration for servers Arc auto provisioning", + "properties": { + "proxy": { + "type": "string", + "description": "Optional HTTP proxy endpoint to use for the Arc agent" + }, + "privateLinkScope": { + "type": "string", + "description": "Optional Arc private link scope resource id to link the Arc agent" + } + } + } + } + }, + "vaAutoProvisioning": { + "type": "object", + "description": "The Vulnerability Assessment autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Vulnerability Assessment auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Vulnerability Assessment autoprovisioning", + "properties": { + "type": { + "type": "string", + "description": "The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'", + "enum": [ + "Qualys", + "TVM" + ], + "x-ms-enum": { + "name": "type", + "modelAsString": true + } + } + } + } + } + }, + "mdeAutoProvisioning": { + "type": "object", + "description": "The Microsoft Defender for Endpoint autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender for Endpoint auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Microsoft Defender for Endpoint autoprovisioning", + "properties": {} + } + } + }, + "subPlan": { + "type": "object", + "description": "configuration for the servers offering subPlan", + "properties": { + "type": { + "type": "string", + "description": "The available sub plans", + "enum": [ + "P1", + "P2" + ], + "x-ms-enum": { + "name": "subPlan", + "modelAsString": true + } + } + } + }, + "vmScanners": { + "type": "object", + "description": "The Microsoft Defender for Server VM scanning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender for Server VM scanning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Microsoft Defender for Server VM scanning", + "properties": { + "scanningMode": { + "type": "string", + "description": "The scanning mode for the VM scan.", + "enum": [ + "Default" + ], + "x-ms-enum": { + "name": "scanningMode", + "modelAsString": true + } + }, + "exclusionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "VM tags that indicate that VM should not be scanned" + } + } + } + } + } + } + }, + "defenderForDatabasesGcpOffering": { + "type": "object", + "description": "The Defender for Databases GCP offering configurations", + "x-ms-discriminator-value": "DefenderForDatabasesGcp", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "arcAutoProvisioning": { + "type": "object", + "description": "The ARC autoprovisioning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is arc auto provisioning enabled" + }, + "configuration": { + "type": "object", + "description": "Configuration for servers Arc auto provisioning", + "properties": { + "proxy": { + "type": "string", + "description": "Optional http proxy endpoint to use for the Arc agent" + }, + "privateLinkScope": { + "type": "string", + "description": "Optional Arc private link scope resource id to link the Arc agent" + } + } + } + } + }, + "defenderForDatabasesArcAutoProvisioning": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "serviceAccountEmailAddress": { + "type": "string", + "description": "The service account email address in GCP for this offering" + }, + "workloadIdentityProviderId": { + "type": "string", + "description": "The GCP workload identity provider id for this offering" + } + } + } + } + }, + "defenderForContainersGcpOffering": { + "type": "object", + "description": "The containers GCP offering", + "x-ms-discriminator-value": "DefenderForContainersGcp", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "nativeCloudConnection": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "serviceAccountEmailAddress": { + "type": "string", + "description": "The service account email address in GCP for this offering" + }, + "workloadIdentityProviderId": { + "type": "string", + "description": "The GCP workload identity provider id for this offering" + } + } + }, + "dataPipelineNativeCloudConnection": { + "type": "object", + "description": "The native cloud connection configuration", + "properties": { + "serviceAccountEmailAddress": { + "type": "string", + "description": "The data collection service account email address in GCP for this offering" + }, + "workloadIdentityProviderId": { + "type": "string", + "description": "The data collection GCP workload identity provider id for this offering" + } + } + }, + "auditLogsAutoProvisioningFlag": { + "type": "boolean", + "description": "Is audit logs data collection enabled" + }, + "defenderAgentAutoProvisioningFlag": { + "type": "boolean", + "description": "Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled" + }, + "policyAgentAutoProvisioningFlag": { + "type": "boolean", + "description": "Is Policy Kubernetes agent auto provisioning enabled" + } + } + }, + "cspmMonitorGithubOffering": { + "type": "object", + "description": "The CSPM monitoring for github offering", + "x-ms-discriminator-value": "CspmMonitorGithub", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "cspmMonitorAzureDevOpsOffering": { + "type": "object", + "description": "The CSPM monitoring for AzureDevOps offering", + "x-ms-discriminator-value": "CspmMonitorAzureDevOps", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "defenderCspmAwsOffering": { + "type": "object", + "description": "The CSPM P1 for AWS offering", + "x-ms-discriminator-value": "DefenderCspmAws", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": { + "vmScanners": { + "type": "object", + "description": "The Microsoft Defender for Server VM scanning configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender for Server VM scanning enabled" + }, + "configuration": { + "type": "object", + "description": "configuration for Microsoft Defender for Server VM scanning", + "properties": { + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + }, + "scanningMode": { + "type": "string", + "description": "The scanning mode for the VM scan.", + "enum": [ + "Default" + ], + "x-ms-enum": { + "name": "scanningMode", + "modelAsString": true + } + }, + "exclusionTags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "VM tags that indicates that VM should not be scanned" + } + } + } + } + }, + "dataSensitivityDiscovery": { + "type": "object", + "description": "The Microsoft Defender Data Sensitivity discovery configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is Microsoft Defender Data Sensitivity discovery enabled" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + }, + "databasesDspm": { + "type": "object", + "description": "The databases DSPM configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Is databases DSPM protection enabled" + }, + "cloudRoleArn": { + "type": "string", + "description": "The cloud role ARN in AWS for this feature" + } + } + } + } + }, + "defenderCspmGcpOffering": { + "type": "object", + "description": "The CSPM P1 for GCP offering", + "x-ms-discriminator-value": "DefenderCspmGcp", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "defenderForDevOpsGithubOffering": { + "type": "object", + "description": "The Defender for DevOps for Github offering", + "x-ms-discriminator-value": "DefenderForDevOpsGithub", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "defenderForDevOpsAzureDevOpsOffering": { + "type": "object", + "description": "The Defender for DevOps for Azure DevOps offering", + "x-ms-discriminator-value": "DefenderForDevOpsAzureDevOps", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "cspmMonitorGitLabOffering": { + "type": "object", + "description": "The CSPM (Cloud security posture management) monitoring for gitlab offering", + "x-ms-discriminator-value": "CspmMonitorGitLab", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + }, + "defenderForDevOpsGitLabOffering": { + "type": "object", + "description": "The Defender for DevOps for Gitlab offering", + "x-ms-discriminator-value": "DefenderForDevOpsGitLab", + "allOf": [ + { + "$ref": "#/definitions/cloudOffering" + } + ], + "properties": {} + } + }, + "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 6d900be89685e5f1759eb67b2541cec3dbc203f2 Mon Sep 17 00:00:00 2001 From: Elad Stavi Date: Sun, 2 Apr 2023 18:47:34 +0300 Subject: [PATCH 2/8] Updates readme --- specification/security/resource-manager/readme.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 3d8c3718d807..07d33c15ff90 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -78,22 +78,32 @@ 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-2023-02 ``` ### Composite packages The following packages may be composed from multiple api-versions. + +### Tag: package-preview-2023-02 + +These settings apply only when `--tag=package-preview-2023-02` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-02' +input-file: + - Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json +``` ### Tag: package-preview-2023-03 These settings apply only when `--tag=package-preview-2023-03` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-03' +``` yaml $(tag) == 'package-preview-2023-03' input-file: - Microsoft.Security/preview/2023-03-01-preview/securityConnectors.json - Microsoft.Security/preview/2023-01-01-preview/securityOperators.json ``` + ### Tag: package-preview-2023-02 These settings apply only when `--tag=package-preview-2023-02` is specified on the command line. From 2b1a092e8466f56b52ec853afddd1d14f3f5d783 Mon Sep 17 00:00:00 2001 From: Elad Stavi Date: Sun, 2 Apr 2023 18:47:37 +0300 Subject: [PATCH 3/8] Updates API version in new specs and examples --- .../SecurityConnectors/DeleteSecurityConnector_example.json | 2 +- .../GetSecurityConnectorSingleResource_example.json | 2 +- .../GetSecurityConnectorsResourceGroup_example.json | 2 +- .../GetSecurityConnectorsSubscription_example.json | 2 +- .../SecurityConnectors/PatchSecurityConnector_example.json | 2 +- .../SecurityConnectors/PutSecurityConnector_example.json | 2 +- .../preview/2023-02-15-preview/securityConnectors.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json index 6ebfc633aeea..2736d3dc4754 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", "resourceGroupName": "myRg", "securityConnectorName": "mySecurityConnectorName" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json index 7028f06f8a42..1511461764af 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "resourceGroupName": "exampleResourceGroup", "securityConnectorName": "exampleSecurityConnectorName" diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json index 1e8a8bcc55ed..c11e804c6cf5 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "resourceGroupName": "exampleResourceGroup" }, diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json index 4c1435a74d6a..7c61c9778149 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" }, "responses": { diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json index 0fd2bd8dc98a..5c8e8374da7c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "securityConnectorName": "exampleSecurityConnectorName", "resourceGroupName": "exampleResourceGroup", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json index 80d6a941ce58..1114f3875ca0 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-03-01-preview", + "api-version": "2023-02-15-preview", "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5", "securityConnectorName": "exampleSecurityConnectorName", "resourceGroupName": "exampleResourceGroup", diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json index b0d34d1f506b..218f377bba0c 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json @@ -3,7 +3,7 @@ "info": { "title": "Security Center", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2023-03-01-preview" + "version": "2023-02-15-preview" }, "host": "management.azure.com", "schemes": [ From f232cc21ee01cd1fe6aec2a12a3a72f1465180ee Mon Sep 17 00:00:00 2001 From: Elad Stavi Date: Mon, 3 Apr 2023 10:05:33 +0300 Subject: [PATCH 4/8] Update to match private repo --- .../DeleteSecurityConnector_example.json | 12 - ...curityConnectorSingleResource_example.json | 44 - ...curityConnectorsResourceGroup_example.json | 124 -- ...ecurityConnectorsSubscription_example.json | 181 -- .../PatchSecurityConnector_example.json | 64 - .../PutSecurityConnector_example.json | 98 -- .../GetSensitivitySettingsList_example.json | 86 + .../GetSensitivitySettings_example.json | 82 + .../PutSensitivitySettings_example.json | 92 + .../securityConnectors.json | 1494 ----------------- .../sensitivitySettings.json | 327 ++++ 11 files changed, 587 insertions(+), 2017 deletions(-) delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json delete mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json create mode 100644 specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json deleted file mode 100644 index 2736d3dc4754..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-preview", - "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", - "resourceGroupName": "myRg", - "securityConnectorName": "mySecurityConnectorName" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json deleted file mode 100644 index 1511461764af..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-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": { - "environmentData": { - "environmentType": "AwsAccount" - }, - "hierarchyIdentifier": "exampleHierarchyId", - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json deleted file mode 100644 index c11e804c6cf5..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-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/exampleSecurityConnectorAws", - "name": "exampleSecurityConnectorAws", - "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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization", - "name": "exampleSecurityConnectorAwsOrganization", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "environmentData": { - "environmentType": "AwsAccount", - "organizationalData": { - "organizationMembershipType": "Organization", - "stacksetName": "myStackSetName", - "excludedAccountIds": [ - "excludedAccountIdExample" - ] - } - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp", - "name": "exampleSecurityConnectorGcp", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "environmentData": { - "environmentType": "GcpProject", - "projectDetails": { - "projectNumber": "exampleHierarchyId", - "projectId": "My-0GCP-Project", - "workloadIdentityPoolId": "My-workload-identity-federation-pool-id" - } - }, - "environmentName": "GCP", - "offerings": [ - { - "offeringType": "CspmMonitorGcp", - "nativeCloudConnection": { - "workloadIdentityProviderId": "My workload identity provider Id", - "serviceAccountEmailAddress": "capm@projectName.com" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json deleted file mode 100644 index 7c61c9778149..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-preview", - "subscriptionId": "a5caac9c-5c04-49af-b3d0-e204f40345d5" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup1/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAws", - "name": "exampleSecurityConnectorAws", - "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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup2/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAwsOrganization", - "name": "exampleSecurityConnectorAwsOrganization", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "environmentData": { - "environmentType": "AwsAccount", - "organizationalData": { - "organizationMembershipType": "Organization", - "stacksetName": "myStackSetName", - "excludedAccountIds": [ - "excludedAccountIdExample" - ] - } - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGithub", - "name": "githubTest", - "etag": "etag value", - "type": "Microsoft.Security/securityconnectors", - "location": "centralus", - "kind": "", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.SecurityDevops/githubConnectors/exampleGithubConnector", - "environmentName": "Github", - "environmentData": { - "environmentType": "GithubScope" - }, - "offerings": [ - { - "offeringType": "CspmMonitorGithub" - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorAzureDevOpsConnectors", - "name": "AzureDevOpsTest", - "etag": "etag value", - "type": "Microsoft.Security/securityconnectors", - "location": "centralus", - "kind": "", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.SecurityDevops/azureDevOpsConnectors/exampleAzureDevOpsConnector", - "environmentName": "Github", - "environmentData": { - "environmentType": "GithubScope" - }, - "offerings": [ - { - "offeringType": "CspmMonitorGithub" - } - ] - } - }, - { - "id": "/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/exampleResourceGroup3/providers/Microsoft.Security/securityConnectors/exampleSecurityConnectorGcp", - "name": "exampleSecurityConnectorGcp", - "type": "Microsoft.Security/securityConnectors", - "etag": "etag value", - "kind": "", - "location": "Central US", - "tags": {}, - "systemData": { - "createdBy": "user@contoso.com", - "createdByType": "User", - "createdAt": "2021-12-15T13:47:50.328Z", - "lastModifiedBy": "user@contoso.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-12-15T13:47:50.328Z" - }, - "properties": { - "hierarchyIdentifier": "exampleHierarchyId", - "environmentData": { - "environmentType": "GcpProject", - "projectDetails": { - "projectNumber": "exampleHierarchyId", - "projectId": "My-0GCP-Project", - "workloadIdentityPoolId": "6c78da41157548d3b1d8b3c72effdf8c" - } - }, - "environmentName": "GCP", - "offerings": [ - { - "offeringType": "CspmMonitorGcp", - "nativeCloudConnection": { - "workloadIdentityProviderId": "My workload identity provider Id", - "serviceAccountEmailAddress": "capm@projectName.com" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json deleted file mode 100644 index 5c8e8374da7c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json deleted file mode 100644 index 1114f3875ca0..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SecurityConnectors/PutSecurityConnector_example.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "api-version": "2023-02-15-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", - "environmentName": "AWS", - "environmentData": { - "environmentType": "AwsAccount" - }, - "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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "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", - "environmentData": { - "environmentType": "AwsAccount" - }, - "environmentName": "AWS", - "offerings": [ - { - "offeringType": "CspmMonitorAws", - "nativeCloudConnection": { - "cloudRoleArn": "arn:aws:iam::00000000:role/ASCMonitor" - } - } - ] - } - } - } - } -} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json new file mode 100644 index 000000000000..ff7f7ab989bd --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettingsList_example.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2023-02-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Security/sensitivitySettings", + "name": "current", + "type": "Microsoft.Security/sensitivitySettings", + "properties": { + "sensitiveInfoTypesIds": [ + "a98fde82-45b6-4b2c-afd0-ad579cd9f826", + "4d0d3eb6-619f-4c8c-810c-c16150c95278", + "0e9b3178-9678-47dd-a509-37222ca96b42", + "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b" + ], + "sensitivityThresholdLabelOrder": 1, + "mipInformation": { + "mipIntegrationStatus": "Ok", + "labels": [ + { + "name": "Public", + "id": "fdfb5435-124d-4651-a889-a4210fec6a77", + "order": 0 + }, + { + "name": "Confidential", + "id": "4c5447ec-f7f3-4345-a160-6a5850f2bf0c", + "order": 1 + }, + { + "name": "Highly Confidential", + "id": "f38ac75c-f42a-4c89-aa37-9c4e74101414", + "order": 2 + } + ], + "customInfoTypes": [ + { + "name": "User created custom info type 1", + "id": "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 2", + "id": "a4fee2b6-5618-404b-a5e7-aa377cd67543", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 3", + "id": "a355f11e-f87d-4f48-8490-ecf0873325b5", + "description": "Custom info type description" + } + ], + "builtInInfoTypes": [ + { + "name": "Http Authorization Header", + "type": "Credentials", + "id": "4d0d3eb6-619f-4c8c-810c-c16150c95278" + }, + { + "name": "User Login Credentials", + "type": "Credentials", + "id": "a98fde82-45b6-4b2c-afd0-ad579cd9f826" + }, + { + "name": "Credit card number", + "type": "Finance", + "id": "50842eb7-edc8-4019-85dd-5a5c1f2bb085" + }, + { + "name": "EU debit card number", + "type": "Finance", + "id": "0e9b3178-9678-47dd-a509-37222ca96b42" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json new file mode 100644 index 000000000000..a179d93503fb --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2023-02-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Security/sensitivitySettings", + "name": "current", + "type": "Microsoft.Security/sensitivitySettings", + "properties": { + "sensitiveInfoTypesIds": [ + "a98fde82-45b6-4b2c-afd0-ad579cd9f826", + "4d0d3eb6-619f-4c8c-810c-c16150c95278", + "0e9b3178-9678-47dd-a509-37222ca96b42", + "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b" + ], + "sensitivityThresholdLabelOrder": 1, + "mipInformation": { + "mipIntegrationStatus": "Ok", + "labels": [ + { + "name": "Public", + "id": "fdfb5435-124d-4651-a889-a4210fec6a77", + "order": 0 + }, + { + "name": "Confidential", + "id": "4c5447ec-f7f3-4345-a160-6a5850f2bf0c", + "order": 1 + }, + { + "name": "Highly Confidential", + "id": "f38ac75c-f42a-4c89-aa37-9c4e74101414", + "order": 2 + } + ], + "customInfoTypes": [ + { + "name": "User created custom info type 1", + "id": "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 2", + "id": "a4fee2b6-5618-404b-a5e7-aa377cd67543", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 3", + "id": "a355f11e-f87d-4f48-8490-ecf0873325b5", + "description": "Custom info type description" + } + ], + "builtInInfoTypes": [ + { + "name": "Http Authorization Header", + "type": "Credentials", + "id": "4d0d3eb6-619f-4c8c-810c-c16150c95278" + }, + { + "name": "User Login Credentials", + "type": "Credentials", + "id": "a98fde82-45b6-4b2c-afd0-ad579cd9f826" + }, + { + "name": "Credit card number", + "type": "Finance", + "id": "50842eb7-edc8-4019-85dd-5a5c1f2bb085" + }, + { + "name": "EU debit card number", + "type": "Finance", + "id": "0e9b3178-9678-47dd-a509-37222ca96b42" + } + ] + } + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json new file mode 100644 index 000000000000..e26f1d1329e1 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "api-version": "2023-02-15-preview", + "sensitivitySettings": { + "sensitiveInfoTypesIds": [ + "f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb", + "b452f22b-f87d-4f48-8490-ecf0873325b5", + "d59ee8b6-2618-404b-a5e7-aa377cd67543" + ], + "sensitivityThresholdLabelOrder": 2, + "sensitivityThresholdLabelId": "f2f8a7a1-28c0-404b-9ab4-30a0a7af18cb" + } + }, + "responses": { + "200": { + "description": "OK", + "body": { + "id": "/providers/Microsoft.Security/sensitivitySettings", + "name": "current", + "type": "Microsoft.Security/sensitivitySettings", + "properties": { + "sensitiveInfoTypesIds": [ + "a98fde82-45b6-4b2c-afd0-ad579cd9f826", + "4d0d3eb6-619f-4c8c-810c-c16150c95278", + "0e9b3178-9678-47dd-a509-37222ca96b42", + "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b" + ], + "sensitivityThresholdLabelOrder": 2, + "mipInformation": { + "mipIntegrationStatus": "Ok", + "labels": [ + { + "name": "Public", + "id": "fdfb5435-124d-4651-a889-a4210fec6a77", + "order": 0 + }, + { + "name": "Confidential", + "id": "4c5447ec-f7f3-4345-a160-6a5850f2bf0c", + "order": 1 + }, + { + "name": "Highly Confidential", + "id": "f38ac75c-f42a-4c89-aa37-9c4e74101414", + "order": 2 + } + ], + "customInfoTypes": [ + { + "name": "User created custom info type 1", + "id": "c5f9b9a1-2b9a-4a3a-8c5b-1f3d1d9d9c9b", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 2", + "id": "a4fee2b6-5618-404b-a5e7-aa377cd67543", + "description": "Custom info type description" + }, + { + "name": "User created custom info type 3", + "id": "a355f11e-f87d-4f48-8490-ecf0873325b5", + "description": "Custom info type description" + } + ], + "builtInInfoTypes": [ + { + "name": "Http Authorization Header", + "type": "Credentials", + "id": "4d0d3eb6-619f-4c8c-810c-c16150c95278" + }, + { + "name": "User Login Credentials", + "type": "Credentials", + "id": "a98fde82-45b6-4b2c-afd0-ad579cd9f826" + }, + { + "name": "Credit card number", + "type": "Finance", + "id": "50842eb7-edc8-4019-85dd-5a5c1f2bb085" + }, + { + "name": "EU debit card number", + "type": "Finance", + "id": "0e9b3178-9678-47dd-a509-37222ca96b42" + } + ] + } + } + } + } + } +} diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json deleted file mode 100644 index 218f377bba0c..000000000000 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json +++ /dev/null @@ -1,1494 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Security Center", - "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", - "version": "2023-02-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/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/GetSecurityConnectorSingleResource_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, project number in case of GCP connector)." - }, - "hierarchyIdentifierTrialEndDate": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings." - }, - "environmentName": { - "type": "string", - "description": "The multi cloud resource's cloud name.", - "enum": [ - "Azure", - "AWS", - "GCP", - "Github", - "AzureDevOps", - "GitLab" - ], - "x-ms-enum": { - "name": "cloudName", - "modelAsString": true - } - }, - "offerings": { - "type": "array", - "description": "A collection of offerings for the security connector.", - "items": { - "$ref": "#/definitions/cloudOffering" - }, - "x-ms-identifiers": [] - }, - "environmentData": { - "type": "object", - "description": "The security connector environment data.", - "$ref": "#/definitions/EnvironmentData" - } - } - }, - "EnvironmentData": { - "type": "object", - "description": "The security connector environment data.", - "discriminator": "environmentType", - "required": [ - "environmentType" - ], - "properties": { - "environmentType": { - "type": "string", - "description": "The type of the environment data.", - "enum": [ - "AwsAccount", - "GcpProject", - "GithubScope", - "AzureDevOpsScope", - "GitlabScope" - ], - "x-ms-enum": { - "name": "environmentType", - "modelAsString": true - } - } - } - }, - "AwsEnvironmentData": { - "type": "object", - "description": "The AWS connector environment data", - "x-ms-discriminator-value": "AwsAccount", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentData" - } - ], - "properties": { - "organizationalData": { - "type": "object", - "description": "The AWS account's organizational data", - "$ref": "#/definitions/AwsOrganizationalData" - }, - "regions": { - "type": "array", - "description": "list of regions to scan", - "items": { - "type": "string", - "description": "AWS regions names" - } - }, - "accountName": { - "type": "string", - "description": "The AWS account name", - "readOnly": true - } - } - }, - "AwsOrganizationalData": { - "type": "object", - "description": "The AWS organization data", - "discriminator": "organizationMembershipType", - "required": [ - "organizationMembershipType" - ], - "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 - } - } - } - }, - "AwsOrganizationalDataMaster": { - "type": "object", - "description": "The AWS organization data for the master account", - "x-ms-discriminator-value": "Organization", - "allOf": [ - { - "$ref": "#/definitions/AwsOrganizationalData" - } - ], - "properties": { - "stacksetName": { - "type": "string", - "description": "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset" - }, - "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 IDs" - } - } - } - }, - "AwsOrganizationalDataMember": { - "type": "object", - "description": "The AWS organization data for the member account", - "x-ms-discriminator-value": "Member", - "allOf": [ - { - "$ref": "#/definitions/AwsOrganizationalData" - } - ], - "properties": { - "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" - } - } - }, - "GcpProjectEnvironmentData": { - "type": "object", - "description": "The GCP project connector environment data", - "x-ms-discriminator-value": "GcpProject", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentData" - } - ], - "properties": { - "organizationalData": { - "type": "object", - "description": "The Gcp project's organizational data", - "$ref": "#/definitions/GcpOrganizationalData" - }, - "projectDetails": { - "type": "object", - "description": "The Gcp project's details", - "$ref": "#/definitions/GcpProjectDetails" - } - } - }, - "GcpProjectDetails": { - "type": "object", - "description": "The details about the project represented by the security connector", - "properties": { - "projectNumber": { - "type": "string", - "description": "The unique GCP Project number" - }, - "projectId": { - "type": "string", - "description": "The GCP Project id" - }, - "workloadIdentityPoolId": { - "readOnly": true, - "type": "string", - "description": "The GCP workload identity federation pool id" - }, - "projectName": { - "readOnly": true, - "type": "string", - "description": "GCP project name" - } - } - }, - "GcpOrganizationalData": { - "type": "object", - "description": "The gcpOrganization data", - "discriminator": "organizationMembershipType", - "required": [ - "organizationMembershipType" - ], - "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 - } - } - } - }, - "GcpOrganizationalDataOrganization": { - "type": "object", - "description": "The gcpOrganization data for the parent account", - "x-ms-discriminator-value": "Organization", - "allOf": [ - { - "$ref": "#/definitions/GcpOrganizationalData" - } - ], - "properties": { - "excludedProjectNumbers": { - "type": "array", - "description": "If the multi cloud account is of membership type organization, list of accounts excluded from offering", - "items": { - "type": "string", - "description": "account IDs" - } - }, - "serviceAccountEmailAddress": { - "type": "string", - "description": "The service account email address which represents the organization level permissions container." - }, - "workloadIdentityProviderId": { - "type": "string", - "description": "The GCP workload identity provider id which represents the permissions required to auto provision security connectors" - }, - "organizationName": { - "readOnly": true, - "type": "string", - "description": "GCP organization name" - } - } - }, - "GcpOrganizationalDataMember": { - "type": "object", - "description": "The gcpOrganization data for the member account", - "x-ms-discriminator-value": "Member", - "allOf": [ - { - "$ref": "#/definitions/GcpOrganizationalData" - } - ], - "properties": { - "parentHierarchyId": { - "type": "string", - "description": "If the multi cloud account is not of membership type organization, this will be the ID of the project's parent" - }, - "managementProjectNumber": { - "type": "string", - "description": "The GCP management project number from organizational onboarding" - } - } - }, - "GithubScopeEnvironmentData": { - "type": "object", - "description": "The github scope connector's environment data", - "x-ms-discriminator-value": "GithubScope", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentData" - } - ], - "properties": {} - }, - "AzureDevOpsScopeEnvironmentData": { - "type": "object", - "description": "The AzureDevOps scope connector's environment data", - "x-ms-discriminator-value": "AzureDevOpsScope", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentData" - } - ], - "properties": {} - }, - "GitlabScopeEnvironmentData": { - "type": "object", - "description": "The GitLab scope connector's environment data", - "x-ms-discriminator-value": "GitlabScope", - "allOf": [ - { - "$ref": "#/definitions/EnvironmentData" - } - ], - "properties": {} - }, - "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", - "DefenderForDatabasesAws", - "InformationProtectionAws", - "CspmMonitorGcp", - "CspmMonitorGithub", - "CspmMonitorAzureDevOps", - "DefenderForServersGcp", - "DefenderForContainersGcp", - "DefenderForDatabasesGcp", - "DefenderCspmAws", - "DefenderCspmGcp", - "DefenderForDevOpsGithub", - "DefenderForDevOpsAzureDevOps", - "CspmMonitorGitLab", - "DefenderForDevOpsGitLab" - ], - "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", - "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", - "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 used for provisioning resources" - } - } - }, - "kubernetesScubaReader": { - "type": "object", - "description": "The kubernetes to scuba connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature used for reading data" - } - } - }, - "cloudWatchToKinesis": { - "type": "object", - "description": "The cloudwatch to kinesis connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis" - } - } - }, - "kinesisToS3": { - "type": "object", - "description": "The kinesis to s3 connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS used by Kinesis to transfer data into S3" - } - } - }, - "containerVulnerabilityAssessment": { - "type": "object", - "description": "The container vulnerability assessment configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "containerVulnerabilityAssessmentTask": { - "type": "object", - "description": "The container vulnerability assessment task configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "enableContainerVulnerabilityAssessment": { - "type": "boolean", - "description": "Enable container vulnerability assessment feature" - }, - "autoProvisioning": { - "type": "boolean", - "description": "Is audit logs pipeline auto provisioning enabled" - }, - "kubeAuditRetentionTime": { - "type": "integer", - "format": "int64", - "description": "The retention time in days of kube audit logs set on the CloudWatch log group" - }, - "scubaExternalId": { - "type": "string", - "description": "The externalId used by the data reader to prevent the confused deputy attack" - } - } - }, - "defenderForServersAwsOffering": { - "type": "object", - "description": "The Defender for Servers AWS offering", - "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" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - }, - "configuration": { - "type": "object", - "description": "Configuration for servers Arc auto provisioning", - "properties": { - "proxy": { - "type": "string", - "description": "Optional HTTP proxy endpoint to use for the Arc agent" - }, - "privateLinkScope": { - "type": "string", - "description": "Optional Arc private link scope resource id to link the Arc agent" - } - } - } - } - }, - "vaAutoProvisioning": { - "type": "object", - "description": "The Vulnerability Assessment autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Vulnerability Assessment auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Vulnerability Assessment autoprovisioning", - "properties": { - "type": { - "type": "string", - "description": "The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'", - "enum": [ - "Qualys", - "TVM" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true - } - } - } - } - } - }, - "mdeAutoProvisioning": { - "type": "object", - "description": "The Microsoft Defender for Endpoint autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender for Endpoint auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Microsoft Defender for Endpoint autoprovisioning", - "properties": {} - } - } - }, - "subPlan": { - "type": "object", - "description": "configuration for the servers offering subPlan", - "properties": { - "type": { - "type": "string", - "description": "The available sub plans", - "enum": [ - "P1", - "P2" - ], - "x-ms-enum": { - "name": "subPlan", - "modelAsString": true - } - } - } - }, - "vmScanners": { - "type": "object", - "description": "The Microsoft Defender for Server VM scanning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender for Server VM scanning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Microsoft Defender for Server VM scanning", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - }, - "scanningMode": { - "type": "string", - "description": "The scanning mode for the VM scan.", - "enum": [ - "Default" - ], - "x-ms-enum": { - "name": "scanningMode", - "modelAsString": true - } - }, - "exclusionTags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "VM tags that indicates that VM should not be scanned" - } - } - } - } - } - } - }, - "defenderFoDatabasesAwsOffering": { - "type": "object", - "description": "The Defender for Databases AWS offering", - "x-ms-discriminator-value": "DefenderForDatabasesAws", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "arcAutoProvisioning": { - "type": "object", - "description": "The ARC autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is arc auto provisioning enabled" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - }, - "configuration": { - "type": "object", - "description": "Configuration for servers Arc auto provisioning", - "properties": { - "proxy": { - "type": "string", - "description": "Optional http proxy endpoint to use for the Arc agent" - }, - "privateLinkScope": { - "type": "string", - "description": "Optional Arc private link scope resource id to link the Arc agent" - } - } - } - } - }, - "rds": { - "type": "object", - "description": "The RDS configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is RDS protection enabled" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "databasesDspm": { - "type": "object", - "description": "The databases data security posture management (DSPM) configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is databases data security posture management (DSPM) protection enabled" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - } - } - }, - "informationProtectionAwsOffering": { - "type": "object", - "description": "The information protection for AWS offering", - "x-ms-discriminator-value": "InformationProtectionAws", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "informationProtection": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - } - } - }, - "cspmMonitorGcpOffering": { - "type": "object", - "description": "The CSPM monitoring for GCP offering", - "x-ms-discriminator-value": "CspmMonitorGcp", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "nativeCloudConnection": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "workloadIdentityProviderId": { - "type": "string", - "description": "The GCP workload identity provider id for the offering" - }, - "serviceAccountEmailAddress": { - "type": "string", - "description": "The service account email address in GCP for this offering" - } - } - } - } - }, - "defenderForServersGcpOffering": { - "type": "object", - "description": "The Defender for Servers GCP offering configurations", - "x-ms-discriminator-value": "DefenderForServersGcp", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "defenderForServers": { - "type": "object", - "description": "The Defender for servers connection configuration", - "properties": { - "workloadIdentityProviderId": { - "type": "string", - "description": "The workload identity provider id in GCP for this feature" - }, - "serviceAccountEmailAddress": { - "type": "string", - "description": "The service account email address in GCP for this feature" - } - } - }, - "arcAutoProvisioning": { - "type": "object", - "description": "The ARC autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is arc auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "Configuration for servers Arc auto provisioning", - "properties": { - "proxy": { - "type": "string", - "description": "Optional HTTP proxy endpoint to use for the Arc agent" - }, - "privateLinkScope": { - "type": "string", - "description": "Optional Arc private link scope resource id to link the Arc agent" - } - } - } - } - }, - "vaAutoProvisioning": { - "type": "object", - "description": "The Vulnerability Assessment autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Vulnerability Assessment auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Vulnerability Assessment autoprovisioning", - "properties": { - "type": { - "type": "string", - "description": "The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys'", - "enum": [ - "Qualys", - "TVM" - ], - "x-ms-enum": { - "name": "type", - "modelAsString": true - } - } - } - } - } - }, - "mdeAutoProvisioning": { - "type": "object", - "description": "The Microsoft Defender for Endpoint autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender for Endpoint auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Microsoft Defender for Endpoint autoprovisioning", - "properties": {} - } - } - }, - "subPlan": { - "type": "object", - "description": "configuration for the servers offering subPlan", - "properties": { - "type": { - "type": "string", - "description": "The available sub plans", - "enum": [ - "P1", - "P2" - ], - "x-ms-enum": { - "name": "subPlan", - "modelAsString": true - } - } - } - }, - "vmScanners": { - "type": "object", - "description": "The Microsoft Defender for Server VM scanning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender for Server VM scanning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Microsoft Defender for Server VM scanning", - "properties": { - "scanningMode": { - "type": "string", - "description": "The scanning mode for the VM scan.", - "enum": [ - "Default" - ], - "x-ms-enum": { - "name": "scanningMode", - "modelAsString": true - } - }, - "exclusionTags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "VM tags that indicate that VM should not be scanned" - } - } - } - } - } - } - }, - "defenderForDatabasesGcpOffering": { - "type": "object", - "description": "The Defender for Databases GCP offering configurations", - "x-ms-discriminator-value": "DefenderForDatabasesGcp", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "arcAutoProvisioning": { - "type": "object", - "description": "The ARC autoprovisioning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is arc auto provisioning enabled" - }, - "configuration": { - "type": "object", - "description": "Configuration for servers Arc auto provisioning", - "properties": { - "proxy": { - "type": "string", - "description": "Optional http proxy endpoint to use for the Arc agent" - }, - "privateLinkScope": { - "type": "string", - "description": "Optional Arc private link scope resource id to link the Arc agent" - } - } - } - } - }, - "defenderForDatabasesArcAutoProvisioning": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "serviceAccountEmailAddress": { - "type": "string", - "description": "The service account email address in GCP for this offering" - }, - "workloadIdentityProviderId": { - "type": "string", - "description": "The GCP workload identity provider id for this offering" - } - } - } - } - }, - "defenderForContainersGcpOffering": { - "type": "object", - "description": "The containers GCP offering", - "x-ms-discriminator-value": "DefenderForContainersGcp", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "nativeCloudConnection": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "serviceAccountEmailAddress": { - "type": "string", - "description": "The service account email address in GCP for this offering" - }, - "workloadIdentityProviderId": { - "type": "string", - "description": "The GCP workload identity provider id for this offering" - } - } - }, - "dataPipelineNativeCloudConnection": { - "type": "object", - "description": "The native cloud connection configuration", - "properties": { - "serviceAccountEmailAddress": { - "type": "string", - "description": "The data collection service account email address in GCP for this offering" - }, - "workloadIdentityProviderId": { - "type": "string", - "description": "The data collection GCP workload identity provider id for this offering" - } - } - }, - "auditLogsAutoProvisioningFlag": { - "type": "boolean", - "description": "Is audit logs data collection enabled" - }, - "defenderAgentAutoProvisioningFlag": { - "type": "boolean", - "description": "Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled" - }, - "policyAgentAutoProvisioningFlag": { - "type": "boolean", - "description": "Is Policy Kubernetes agent auto provisioning enabled" - } - } - }, - "cspmMonitorGithubOffering": { - "type": "object", - "description": "The CSPM monitoring for github offering", - "x-ms-discriminator-value": "CspmMonitorGithub", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "cspmMonitorAzureDevOpsOffering": { - "type": "object", - "description": "The CSPM monitoring for AzureDevOps offering", - "x-ms-discriminator-value": "CspmMonitorAzureDevOps", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "defenderCspmAwsOffering": { - "type": "object", - "description": "The CSPM P1 for AWS offering", - "x-ms-discriminator-value": "DefenderCspmAws", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": { - "vmScanners": { - "type": "object", - "description": "The Microsoft Defender for Server VM scanning configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender for Server VM scanning enabled" - }, - "configuration": { - "type": "object", - "description": "configuration for Microsoft Defender for Server VM scanning", - "properties": { - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - }, - "scanningMode": { - "type": "string", - "description": "The scanning mode for the VM scan.", - "enum": [ - "Default" - ], - "x-ms-enum": { - "name": "scanningMode", - "modelAsString": true - } - }, - "exclusionTags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "VM tags that indicates that VM should not be scanned" - } - } - } - } - }, - "dataSensitivityDiscovery": { - "type": "object", - "description": "The Microsoft Defender Data Sensitivity discovery configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is Microsoft Defender Data Sensitivity discovery enabled" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - }, - "databasesDspm": { - "type": "object", - "description": "The databases DSPM configuration", - "properties": { - "enabled": { - "type": "boolean", - "description": "Is databases DSPM protection enabled" - }, - "cloudRoleArn": { - "type": "string", - "description": "The cloud role ARN in AWS for this feature" - } - } - } - } - }, - "defenderCspmGcpOffering": { - "type": "object", - "description": "The CSPM P1 for GCP offering", - "x-ms-discriminator-value": "DefenderCspmGcp", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "defenderForDevOpsGithubOffering": { - "type": "object", - "description": "The Defender for DevOps for Github offering", - "x-ms-discriminator-value": "DefenderForDevOpsGithub", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "defenderForDevOpsAzureDevOpsOffering": { - "type": "object", - "description": "The Defender for DevOps for Azure DevOps offering", - "x-ms-discriminator-value": "DefenderForDevOpsAzureDevOps", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "cspmMonitorGitLabOffering": { - "type": "object", - "description": "The CSPM (Cloud security posture management) monitoring for gitlab offering", - "x-ms-discriminator-value": "CspmMonitorGitLab", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - }, - "defenderForDevOpsGitLabOffering": { - "type": "object", - "description": "The Defender for DevOps for Gitlab offering", - "x-ms-discriminator-value": "DefenderForDevOpsGitLab", - "allOf": [ - { - "$ref": "#/definitions/cloudOffering" - } - ], - "properties": {} - } - }, - "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/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json new file mode 100644 index 000000000000..4e8ae54e4c56 --- /dev/null +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json @@ -0,0 +1,327 @@ +{ + "swagger": "2.0", + "info": { + "title": "Data Sensitivity Settings", + "description": "API spec for Microsoft.Security Data Sensitivity Settings", + "version": "2023-02-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": { + "/providers/Microsoft.Security/sensitivitySettings/current": { + "put": { + "tags": [ + "sensitivitySettings" + ], + "description": "Updates data sensitivity settings for sensitive data discovery", + "operationId": "UpdateSensitivitySettings", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + }, + { + "in": "body", + "name": "sensitivitySettings", + "description": "The data sensitivity settings to update", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateSensitivitySettingsRequest" + } + } + ], + "responses": { + "200": { + "description": "Success of the sensitivity settings update", + "schema": { + "$ref": "#/definitions/GetSensitivitySettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Update sensitivity settings": { + "$ref": "./examples/SensitivitySettings/PutSensitivitySettings_example.json" + } + } + }, + "get": { + "tags": [ + "sensitivitySettings" + ], + "description": "Gets data sensitivity settings for sensitive data discovery", + "operationId": "GetSensitivitySettings", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "Success of the sensitivity settings get", + "schema": { + "$ref": "#/definitions/GetSensitivitySettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get sensitivity settings": { + "$ref": "./examples/SensitivitySettings/GetSensitivitySettings_example.json" + } + } + } + }, + "/providers/Microsoft.Security/sensitivitySettings": { + "get": { + "description": "Gets a list with a single sensitivity settings resource", + "operationId": "GetSensitivitySettingsList", + "parameters": [ + { + "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" + } + ], + "responses": { + "200": { + "description": "Success of the sensitivity settings list get", + "schema": { + "$ref": "#/definitions/GetSensitivitySettingsListResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "../../../common/v1/types.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get sensitivity settings list": { + "$ref": "./examples/SensitivitySettings/GetSensitivitySettingsList_example.json" + } + } + } + } + }, + "definitions": { + "SensitiveInfoTypesIds": { + "description": "List of selected sensitive info types' IDs.", + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "Label": { + "description": "Microsoft information protection sensitivity label", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The display name of the label" + }, + "id": { + "type": "string", + "description": "The ID of the label", + "format": "uuid" + }, + "order": { + "type": "number", + "description": "Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is." + } + } + }, + "GetSensitivitySettingsResponse": { + "x-ms-azure-resource": true, + "type": "object", + "description": "Data sensitivity settings for sensitive data discovery", + "properties": { + "id": { + "type": "string", + "description": "The ID of the sensitivity settings", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the sensitivity settings", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the sensitivity settings", + "readOnly": true + }, + "properties": { + "type": "object", + "description": "The sensitivity settings properties", + "properties": { + "sensitiveInfoTypesIds": { + "$ref": "#/definitions/SensitiveInfoTypesIds" + }, + "sensitivityThresholdLabelOrder": { + "type": "number", + "description": "The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off" + }, + "sensitivityThresholdLabelId": { + "type": "string", + "description": "The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.", + "format": "uuid" + }, + "mipInformation": { + "description": "Microsoft information protection built-in and custom information types, labels, and integration status.", + "type": "object", + "properties": { + "mipIntegrationStatus": { + "$ref": "#/definitions/MipIntegrationStatus" + }, + "labels": { + "$ref": "#/definitions/Labels" + }, + "customInfoTypes": { + "description": "List of custom user-defined information types", + "type": "array", + "items": { + "$ref": "#/definitions/InfoType" + } + }, + "builtInInfoTypes": { + "description": "List of pre-configured sensitive information types", + "type": "array", + "items": { + "$ref": "#/definitions/BuiltInInfoType" + } + } + } + } + } + } + } + }, + "GetSensitivitySettingsListResponse": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GetSensitivitySettingsResponse" + } + } + } + }, + "UpdateSensitivitySettingsRequest": { + "description": "Request to update data sensitivity settings for sensitive data discovery", + "type": "object", + "properties": { + "sensitiveInfoTypesIds": { + "$ref": "#/definitions/SensitiveInfoTypesIds" + }, + "sensitivityThresholdLabelOrder": { + "type": "number", + "description": "The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off" + }, + "sensitivityThresholdLabelId": { + "type": "string", + "description": "The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive.", + "format": "uuid" + } + }, + "required": [ + "sensitiveInfoTypesIds" + ] + }, + "BuiltInInfoType": { + "description": "Pre-configured sensitive information type", + "type": "object", + "properties": { + "name": { + "description": "Display name of the info type", + "type": "string" + }, + "id": { + "description": "Id of the info type", + "type": "string", + "format": "uuid" + }, + "type": { + "description": "Category of the built-in info type", + "type": "string" + } + } + }, + "InfoType": { + "type": "object", + "description": "Custom user-defined information type", + "properties": { + "name": { + "description": "Display name of the info type", + "type": "string" + }, + "id": { + "description": "Id of the info type", + "type": "string", + "format": "uuid" + }, + "description": { + "description": "Description of the info type", + "type": "string" + } + } + }, + "MipIntegrationStatus": { + "type": "string", + "description": "Microsoft information protection integration status", + "enum": [ + "Ok", + "noConsent", + "noAutoLabelingRules", + "noMipLabels" + ], + "x-ms-enum": { + "name": "MipIntegrationStatus", + "modelAsString": true + } + }, + "Labels": { + "description": "List of Microsoft information protection sensitivity labels", + "type": "array", + "items": { + "$ref": "#/definitions/Label" + } + } + } +} From 3fc4c1dfb12452a898bc8e793b380b991d254ba8 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\elstavi" Date: Thu, 6 Apr 2023 21:46:41 +0300 Subject: [PATCH 5/8] update readme to include sensitivitySettings --- specification/security/resource-manager/readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 07d33c15ff90..ffddb123e9c0 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -113,7 +113,8 @@ input-file: - Microsoft.Security/preview/2023-02-01-preview/sqlVulnerabilityAssessmentsBaselineRuleOperations.json - Microsoft.Security/preview/2023-02-01-preview/sqlVulnerabilityAssessmentsScanOperations.json - Microsoft.Security/preview/2023-02-01-preview/sqlVulnerabilityAssessmentsScanResultsOperations.json - - Microsoft.Security/preview/2023-02-01-preview/healthReports.json + - Microsoft.Security/preview/2023-02-01-preview/healthReports.json + - Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json ``` ### Tag: package-preview-2022-11 @@ -348,6 +349,7 @@ input-file: - Microsoft.Security/stable/2020-01-01/secureScore.json - Microsoft.Security/stable/2020-01-01/SecuritySolutions.json - Microsoft.Security/preview/2020-01-01-preview/connectors.json +- 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 From 2737cb6067d3cc1c733e68af94983906c0273939 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\elstavi" Date: Thu, 6 Apr 2023 21:56:06 +0300 Subject: [PATCH 6/8] fixing the readme --- specification/security/resource-manager/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index ffddb123e9c0..4bf7f7030d44 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -78,7 +78,7 @@ These are the global settings for the Security API. title: SecurityCenter description: API spec for Microsoft.Security (Azure Security Center) resource provider openapi-type: arm -tag: package-preview-2023-02 +tag: package-composite-v3 ``` ### Composite packages @@ -98,7 +98,7 @@ input-file: These settings apply only when `--tag=package-preview-2023-03` is specified on the command line. -``` yaml $(tag) == 'package-preview-2023-03' +```yaml $(tag) == 'package-preview-2023-03' input-file: - Microsoft.Security/preview/2023-03-01-preview/securityConnectors.json - Microsoft.Security/preview/2023-01-01-preview/securityOperators.json From 88a4eb2f126a0eaf186072ed0b6591bc0c9e02da Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\elstavi" Date: Thu, 6 Apr 2023 21:57:23 +0300 Subject: [PATCH 7/8] remove change from readme --- specification/security/resource-manager/readme.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 4bf7f7030d44..1e10bc973e5f 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -85,15 +85,6 @@ tag: package-composite-v3 The following packages may be composed from multiple api-versions. - -### Tag: package-preview-2023-02 - -These settings apply only when `--tag=package-preview-2023-02` is specified on the command line. - -```yaml $(tag) == 'package-preview-2023-02' -input-file: - - Microsoft.Security/preview/2023-02-15-preview/securityConnectors.json -``` ### Tag: package-preview-2023-03 These settings apply only when `--tag=package-preview-2023-03` is specified on the command line. From 92d9e5d1edf45192a11a86b23cde1fe8e19d867b Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\elstavi" Date: Tue, 18 Apr 2023 17:43:29 +0300 Subject: [PATCH 8/8] fix warnings --- .../preview/2023-02-15-preview/sensitivitySettings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json index 4e8ae54e4c56..57c2e42cafc9 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/sensitivitySettings.json @@ -110,7 +110,7 @@ "/providers/Microsoft.Security/sensitivitySettings": { "get": { "description": "Gets a list with a single sensitivity settings resource", - "operationId": "GetSensitivitySettingsList", + "operationId": "SensitivitySettings_List", "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -234,6 +234,7 @@ }, "GetSensitivitySettingsListResponse": { "type": "object", + "description": "A list with a single sensitivity settings resource", "properties": { "value": { "type": "array",