-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Release release sentinel securityinsights microsoft.security insights 2023 11 01 #26873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ffa9b2a
publish stable API for content hub and source control
xuhumsft 45d4dbd
fix breaking changes
xuhumsft fbc72bc
update readme for new GA APIs
xuhumsft a57b949
fix the reosurceId from the comments
xuhumsft 13e1b69
resolve comments from reviewer - emphasize the freefrom json is ARM t…
xuhumsft 88bc770
fix model validation in contenthub api
xuhumsft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
319 changes: 319 additions & 0 deletions
319
...sights/resource-manager/Microsoft.SecurityInsights/stable/2023-11-01/ContentPackages.json
This file contains hidden or 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,319 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "Security Insights", | ||
| "description": "API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider", | ||
| "version": "2023-11-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/contentPackages": { | ||
| "get": { | ||
| "x-ms-examples": { | ||
| "Get all available packages.": { | ||
| "$ref": "./examples/contentPackages/GetPackages.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ContentPackages" | ||
| ], | ||
| "description": "Gets all installed packages.", | ||
| "operationId": "ContentPackages_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" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataFilter" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataOrderBy" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataSearch" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataCount" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataTop" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataSkip" | ||
| }, | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/parameters/ODataSkipToken" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/packageList" | ||
| } | ||
| }, | ||
| "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/contentPackages/{packageId}": { | ||
| "get": { | ||
| "x-ms-examples": { | ||
| "Get installed packages by id.": { | ||
| "$ref": "./examples/contentPackages/GetPackageById.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ContentPackages" | ||
| ], | ||
| "description": "Gets an installed packages by its id.", | ||
| "operationId": "ContentPackages_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/PackageIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/packageModel" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "x-ms-examples": { | ||
| "Install a package to the workspace.": { | ||
| "$ref": "./examples/contentPackages/InstallPackage.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ContentPackages" | ||
| ], | ||
| "description": "Install a package to the workspace.", | ||
| "operationId": "ContentPackage_Install", | ||
| "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/PackageIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/PackageInstallationProperties" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK, a package is updated.", | ||
| "schema": { | ||
| "$ref": "#/definitions/packageModel" | ||
| } | ||
| }, | ||
| "201": { | ||
| "description": "Created", | ||
| "schema": { | ||
| "$ref": "#/definitions/packageModel" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "delete": { | ||
| "x-ms-examples": { | ||
| "Uninstall a package from the workspace.": { | ||
| "$ref": "./examples/contentPackages/UninstallPackage.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ContentPackages" | ||
| ], | ||
| "description": "Uninstall a package from the workspace.", | ||
| "operationId": "ContentPackage_Uninstall", | ||
| "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/PackageIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK" | ||
| }, | ||
| "204": { | ||
| "description": "No Content" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "../../../common/2.0/types.json#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "packageList": { | ||
| "description": "List available packages.", | ||
| "properties": { | ||
| "nextLink": { | ||
| "description": "URL to fetch the next set of packages.", | ||
| "readOnly": true, | ||
| "type": "string" | ||
| }, | ||
| "value": { | ||
| "description": "Array of packages.", | ||
| "items": { | ||
| "$ref": "#/definitions/packageModel" | ||
| }, | ||
| "type": "array" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "value" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "packageModel": { | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../common/2.0/types.json#/definitions/ResourceWithEtag" | ||
| } | ||
| ], | ||
| "description": "Represents a Package in Azure Security Insights.", | ||
| "properties": { | ||
| "properties": { | ||
| "description": "package properties", | ||
| "$ref": "#/definitions/packageProperties", | ||
| "x-ms-client-flatten": true | ||
| } | ||
| }, | ||
| "type": "object" | ||
| }, | ||
| "packageProperties": { | ||
| "description": "Describes package properties", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common/ContentCommonTypes.json#/definitions/packageBaseProperties" | ||
| } | ||
| ], | ||
| "required": [ | ||
| "contentId", | ||
| "contentProductId", | ||
| "contentKind", | ||
| "version", | ||
| "displayName" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "PackageIdParameter": { | ||
| "description": "package Id", | ||
| "in": "path", | ||
| "name": "packageId", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "PackageInstallationProperties": { | ||
| "description": "Package installation properties", | ||
| "in": "body", | ||
| "name": "packageInstallationProperties", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/packageModel" | ||
| }, | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.