Download OpenAPI specification:Download
「Workflows」が提供するAPIの利用方法とサンプルを公開しております。
APIを利用するためには、認証のための「APIキー」が必要です。事前にキーを発行しておきます。
APIキーは「ユーザーID」「パスワード」に相当する「トークン」と呼ばれる認証情報で構成されています。
項目名 | APIキー発行時の項目名 | このドキュメント内での例 |
---|---|---|
ユーザーID | アクセストークン(UUID) | 01234567-89ab-cdef-0123-456789abcdef |
パスワード | アクセストークンシークレット | SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM |
ワークフローを作成する
Name required | string [ 1 .. 64 ] characters |
Description | string [ 1 .. 64 ] characters |
Runbook required | string |
Publish required | boolean |
RoleId required | string [ 1 .. 1024 ] characters |
Logging required | boolean |
Array of objects | |
RevisionAlias | string [ 1 .. 64 ] characters |
{- "Name": "sampleString",
- "Description": "sampleString",
- "Runbook": "sampleString",
- "Publish": true,
- "RoleId": "sampleString",
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "RevisionAlias": "sampleString"
}
{- "is_ok": true,
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
{- "is_ok": true,
- "Total": 123,
- "From": 123,
- "Count": 123,
- "Workflows": [
- {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
]
}
ワークフローを取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローを更新する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローのリビジョンを追加する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Revision": {
- "RevisionId": 123,
- "WorkflowId": "sampleString",
- "RevisionAlias": "sampleString",
- "RoleId": "sampleString",
- "Runbook": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローのリビジョンの一覧を取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Total": 123,
- "From": 123,
- "Count": 123,
- "Revisions": [
- {
- "RevisionId": 123,
- "WorkflowId": "sampleString",
- "RevisionAlias": "sampleString",
- "RoleId": "sampleString",
- "Runbook": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
]
}
ワークフローのリビジョンを取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
revisionId required | number Example: 123 Revision ID |
{- "is_ok": true,
- "Revision": {
- "RevisionId": 123,
- "WorkflowId": "sampleString",
- "RevisionAlias": "sampleString",
- "RoleId": "sampleString",
- "Runbook": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローのリビジョンエイリアスを更新する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
revisionId required | number Example: 123 Revision ID |
{- "is_ok": true,
- "Revision": {
- "RevisionId": 123,
- "WorkflowId": "sampleString",
- "RevisionAlias": "sampleString",
- "RoleId": "sampleString",
- "Runbook": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローのリビジョンエイリアスを削除する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
revisionId required | number Example: 123 Revision ID |
{- "is_ok": true,
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローを実行する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Execution": {
- "ExecutionId": "sampleString",
- "Name": "sampleString",
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}, - "Status": "Queued",
- "Revision": 123,
- "RevisionAlias": "sampleString",
- "Args": "sampleString",
- "Result": "sampleString",
- "Error": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z",
- "RunAt": "2025-02-17T05:42:12.882Z",
- "FailedAt": "2025-02-17T05:42:12.882Z",
- "SucceededAt": "2025-02-17T05:42:12.882Z",
- "CancelRequestedAt": "2025-02-17T05:42:12.882Z",
- "CanceledAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローの実行をキャンセルする
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
required | object Example: workflowId,sampleString Execution ID |
{- "is_ok": true,
- "Execution": {
- "ExecutionId": "sampleString",
- "Name": "sampleString",
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}, - "Status": "Queued",
- "Revision": 123,
- "RevisionAlias": "sampleString",
- "Args": "sampleString",
- "Result": "sampleString",
- "Error": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z",
- "RunAt": "2025-02-17T05:42:12.882Z",
- "FailedAt": "2025-02-17T05:42:12.882Z",
- "SucceededAt": "2025-02-17T05:42:12.882Z",
- "CancelRequestedAt": "2025-02-17T05:42:12.882Z",
- "CanceledAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローの実行を取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
required | object Example: workflowId,sampleString Execution ID |
{- "is_ok": true,
- "Execution": {
- "ExecutionId": "sampleString",
- "Name": "sampleString",
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}, - "Status": "Queued",
- "Revision": 123,
- "RevisionAlias": "sampleString",
- "Args": "sampleString",
- "Result": "sampleString",
- "Error": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z",
- "RunAt": "2025-02-17T05:42:12.882Z",
- "FailedAt": "2025-02-17T05:42:12.882Z",
- "SucceededAt": "2025-02-17T05:42:12.882Z",
- "CancelRequestedAt": "2025-02-17T05:42:12.882Z",
- "CanceledAt": "2025-02-17T05:42:12.882Z"
}
}
ワークフローの実行の一覧を取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
{- "is_ok": true,
- "Total": 123,
- "From": 123,
- "Count": 123,
- "Executions": [
- {
- "ExecutionId": "sampleString",
- "Name": "sampleString",
- "Workflow": {
- "Id": "sampleString",
- "Name": "sampleString",
- "Description": "sampleString",
- "Publish": true,
- "Logging": true,
- "Tags": [
- {
- "Name": "sampleString"
}
], - "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z"
}, - "Status": "Queued",
- "Revision": 123,
- "RevisionAlias": "sampleString",
- "Args": "sampleString",
- "Result": "sampleString",
- "Error": "sampleString",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "UpdatedAt": "2025-02-17T05:42:12.882Z",
- "RunAt": "2025-02-17T05:42:12.882Z",
- "FailedAt": "2025-02-17T05:42:12.882Z",
- "SucceededAt": "2025-02-17T05:42:12.882Z",
- "CancelRequestedAt": "2025-02-17T05:42:12.882Z",
- "CanceledAt": "2025-02-17T05:42:12.882Z"
}
]
}
ワークフローの実行履歴を取得する
id required | string [ 1 .. 36 ] characters Example: sampleString Workflow ID |
required | object Example: workflowId,sampleString Execution ID |
{- "is_ok": true,
- "Total": 123,
- "From": 123,
- "Count": 123,
- "History": [
- {
- "WorkflowExecutionId": "sampleString",
- "JobId": "sampleString",
- "ThreadId": "sampleString",
- "Type": "workflowWillStart",
- "CreatedAt": "2025-02-17T05:42:12.882Z",
- "Meta": "sampleString",
- "StackTrace": "sampleString",
- "Variables": "sampleString"
}
]
}