Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"serverVulnerabilityAssessment": "default"
},
"responses": {
"202": {},
"200": {},
"204": {}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2020-01-01",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "rg1",
"resourceNamespace": "Microsoft.Compute",
"resourceType": "virtualMachines",
"resourceName": "vm1",
"serverVulnerabilityAssessment": "default",
"operationId": "fedcba98-7654-4210-fedc-ba9876543210"
},
"responses": {
"204": {
"body": {}
},
"202": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@
"ServerVulnerabilityAssessment"
],
"operationId": "ServerVulnerabilityAssessment_Delete",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
Expand Down Expand Up @@ -285,11 +289,98 @@
}
],
"responses": {
"202": {
"description": "Accepted - the asynchronous delete operation has started."
},
"200": {
"description": "OK"
"description": "OK - deleted successfully."
},
"204": {
"description": "No Content - the resource did not exist in the first place."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}/operationResults/{operationId}": {
"get": {
"x-ms-examples": {
"Get the result of an operation on a serverVulnerabilityAssessments resource": {
"$ref": "./examples/ServerVulnerabilityAssessments/GetLocationHeaderResultServerVulnerabilityAssessments_example.json"
}
},
"operationId": "ServerVulnerabilityAssessment_GetLocationHeaderResult",
"summary": "Get serverVulnerabilityAssessments operation status",
"description": "Get the status of a serverVulnerabilityAssessments operation",
"tags": [
"ServerVulnerabilityAssessment"
],
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupName"
},
{
"name": "resourceNamespace",
"in": "path",
"description": "The Namespace of the resource.",
"required": true,
"type": "string"
},
{
"name": "resourceType",
"in": "path",
"description": "The type of the resource.",
"required": true,
"type": "string"
},
{
"name": "resourceName",
"in": "path",
"description": "Name of the resource.",
"required": true,
"type": "string"
},
{
"name": "serverVulnerabilityAssessment",
"in": "path",
"description": "ServerVulnerabilityAssessment status. only a 'default' value is supported.",
"required": true,
"type": "string",
"enum": [
"default"
]
},
{
"name": "operationId",
"type": "string",
"in": "path",
"description": "The Operation ID.",
"required": true
},
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
}
],
"responses": {
"204": {
"description": "No Content - Resource does not exist"
"schema": {
"type": "object"
},
"description": "OK"
},
"202": {
"schema": {
"type": "object"
},
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
Expand Down