Workflow Triggers - Get
取得工作流程觸發程式。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}?api-version=2024-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
name
|
path | True |
string |
網站名稱。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
資源所屬的資源群組名稱。 |
subscription
|
path | True |
string |
您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)。 |
trigger
|
path | True |
string |
工作流程觸發程式名稱。 |
workflow
|
path | True |
string |
工作流程名稱。 |
api-version
|
query | True |
string |
API 版本 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get a workflow trigger
範例要求
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/sites/test-name/hostruntime/runtime/webhooks/workflow/api/management/workflows/test-workflow/triggers/manual?api-version=2024-11-01
範例回覆
{
"properties": {
"provisioningState": "Succeeded",
"createdTime": "2018-08-10T17:32:30.2496336Z",
"changedTime": "2018-08-10T18:47:49.5288666Z",
"state": "Enabled",
"workflow": {
"id": "/workflows/test-workflow/versions/08586676800160476478",
"name": "08586676800160476478",
"type": "/workflows/versions"
}
},
"id": "/workflows/test-workflow/triggers/manual",
"name": "manual",
"type": "/workflows/triggers"
}
定義
名稱 | Description |
---|---|
Day |
一周中的一天。 |
Days |
星期幾。 |
Error |
錯誤屬性指出邏輯服務為何無法處理傳入要求。 錯誤訊息中會提供原因。 |
Error |
錯誤回應指出邏輯服務無法處理傳入要求。 error 屬性包含錯誤詳細數據。 |
Recurrence |
週期頻率。 |
Recurrence |
週期排程。 |
Recurrence |
週期排程出現次數。 |
Resource |
資源參考。 |
Workflow |
工作流程狀態。 |
Workflow |
工作流程狀態。 |
Workflow |
工作流程觸發程式。 |
Workflow |
工作流程觸發程式布建狀態。 |
Workflow |
工作流程觸發程序週期。 |
DayOfWeek
一周中的一天。
值 | Description |
---|---|
Friday | |
Monday | |
Saturday | |
Sunday | |
Thursday | |
Tuesday | |
Wednesday |
DaysOfWeek
星期幾。
值 | Description |
---|---|
Friday | |
Monday | |
Saturday | |
Sunday | |
Thursday | |
Tuesday | |
Wednesday |
ErrorProperties
錯誤屬性指出邏輯服務為何無法處理傳入要求。 錯誤訊息中會提供原因。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息,指出作業失敗的原因。 |
ErrorResponse
錯誤回應指出邏輯服務無法處理傳入要求。 error 屬性包含錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤屬性。 |
RecurrenceFrequency
週期頻率。
值 | Description |
---|---|
Day | |
Hour | |
Minute | |
Month | |
NotSpecified | |
Second | |
Week | |
Year |
RecurrenceSchedule
週期排程。
名稱 | 類型 | Description |
---|---|---|
hours |
integer[] (int32) |
小時。 |
minutes |
integer[] (int32) |
分鐘數。 |
monthDays |
integer[] (int32) |
月日。 |
monthlyOccurrences |
每月發生次數。 |
|
weekDays |
星期幾。 |
RecurrenceScheduleOccurrence
週期排程出現次數。
名稱 | 類型 | Description |
---|---|---|
day |
一周中的一天。 |
|
occurrence |
integer (int32) |
發生次數。 |
ResourceReference
資源參考。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
name |
string |
取得資源名稱。 |
type |
string |
取得資源類型。 |
WorkflowState
工作流程狀態。
值 | Description |
---|---|
Completed | |
Deleted | |
Disabled | |
Enabled | |
NotSpecified | |
Suspended |
WorkflowStatus
工作流程狀態。
值 | Description |
---|---|
Aborted | |
Cancelled | |
Failed | |
Faulted | |
Ignored | |
NotSpecified | |
Paused | |
Running | |
Skipped | |
Succeeded | |
Suspended | |
TimedOut | |
Waiting |
WorkflowTrigger
工作流程觸發程式。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
name |
string |
取得工作流程觸發程式名稱。 |
properties.changedTime |
string (date-time) |
取得變更的時間。 |
properties.createdTime |
string (date-time) |
取得建立的時間。 |
properties.lastExecutionTime |
string (date-time) |
取得上次運行時間。 |
properties.nextExecutionTime |
string (date-time) |
取得下一個運行時間。 |
properties.provisioningState |
取得布建狀態。 |
|
properties.recurrence |
取得工作流程觸發程序週期。 |
|
properties.state |
取得狀態。 |
|
properties.status |
取得狀態。 |
|
properties.workflow |
取得工作流程的參考。 |
|
type |
string |
取得工作流程觸發程序類型。 |
WorkflowTriggerProvisioningState
工作流程觸發程式布建狀態。
值 | Description |
---|---|
Accepted | |
Canceled | |
Completed | |
Created | |
Creating | |
Deleted | |
Deleting | |
Failed | |
Moving | |
NotSpecified | |
Ready | |
Registered | |
Registering | |
Running | |
Succeeded | |
Unregistered | |
Unregistering | |
Updating |
WorkflowTriggerRecurrence
工作流程觸發程序週期。
名稱 | 類型 | Description |
---|---|---|
endTime |
string |
結束時間。 |
frequency |
頻率。 |
|
interval |
integer (int32) |
間隔。 |
schedule |
週期排程。 |
|
startTime |
string |
開始時間。 |
timeZone |
string |
時區。 |