logicapps/connectors/AzureVM/azuredeploy.json

559 строки
28 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

2017-09-19 23:36:27 +03:00
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"connectorLocation": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"allowedValues": [
"[resourceGroup().location]",
"australiaeast",
"australiasoutheast",
"brazilsouth",
"centralus",
"eastasia",
"eastus",
"eastus2",
"japaneast",
"japanwest",
"northcentralus",
"northeurope",
"southcentralus",
"southeastasia",
"westeurope",
"westus"
],
"metadata": {
"description": "Location of the Logic App."
}
},
"aadClientId": {
"type": "string"
},
"aadClientSecret": {
"type": "securestring"
}
},
"variables": {},
"resources": [
{
"name": "azure-vm-connector",
"type": "Microsoft.Web/customApis",
"location": "[parameters('connectorLocation')]",
"apiVersion": "2016-06-01",
"dependsOn": [],
"properties": {
"displayName": "Azure VM",
"description": "Virtual Machine connector to perform operations on a connector.",
"iconUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATkAAAE5CAYAAADr4VfxAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABb5SURBVHhe7d0JkBzVfcfx/xx76RaWhTgMOgAJYYJwqCBXoDBU2RRliBXHoeyQcBinOEzKgUCEFowQBhQHEuIKiU3FGEzigGObQIEr2E4BQqpCJI51oGNXaLW7EistkpBWK+3Ozuwcef/ZNzCShbQ7093T/eb7qZqa6Yayqe3uX7/3f/36CQAAAAAAAIBAxW699dbXEonEKclkcpruaGlpmVr8JwAQYn19fbJ58+bVuVwuZTZ7C4VCu/m0xWKxF1auXJke+bdMyLW2thbsbwCIhF27dklHR4fdOpwJupQGXT6ff3HVqlU/JuQARIYJLunq6pKdO3faPcdmAq8zbn8DQKhls1lpa2sbdcAp06KbRcgBCL1UKiXr16+Xffv22T2jR8gBCLWDBw/K22+/LYODg3bP2BByAE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VMl9YLo9KSf/poTBCvQCqvuyFaCLmImWlac0tNq+7JkxuK3SY/aV1Ll9bTJfbCMkVM/zuCXPJPbyjU3aKNkIsgrdf97rSE/MPcJnnEfPtNl9ir9RSx8rpbEEv+XWwSTSfQf3oCdbeoI+QiTOt1nzUtulfPCqZeV5oipq8CD5L+/wVVd5tv/oy3mmD7vAk4nUCP6CPkHHBCc3D1Oq1/6avAg5giFuSSf9PNn+160yX9E9M1Pc3nvyGCRcg5JMh6XfkUMX1lkZeCXvJPbwy3mHCb1xKj7uYgQs4xpXrdP85
"backendService": {
"serviceUrl": "https://management.azure.com/"
},
"brandColor": null,
"connectionParameters": {
"token": {
"type": "oAuthSetting",
"oAuthSettings": {
"identityProvider": "aad",
"customParameters": {
"LoginUri": {
"value": "https://login.windows.net"
},
"TenantId": {
"value": "common"
},
"ResourceUri": {
"value": "https://management.core.windows.net/"
}
},
"clientId": "[parameters('aadClientId')]",
"clientSecret": "[parameters('aadClientSecret')]"
},
"uiDefinition": null
}
},
"swagger": {
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Virtual Machine",
"description": "Virtual Machine connector to perform operations on a connector."
},
"host": "management.azure.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart": {
"post": {
"summary": "Restart",
"description": "Restart a virtual machine",
"operationId": "Restart",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"name": "vmName",
"type": "string",
"in": "path",
"required": true,
"x-ms-summary": "Virtual Machine Name",
"description": "The name of the virtual machine"
},
{
"name": "x-ms-api-version",
"default": "2017-03-30",
"in": "query",
"type": "string",
"required": true,
"x-ms-summary": "api-version",
"x-ms-visibility": "internal"
}
],
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}/start": {
"post": {
"summary": "Start",
"description": "Start a virtual machine",
"operationId": "Start",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"name": "vmName",
"type": "string",
"in": "path",
"required": true,
"x-ms-summary": "Virtual Machine Name",
"description": "The name of the virtual machine"
},
{
"name": "x-ms-api-version",
"default": "2017-03-30",
"in": "query",
"type": "string",
"required": true,
"x-ms-summary": "api-version",
"x-ms-visibility": "internal"
}
],
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate": {
"post": {
"summary": "Deallocate",
"description": "Deallocate a virtual machine",
"operationId": "Deallocate",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"name": "vmName",
"type": "string",
"in": "path",
"required": true,
"x-ms-summary": "Virtual Machine Name",
"description": "The name of the virtual machine"
},
{
"name": "x-ms-api-version",
"default": "2017-03-30",
"in": "query",
"type": "string",
"required": true,
"x-ms-summary": "api-version",
"x-ms-visibility": "internal"
}
],
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff": {
"post": {
"summary": "Power Off",
"description": "Power Off a virtual machine",
"operationId": "PowerOff",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"name": "vmName",
"type": "string",
"in": "path",
"required": true,
"x-ms-summary": "Virtual Machine Name",
"description": "The name of the virtual machine"
},
{
"name": "x-ms-api-version",
"default": "2017-03-30",
"in": "query",
"type": "string",
"required": true,
"x-ms-summary": "api-version",
"x-ms-visibility": "internal"
}
],
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture": {
"post": {
"summary": "Capture image (Blob)",
"description": "Capture an image of a virtual machine",
"operationId": "CaptureImage",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"name": "vmName",
"type": "string",
"in": "path",
"required": true,
"x-ms-summary": "Virtual Machine Name",
"description": "The name of the virtual machine"
},
{
"name": "x-ms-api-version",
"default": "2017-03-30",
"in": "query",
"type": "string",
"required": true,
"x-ms-summary": "api-version",
"x-ms-visibility": "internal"
},
{
"name": "body",
"in": "body",
"schema": {
"type": "object",
"properties": {
"vhdPrefix": {
"type": "string",
"description": "Specifies the prefix in the name of the blobs that constitute the storage profile of the image.",
"x-ms-summary": "VHD Prefix"
},
"destinationContainerName": {
"type": "string",
"description": "Specifies the name of the container inside which the vhds constituting the image resides.",
"x-ms-summary": "Destination Container Name"
},
"overwriteVhds": {
"type": "boolean",
"description": "Specifies if an existing vhd with same prefix inside the destination container is overwritten.",
"x-ms-summary": "Overwrite VHDS"
}
}
},
"required": true
}
],
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
}
}
},
"/subscriptions": {
"get": {
"tags": [
"Subscriptions"
],
"summary": "List subscriptions",
"description": "Gets a list of all the subscriptions to which the principal has access.",
"operationId": "Subscriptions_List",
"parameters": [
{
"name": "x-ms-api-version",
"in": "query",
"x-ms-summary": "API Version",
"x-ms-test-value": "2015-11-01",
"x-ms-visibility": "internal",
"type": "string",
"default": "2015-11-01"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/SubscriptionListResult"
}
}
},
"deprecated": false,
"x-ms-visibility": "internal"
}
},
"/subscriptions/{subscriptionId}/resourcegroups": {
"get": {
"tags": [
"ResourceGroups"
],
"summary": "List resource groups",
"description": "Lists all the resource groups within the subscription. The results are paginated at 1,000+ records.",
"operationId": "ResourceGroups_List",
"parameters": [
{
"name": "x-ms-api-version",
"in": "query",
"x-ms-summary": "API Version",
"x-ms-test-value": "2015-11-01",
"x-ms-visibility": "internal",
"type": "string",
"default": "2015-11-01"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ResourceGroupListResult"
}
}
},
"deprecated": false
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/operations/{operationId}": {
"get": {
"responses": {
"default": {
"description": "default",
"schema": {
"type": "string"
}
}
},
"x-ms-visibility": "internal",
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "operationId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "monitor",
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "api-version",
"in": "query",
"required": false,
"type": "string"
}
],
"summary": "Get operation status",
"description": "Retreives that current status of the operation",
"operationId": "Status_Get"
}
}
},
"definitions": {
"SubscriptionListResult": {
"description": "Subscription list operation response.",
"type": "object",
"properties": {
"value": {
"description": "The subscriptions available to the user.",
"type": "array",
"items": {
"$ref": "#/definitions/Subscription"
}
}
}
},
"Subscription": {
"type": "object",
"properties": {
"id": {
"description": "The fully qualified Id. For example, /subscriptions/00000000-0000-0000-0000-000000000000.",
"type": "string",
"readOnly": true,
"x-ms-summary": "Id"
},
"subscriptionId": {
"description": "The subscription Id.",
"type": "string",
"readOnly": true,
"x-ms-summary": "Subscription Id"
},
"displayName": {
"description": "The subscription display name.",
"type": "string",
"readOnly": true,
"x-ms-summary": "Display Name"
}
}
},
"ResourceGroupListResult": {
"description": "List of resource groups.",
"type": "object",
"properties": {
"value": {
"description": "The list of resource groups.",
"type": "array",
"items": {
"$ref": "#/definitions/ResourceGroup"
}
}
}
},
"ResourceGroup": {
"description": "Resource group information.",
"type": "object",
"properties": {
"id": {
"description": "The ID of the resource group (e.g. /subscriptions/XXX/resourceGroups/YYY).",
"type": "string",
"readOnly": true,
"x-ms-visibility": "advanced",
"x-ms-summary": "Id"
},
"name": {
"description": "The Name of the resource group.",
"type": "string",
"readOnly": true,
"x-ms-summary": "Name"
}
}
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"description": "The unique identifier for the Microsoft Azure subscription. The subscription ID forms part of the ID for every Azure resource.",
"required": true,
"x-ms-summary": "Subscription",
"x-ms-test-value": "80d4fe69-c95b-4dd2-a938-9250f1c8ab03",
"x-ms-dynamic-values": {
"operationId": "Subscriptions_List",
"value-collection": "value",
"value-path": "subscriptionId",
"value-title": "displayName",
"parameters": {
"x-ms-api-version": "2016-06-01"
}
},
"type": "string"
},
"ResourceGroupNameParameter": {
"name": "resourceGroup",
"in": "path",
"description": "Resource group name.",
"required": true,
"x-ms-summary": "Resource Group",
"x-ms-dynamic-values": {
"operationId": "ResourceGroups_List",
"value-collection": "value",
"value-path": "name",
"value-title": "name",
"parameters": {
"x-ms-api-version": "2016-06-01",
"subscriptionId": {
"parameter": "subscriptionId"
}
}
},
"type": "string"
}
},
"responses": {},
"securityDefinitions": {
"OAuth": {
"type": "oauth2",
"authorizationUrl": "https://login.windows.net/common/oauth2/authorize",
"tokenUrl": "https://login.windows.net/common/oauth2/token",
"flow": "accessCode"
}
},
"security": [
{}
],
"tags": []
}
}
}
],
"outputs": {}
}