Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -307,6 +307,47 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet": {
"post": {
"summary": "Verifies if this VNET is compatible with an App Service Environment.",
"description": "Verifies if this VNET is compatible with an App Service Environment by analyzing the Network Security Group rules.",
"operationId": "VerifyHostingEnvironmentVnet",
"x-ms-examples": {
"VerifyHostingEnvironmentVnet": { "$ref": "./examples/VerifyHostingEnvironmentVnet.json" }
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "parameters",
"in": "body",
"description": "VNET information",
"required": true,
"schema": {
"$ref": "#/definitions/VnetParameters"
}
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/VnetValidationFailureDetails"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources": {
"post": {
"summary": "Move resources between resource groups.",
Expand Down Expand Up @@ -967,6 +1008,88 @@
"type": "string"
}
}
},
"VnetParameters": {
"description": "The required set of inputs to validate a VNET",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "VnetParameters resource specific properties",
"properties": {
"vnetResourceGroup": {
"description": "The Resource Group of the VNET to be validated",
"type": "string"
},
"vnetName": {
"description": "The name of the VNET to be validated",
"type": "string"
},
"vnetSubnetName": {
"description": "The subnet name to be validated",
"type": "string"
}
},
"x-ms-client-flatten": true
}
}
},
"VnetValidationFailureDetails": {
"description": "A class that describes the reason for a validation failure.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "VnetValidationFailureDetails resource specific properties",
"properties": {
"failed": {
Copy link
Copy Markdown
Contributor

@sergey-shandar sergey-shandar Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Could you add description to the property?

"description": "A flag describing whether or not validation failed.",
"type": "boolean"
},
"failedTests": {
"description": "A list of tests that failed in the validation.",
"type": "array",
"items": {
"$ref": "#/definitions/VnetValidationTestFailure"
}
}
},
"x-ms-client-flatten": true
}
}
},
"VnetValidationTestFailure": {
"description": "A class that describes a test that failed during NSG and UDR validation.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "VnetValidationTestFailure resource specific properties",
"properties": {
"testName": {
"description": "The name of the test that failed.",
"type": "string"
},
"details": {
"description": "The details of what caused the failure, e.g. the blocking rule name, etc.",
"type": "string"
}
},
"x-ms-client-flatten": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"api-version": "2016-03-01",
"parameters": {
"properties": {
"vnetResourceGroup": "vNet123rg",
"vnetName": "vNet123",
"vnetSubnetName": "vNet123SubNet"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/verifyHostingEnvironmentVnet",
"properties": {
"failed": false,
"failedTests": []
}
}
}
}
}