Workflows - List Swagger
Získá definici OpenAPI pro pracovní postup.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listSwagger?api-version=2016-06-01
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Název skupiny prostředků. |
subscription
|
path | True |
string |
ID předplatného. |
workflow
|
path | True |
string |
Název pracovního postupu. |
api-version
|
query | True |
string |
Verze rozhraní API. |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
OK |
Zabezpečení
azure_auth
Tok Azure Active Directory OAuth2
Typ:
oauth2
Tok:
implicit
URL autorizace:
https://login.microsoftonline.com/common/oauth2/authorize
Rozsahy
Name | Description |
---|---|
user_impersonation | zosobnění uživatelského účtu |
Příklady
Get the swagger for a workflow
Ukázkový požadavek
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.Logic/workflows/testWorkflowName/listSwagger?api-version=2016-06-01
Ukázková odpověď
{
"swagger": "2.0",
"info": {
"title": "flow",
"description": "Azure Logic App."
},
"host": "test-host",
"basePath": "/workflows/2e420261710e423490d5d502fe9c4abb/triggers",
"schemes": [
"http"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/simpleManualTrigger/paths/invoke": {
"post": {
"description": "Trigger a run of the logic app.",
"operationId": "simpleManualTrigger-invoke",
"parameters": [
{
"name": "api-version",
"in": "query",
"description": "The service API version.",
"required": true,
"type": "string"
},
{
"name": "sp",
"in": "query",
"description": "The permissions; generally 'read' or 'write'.",
"required": true,
"type": "string"
},
{
"name": "sv",
"in": "query",
"description": "The version number of the query parameters.",
"required": true,
"type": "string"
},
{
"name": "sig",
"in": "query",
"description": "The SHA 256 hash of the entire request URI with an internal key.",
"required": true,
"type": "string"
}
],
"responses": {
"default": {
"description": "The Logic App Response.",
"schema": {
"type": "object"
}
}
}
}
}
}
}