Workflows - Generate Upgraded Definition
Generates the upgraded definition for a workflow.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/generateUpgradedDefinition?api-version=2016-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The resource group name. |
subscription
|
path | True |
string |
The subscription id. |
workflow
|
path | True |
string |
The workflow name. |
api-version
|
query | True |
string |
The API version. |
Request Body
Name | Type | Description |
---|---|---|
targetSchemaVersion |
string |
The target schema version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Generate an upgraded definition
Sample request
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/workflows/test-workflow/generateUpgradedDefinition?api-version=2016-06-01
{
"targetSchemaVersion": "2016-06-01"
}
Sample response
{
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {},
"actions": {},
"outputs": {}
}
Definitions
Name | Description |
---|---|
Generate |
The parameters to generate upgraded definition. |
Object |
GenerateUpgradedDefinitionParameters
The parameters to generate upgraded definition.
Name | Type | Description |
---|---|---|
targetSchemaVersion |
string |
The target schema version. |