{ "swagger": "2.0", "info": { "title": "Security Center", "version": "2019-01-01", "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" } ] }, "schemes": [ "https" ], "host": "management.azure.com", "produces": [ "application/json" ], "consumes": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, "tags": [ { "name": "AdvancedThreatProtection" } ], "paths": { "/{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}": { "get": { "operationId": "AdvancedThreatProtection_Get", "tags": [ "AdvancedThreatProtection" ], "description": "Gets the Advanced Threat Protection settings for the specified resource.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "resourceId", "in": "path", "description": "The fully qualified Azure Resource manager identifier of the resource.", "required": true, "type": "string", "x-ms-skip-url-encoding": true }, { "name": "settingName", "in": "path", "description": "Advanced Threat Protection setting name.", "required": true, "type": "string", "enum": [ "current" ], "x-ms-enum": { "name": "AdvancedThreatProtectionSettingName", "modelAsString": false } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AdvancedThreatProtectionSetting" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/Common.CloudError" } } }, "x-ms-examples": { "Gets the Advanced Threat Protection settings for the specified resource.": { "$ref": "./examples/AdvancedThreatProtection/GetAdvancedThreatProtectionSettings_example.json" } } }, "put": { "operationId": "AdvancedThreatProtection_Create", "tags": [ "AdvancedThreatProtection" ], "description": "Creates or updates the Advanced Threat Protection settings on a specified resource.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "resourceId", "in": "path", "description": "The fully qualified Azure Resource manager identifier of the resource.", "required": true, "type": "string", "x-ms-skip-url-encoding": true }, { "name": "settingName", "in": "path", "description": "Advanced Threat Protection setting name.", "required": true, "type": "string", "enum": [ "current" ], "x-ms-enum": { "name": "AdvancedThreatProtectionSettingName", "modelAsString": false } }, { "name": "advancedThreatProtectionSetting", "in": "body", "description": "Advanced Threat Protection Settings", "required": true, "schema": { "$ref": "#/definitions/AdvancedThreatProtectionSetting" } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AdvancedThreatProtectionSetting" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/Common.CloudError" } } }, "x-ms-examples": { "Creates or updates the Advanced Threat Protection settings on a specified resource.": { "$ref": "./examples/AdvancedThreatProtection/PutAdvancedThreatProtectionSettings_example.json" } } } } }, "definitions": { "AdvancedThreatProtectionProperties": { "type": "object", "description": "The Advanced Threat Protection settings.", "properties": { "isEnabled": { "type": "boolean", "description": "Indicates whether Advanced Threat Protection is enabled." } } }, "AdvancedThreatProtectionSetting": { "type": "object", "description": "The Advanced Threat Protection resource.", "properties": { "properties": { "$ref": "#/definitions/AdvancedThreatProtectionProperties", "description": "The Advanced Threat Protection settings.", "x-ms-client-flatten": true } }, "allOf": [ { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, "Common.CloudError": { "type": "object", "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "properties": { "error": { "$ref": "#/definitions/Common.CloudErrorBody", "description": "The error object.", "x-ms-client-flatten": true } }, "x-ms-external": true }, "Common.CloudErrorBody": { "type": "object", "description": "The error detail.", "properties": { "code": { "type": "string", "description": "The error code.", "readOnly": true }, "message": { "type": "string", "description": "The error message.", "readOnly": true }, "target": { "type": "string", "description": "The error target.", "readOnly": true }, "details": { "type": "array", "description": "The error details.", "items": { "$ref": "#/definitions/Common.CloudErrorBody" }, "readOnly": true, "x-ms-identifiers": [] }, "additionalInfo": { "type": "array", "description": "The error additional info.", "items": { "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorAdditionalInfo" }, "readOnly": true, "x-ms-identifiers": [] } }, "x-ms-external": true } }, "parameters": {} }