зеркало из https://github.com/Azure/logicapps.git
559 строки
28 KiB
JSON
559 строки
28 KiB
JSON
{
|
|
"$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+bVuVwuZ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aYQcAKcRcgCcRsgBcBohB8BphBwApxFyAJxGyAFwGiEHwGmEHACnEXIAHCby/3Hnlx8ih4yNAAAAAElFTkSuQmCC",
|
|
"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": {}
|
|
}
|
|
|