-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Hub Generated] Publish private branch 'avjan/new-api-version-for-vasetteings' #24251
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
chunyu3
merged 15 commits into
main
from
published/Nomigori96MS/azure-rest-api-specs-pr/avjan/new-api-version-for-vasetteings
Jun 8, 2023
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8bffd48
Added stable api version for ServerVulnerabilityAssessmentsSettings
AvishalomJ 34d9988
Update system data ref and readme's api-version
AvishalomJ 2275c3e
Merge branch 'main' into avjan/new-api-version-for-vasetteings
AvishalomJ 70d7ac9
Update ServerVulnerabilityAssessmentsSetting's definition ref
AvishalomJ 0cc93a3
Merge branch 'avjan/new-api-version-for-vasetteings' of https://githu…
AvishalomJ f6dc276
Merge branch 'main' into avjan/new-api-version-for-vasetteings
AvishalomJ 3cbfe70
Updated ServerVulnerabilityAssessmentsSetting's systemData property
AvishalomJ f5b7b44
Updated ServerVulnerabilityAssessmentsSetting ref to proxyResource
AvishalomJ dc57fa0
Revert "Updated ServerVulnerabilityAssessmentsSetting ref to proxyRes…
AvishalomJ 2786656
Merge branch 'main' into avjan/new-api-version-for-vasetteings
AvishalomJ e1396f5
Update specification/security/resource-manager/Microsoft.Security/sta…
AvishalomJ 3a58178
Update ServerVulnerabilityAssessmentsSettings.json - minor changes
AvishalomJ e21c984
Update ServerVulnerabilityAssessmentsSettings.json - Added 200 ok res…
AvishalomJ 9047291
Updated ServerVulnerabilityAssessmentsSetting's references to the lat…
AvishalomJ 4394894
Update PutServerVulnerabilityAssessmentsSetting_example.json added 20…
AvishalomJ 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
330 changes: 330 additions & 0 deletions
330
...-manager/Microsoft.Security/stable/2023-05-01/ServerVulnerabilityAssessmentsSettings.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,330 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "Security Center", | ||
| "description": "API spec for Microsoft.Security (Azure Security Center) resource provider", | ||
| "version": "2023-05-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}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings": { | ||
| "get": { | ||
| "x-ms-examples": { | ||
| "List the server vulnerability assessments settings set on the subscription": { | ||
| "$ref": "./examples/ServerVulnerabilityAssessmentsSettings/ListServerVulnerabilityAssessmentsSettings_example.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ServerVulnerabilityAssessmentsSettings" | ||
| ], | ||
| "description": "Get a list of all the server vulnerability assessments settings over a subscription level scope", | ||
| "operationId": "ServerVulnerabilityAssessmentsSettings_ListBySubscription", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSettingsList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}": { | ||
| "get": { | ||
| "x-ms-examples": { | ||
| "Get the server vulnerability assessments setting of the kind settingKind that is set on the subscription": { | ||
| "$ref": "./examples/ServerVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ServerVulnerabilityAssessmentsSettings" | ||
| ], | ||
| "description": "Get a server vulnerability assessments setting of the requested kind, that is set on the subscription", | ||
| "operationId": "ServerVulnerabilityAssessmentsSettings_Get", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SettingKind" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "x-ms-examples": { | ||
| "Set a server vulnerability assessments setting of the kind settingKind on the subscription": { | ||
| "$ref": "./examples/ServerVulnerabilityAssessmentsSettings/PutServerVulnerabilityAssessmentsSetting_example.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ServerVulnerabilityAssessmentsSettings" | ||
| ], | ||
| "description": "Create or update a server vulnerability assessments setting of the requested kind on the subscription", | ||
| "operationId": "ServerVulnerabilityAssessmentsSettings_CreateOrUpdate", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SettingKind" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SettingBody" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| } | ||
| }, | ||
| "201": { | ||
| "description": "Created", | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "delete": { | ||
| "x-ms-examples": { | ||
| "Delete the server vulnerability assessments setting of the kind settingKind from the subscription": { | ||
| "$ref": "./examples/ServerVulnerabilityAssessmentsSettings/DeleteServerVulnerabilityAssessmentsSetting_example.json" | ||
| } | ||
| }, | ||
| "tags": [ | ||
| "ServerVulnerabilityAssessmentsSettings" | ||
| ], | ||
| "description": "Delete the server vulnerability assessments setting of the requested kind from the subscription", | ||
| "operationId": "ServerVulnerabilityAssessmentsSettings_Delete", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SettingKind" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK - Setting was deleted" | ||
| }, | ||
| "204": { | ||
| "description": "No Content - Setting does not exist" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed", | ||
| "schema": { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ServerVulnerabilityAssessmentsSettingsList": { | ||
| "type": "object", | ||
| "description": "A page of a server vulnerability assessments settings list", | ||
| "properties": { | ||
| "value": { | ||
| "description": "A collection of server vulnerability assessments settings in this page", | ||
| "readOnly": true, | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| } | ||
| }, | ||
| "nextLink": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "The URI to fetch the next page" | ||
| } | ||
| } | ||
| }, | ||
| "ServerVulnerabilityAssessmentsSetting": { | ||
| "type": "object", | ||
| "description": "A base vulnerability assessments setting on servers in the defined scope.", | ||
| "properties": { | ||
| "kind": { | ||
| "description": "The kind of the server vulnerability assessments setting.", | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSettingKind" | ||
| } | ||
| }, | ||
| "discriminator": "kind", | ||
| "required": [ | ||
| "kind" | ||
| ], | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/Resource" | ||
| } | ||
| ] | ||
| }, | ||
| "AzureServersSetting": { | ||
| "type": "object", | ||
| "description": "A vulnerability assessments setting on Azure servers in the defined scope.", | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "description": "The vulnerability assessments setting properties on Azure servers in the defined scope.", | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsAzureSettingProperties" | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| } | ||
| ], | ||
| "x-ms-discriminator-value": "AzureServersSetting" | ||
| }, | ||
| "ServerVulnerabilityAssessmentsAzureSettingProperties": { | ||
| "type": "object", | ||
| "description": "Describes the vulnerability assessments setting properties on Azure servers in the defined scope.", | ||
| "properties": { | ||
| "selectedProvider": { | ||
| "description": "The selected vulnerability assessments provider on Azure servers in the defined scope.", | ||
| "type": "string", | ||
| "enum": [ | ||
| "MdeTvm" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "ServerVulnerabilityAssessmentsAzureSettingSelectedProvider", | ||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "description": "Microsoft Defender for Endpoints threat and vulnerability management.", | ||
| "value": "MdeTvm" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "selectedProvider" | ||
| ] | ||
| }, | ||
| "ServerVulnerabilityAssessmentsSettingKind": { | ||
| "type": "string", | ||
| "description": "The kind of the server vulnerability assessments setting", | ||
| "enum": [ | ||
| "AzureServersSetting" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "ServerVulnerabilityAssessmentsSettingKind", | ||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "value": "AzureServersSetting" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "SettingKind": { | ||
| "name": "settingKind", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The kind of the server vulnerability assessments setting", | ||
| "enum": [ | ||
| "azureServersSetting" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "ServerVulnerabilityAssessmentsSettingKindName", | ||
| "modelAsString": true, | ||
| "values": [ | ||
| { | ||
| "value": "azureServersSetting" | ||
| } | ||
| ] | ||
| }, | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "SettingBody": { | ||
| "name": "serverVulnerabilityAssessmentsSetting", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/ServerVulnerabilityAssessmentsSetting" | ||
| }, | ||
| "description": "A server vulnerability assessments setting over a predefined scope", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
11 changes: 11 additions & 0 deletions
11
...VulnerabilityAssessmentsSettings/DeleteServerVulnerabilityAssessmentsSetting_example.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,11 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2023-05-01", | ||
| "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
| "settingKind": "azureServersSetting" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "204": {} | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
...verVulnerabilityAssessmentsSettings/GetServerVulnerabilityAssessmentsSetting_example.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,28 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2023-05-01", | ||
| "subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23", | ||
| "settingKind": "azureServersSetting" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/azureServersSetting", | ||
| "name": "azureServersSetting", | ||
| "type": "Microsoft.Security/serverVulnerabilityAssessmentsSettings", | ||
| "kind": "AzureServersSetting", | ||
| "properties": { | ||
| "selectedProvider": "MdeTvm" | ||
| }, | ||
| "systemData": { | ||
| "createdBy": "user@contoso.com", | ||
| "createdByType": "User", | ||
| "createdAt": "2023-05-12T13:47:50.328Z", | ||
| "lastModifiedBy": "user@contoso.com", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "2023-05-12T13:47:50.328Z" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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.