-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds base for updating Microsoft.SecurityInsights from version stable/2022-11-01 to version 2023-02-01 * Updates readme * Updates API version in new specs and examples * Provider sync properties (#22198) * Alert Rules - add alert details override changes and PUT example (#22196) * add alert details override changes and PUT example * add missing brace * add closing brace for alertDetailsOverride * add dynamic properties to 200 response * add dynamic details to 201 response --------- Co-authored-by: ShaniFelig <shfelifelig@microsoft.com> * Release Metadata 2023-02-01 stable version. (#22161) * Release Metadata 2023-02-01 stable version. * Fix Swagger spec validation errors. * Revert Metadata service version to 2022-12-01-preview * Bring back changes for version 2023-02-01 * Fix model validation --------- Co-authored-by: Dor Siso <60354892+dosiso@users.noreply.github.com> Co-authored-by: ShaniFelig <74960756+ShaniFelig@users.noreply.github.com> Co-authored-by: ShaniFelig <shfelifelig@microsoft.com> Co-authored-by: Samuel Kuang <samuk@microsoft.com>
- Loading branch information
1 parent
b240d3c
commit 4d150f8
Showing
98 changed files
with
17,019 additions
and
1 deletion.
There are no files selected for viewing
1,868 changes: 1,868 additions & 0 deletions
1,868
...ityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/AlertRules.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,151 changes: 1,151 additions & 0 deletions
1,151
...sights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/AutomationRules.json
Large diffs are not rendered by default.
Oops, something went wrong.
355 changes: 355 additions & 0 deletions
355
...rityinsights/resource-manager/Microsoft.SecurityInsights/stable/2023-02-01/Bookmarks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,355 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Security Insights", | ||
"description": "API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider", | ||
"version": "2023-02-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Get all bookmarks.": { | ||
"$ref": "./examples/bookmarks/GetBookmarks.json" | ||
} | ||
}, | ||
"tags": [ | ||
"Bookmarks" | ||
], | ||
"description": "Gets all bookmarks.", | ||
"operationId": "Bookmarks_List", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK, Operation successfully completed", | ||
"schema": { | ||
"$ref": "#/definitions/BookmarkList" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": "nextLink" | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/bookmarks/{bookmarkId}": { | ||
"get": { | ||
"x-ms-examples": { | ||
"Get a bookmark.": { | ||
"$ref": "./examples/bookmarks/GetBookmarkById.json" | ||
} | ||
}, | ||
"tags": [ | ||
"Bookmarks" | ||
], | ||
"description": "Gets a bookmark.", | ||
"operationId": "Bookmarks_Get", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
}, | ||
{ | ||
"$ref": "#/parameters/BookmarkId" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK, Operation successfully completed", | ||
"schema": { | ||
"$ref": "#/definitions/Bookmark" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
} | ||
} | ||
} | ||
}, | ||
"put": { | ||
"x-ms-examples": { | ||
"Creates or updates a bookmark.": { | ||
"$ref": "./examples/bookmarks/CreateBookmark.json" | ||
} | ||
}, | ||
"tags": [ | ||
"Bookmarks" | ||
], | ||
"description": "Creates or updates the bookmark.", | ||
"operationId": "Bookmarks_CreateOrUpdate", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
}, | ||
{ | ||
"$ref": "#/parameters/BookmarkId" | ||
}, | ||
{ | ||
"$ref": "#/parameters/Bookmark" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK, Operation successfully completed", | ||
"schema": { | ||
"$ref": "#/definitions/Bookmark" | ||
} | ||
}, | ||
"201": { | ||
"description": "Created", | ||
"schema": { | ||
"$ref": "#/definitions/Bookmark" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
} | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"x-ms-examples": { | ||
"Delete a bookmark.": { | ||
"$ref": "./examples/bookmarks/DeleteBookmark.json" | ||
} | ||
}, | ||
"tags": [ | ||
"Bookmarks" | ||
], | ||
"description": "Delete the bookmark.", | ||
"operationId": "Bookmarks_Delete", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" | ||
}, | ||
{ | ||
"$ref": "#/parameters/BookmarkId" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK, Operation successfully completed" | ||
}, | ||
"204": { | ||
"description": "No Content" | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Bookmark": { | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../common/2.0/types.json#/definitions/ResourceWithEtag" | ||
} | ||
], | ||
"description": "Represents a bookmark in Azure Security Insights.", | ||
"properties": { | ||
"properties": { | ||
"$ref": "#/definitions/BookmarkProperties", | ||
"description": "Bookmark properties", | ||
"x-ms-client-flatten": true | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"BookmarkList": { | ||
"description": "List all the bookmarks.", | ||
"properties": { | ||
"nextLink": { | ||
"description": "URL to fetch the next set of cases.", | ||
"readOnly": true, | ||
"type": "string" | ||
}, | ||
"value": { | ||
"description": "Array of bookmarks.", | ||
"items": { | ||
"$ref": "#/definitions/Bookmark" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"type": "object", | ||
"required": [ | ||
"value" | ||
] | ||
}, | ||
"BookmarkProperties": { | ||
"description": "Describes bookmark properties", | ||
"properties": { | ||
"created": { | ||
"description": "The time the bookmark was created", | ||
"format": "date-time", | ||
"type": "string" | ||
}, | ||
"createdBy": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/UserInfo", | ||
"description": "Describes a user that created the bookmark", | ||
"type": "object" | ||
}, | ||
"displayName": { | ||
"description": "The display name of the bookmark", | ||
"type": "string" | ||
}, | ||
"labels": { | ||
"description": "List of labels relevant to this bookmark", | ||
"items": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/Label" | ||
}, | ||
"type": "array" | ||
}, | ||
"notes": { | ||
"description": "The notes of the bookmark", | ||
"type": "string" | ||
}, | ||
"query": { | ||
"description": "The query of the bookmark.", | ||
"type": "string" | ||
}, | ||
"queryResult": { | ||
"description": "The query result of the bookmark.", | ||
"type": "string" | ||
}, | ||
"updated": { | ||
"description": "The last time the bookmark was updated", | ||
"format": "date-time", | ||
"type": "string" | ||
}, | ||
"updatedBy": { | ||
"$ref": "../../../common/2.0/types.json#/definitions/UserInfo", | ||
"description": "Describes a user that updated the bookmark", | ||
"type": "object" | ||
}, | ||
"eventTime": { | ||
"description": "The bookmark event time", | ||
"format": "date-time", | ||
"type": "string" | ||
}, | ||
"queryStartTime": { | ||
"description": "The start time for the query", | ||
"format": "date-time", | ||
"type": "string" | ||
}, | ||
"queryEndTime": { | ||
"description": "The end time for the query", | ||
"format": "date-time", | ||
"type": "string" | ||
}, | ||
"incidentInfo": { | ||
"$ref": "./common/IncidentTypes.json#/definitions/IncidentInfo", | ||
"description": "Describes an incident that relates to bookmark", | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"displayName", | ||
"query" | ||
], | ||
"type": "object" | ||
} | ||
}, | ||
"parameters": { | ||
"Bookmark": { | ||
"description": "The bookmark", | ||
"in": "body", | ||
"name": "bookmark", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/Bookmark" | ||
}, | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"BookmarkId": { | ||
"description": "Bookmark ID", | ||
"in": "path", | ||
"name": "bookmarkId", | ||
"required": true, | ||
"type": "string", | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
Oops, something went wrong.