Share via


Web Apps - Get Instance Workflow Slot

İş akışı bilgilerini web sitesi kimliğine veya dağıtım yuvasına göre alın.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/workflows/{workflowName}?api-version=2023-12-01

URI Parametreleri

Name İçinde Gerekli Tür Description
name
path True

string

Site adı.

resourceGroupName
path True

string

Kaynağın ait olduğu kaynak grubunun adı.

Regex pattern: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

Dağıtım yuvasının adı.

subscriptionId
path True

string

Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örneğin, 000000000-0000-0000-0000-00000000000000).

workflowName
path True

string

İş akışı adı.

Regex pattern: ^[a-z][a-z0-9]*$

api-version
query True

string

API Sürümü

Yanıtlar

Name Tür Description
200 OK

WorkflowEnvelope

İş akışı bilgileri döndürüldü.

404 Not Found

{workflowName} adlı iş akışı yok.

Other Status Codes

DefaultErrorResponse

hata yanıtı App Service.

Güvenlik

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 kullanıcı hesabınızın kimliğine bürünme

Örnekler

GET a workflow Slot

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/slots/staging/workflows/stateful1?api-version=2023-12-01

Sample Response

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/workflows/stateful1",
  "name": "testsite2/stateful1",
  "type": "Microsoft.Web/sites/workflows",
  "kind": "Stateful",
  "location": "USAAnywhere",
  "properties": {
    "files": {
      "workflow.json": {
        "definition": {
          "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
          "actions": {},
          "contentVersion": "1.0.0.0",
          "outputs": {},
          "parameters": {},
          "triggers": {}
        }
      },
      "connections.json": {
        "managedApiConnections": {
          "office365": {
            "api": {
              "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/office365"
            },
            "connection": {
              "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/connections/office365-1"
            },
            "connectionRuntimeUrl": "string",
            "authentication": {
              "type": "Raw",
              "scheme": "Key",
              "parameter": "@appsetting('office365-connectionKey')"
            }
          }
        }
      }
    },
    "flowState": "Enabled",
    "health": {
      "state": "Healthy"
    }
  }
}

Tanımlar

Name Description
DefaultErrorResponse

hata yanıtı App Service.

Details
Error

Hata modeli.

ErrorEntity

API'den döndürülen hata yanıtının gövdesi.

Properties

Ek iş akışı özellikleri.

WorkflowEnvelope

İş akışı özellikleri tanımı.

WorkflowHealth

İş akışı durumunu temsil eder.

WorkflowHealthState

İş akışı sistem durumunu alır veya ayarlar.

WorkflowState

İş akışı durumu.

DefaultErrorResponse

hata yanıtı App Service.

Name Tür Description
error

Error

Hata modeli.

Details

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

Error

Hata modeli.

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

details

Details[]

Ayrıntılı hatalar.

innererror

string

Hata ayıklamak için daha fazla bilgi.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

ErrorEntity

API'den döndürülen hata yanıtının gövdesi.

Name Tür Description
code

string

Temel hata kodu.

details

ErrorEntity[]

Hata Ayrıntıları.

extendedCode

string

Hata türü.

innerErrors

ErrorEntity[]

İç hatalar.

message

string

Hatanın tüm ayrıntıları.

messageTemplate

string

İleti şablonu.

parameters

string[]

Şablon için parametreler.

target

string

Hata hedefi.

Properties

Ek iş akışı özellikleri.

Name Tür Description
files

object

Dosyaları alır veya ayarlar.

flowState

WorkflowState

İş akışının durumunu alır veya ayarlar.

health

WorkflowHealth

İş akışı durumunu alır veya ayarlar.

WorkflowEnvelope

İş akışı özellikleri tanımı.

Name Tür Description
id

string

Kaynak kimliği.

kind

string

Kaynak türü.

location

string

Kaynak konumu.

name

string

Kaynak adını alır.

properties

Properties

Ek iş akışı özellikleri.

type

string

Kaynak türünü alır.

WorkflowHealth

İş akışı durumunu temsil eder.

Name Tür Description
error

ErrorEntity

İş akışı hatasını alır veya ayarlar.

state

WorkflowHealthState

İş akışı sistem durumunu alır veya ayarlar.

WorkflowHealthState

İş akışı sistem durumunu alır veya ayarlar.

Name Tür Description
Healthy

string

NotSpecified

string

Unhealthy

string

Unknown

string

WorkflowState

İş akışı durumu.

Name Tür Description
Completed

string

Deleted

string

Disabled

string

Enabled

string

NotSpecified

string

Suspended

string