フローを作成します。
操作説明
操作の説明
各ユーザーが作成できるフローの数は、リソース制限の対象となります。詳細については、「使用制限」を参照してください。特別な要件がある場合は、チケットを提出して調整をリクエストしてください。
フローはユーザーレベルで名前によって区別されます。同じ名前のフローは、単一のアカウント配下に共存できません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
fnf:CreateFlow |
create |
*フロー。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
フローの名前。名前は同じリージョン内で一意である必要があり、作成後は変更できません。有効な値:
|
my_flow_name |
| Definition |
string |
必須 |
フローの定義。Flow Definition Language (FDL) 構文標準に準拠します。上位互換性のため、システムは 2 つのフロー定義仕様をサポートしています。 説明
前述のフロー定義例では、Name: my_flow_name はフロー名を指定しており、Name リクエストパラメーターと一致している必要があります。 |
Legacy: " type: flow version: v1 name: my_flow_name steps: - type: pass name: mypass " Latest: " Type: StateMachine SpecVersion: v1 Name: my_flow_name StartAt: my_state States: - Type: Pass Name: my_state End: true " |
| Description |
string |
必須 |
フローの説明。 |
my test flow |
| Type |
string |
必須 |
フローのタイプ。有効な値: FDL。 列挙値:
|
FDL |
| RoleArn |
string |
任意 |
フローの実行が依存する権限付与ロールのリソース記述子。フローを実行するとき、CloudFlow はこのロールを引き受けて、関連するフローリソースを操作します。 |
acs:ram:${region}:${accountID}:${role} |
| ExternalStorageLocation |
string |
任意 |
外部ストレージの場所。 |
/path |
| ExecutionMode |
string |
任意 |
実行モード。有効な値: Express、Standard。上位互換性のため、空の文字列は標準実行モードと同等です。 列挙値:
|
Standard |
| Environment |
object |
任意 |
フローを実行するときにアクセスできる環境コンテキスト。 |
|
| Variables |
array<object> |
任意 |
フローの実行中にアクセスできる環境変数のリスト。 |
|
|
object |
任意 |
フローの実行中にアクセスできる変数のリスト。 |
||
| Name |
string |
任意 |
変数の名前。 |
key |
| Value |
string |
任意 |
変数の値。 |
value |
| Description |
string |
任意 |
変数の説明。 |
description |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答データ。 |
||
| Type |
string |
フローのタイプ。 列挙値:
|
FDL |
| Definition |
string |
フローの定義。上位互換性のため、システムは 2 つのフロー定義仕様をサポートしています。 |
Legacy: "type: flow\nversion: v1\nname: my_flow_name\nsteps:\n - type: pass\n name: mypass" Latest: "Type: StateMachine\nSpecVersion: v1\nName: my_flow_name\nStartAt: my_state\nStates:\n - Type: Pass\n Name: my_state\n End: true" |
| RoleArn |
string |
フローの実行が依存する権限付与ロールのリソース記述子。フローを実行するとき、CloudFlow はこのロールを引き受けて、関連するフローリソースを操作します。 |
acs:ram:${region}:${accountID}:${role} |
| RequestId |
string |
リクエスト ID。CloudFlow は、HTTP 状態コードが返されるたびにリクエスト ID を返します。 |
testRequestID |
| Description |
string |
フローの説明。 |
my test flow |
| Name |
string |
フローの名前。 |
my_flow_name |
| CreatedTime |
string |
フローが作成された時間。時間は協定世界時 (UTC) で表示され、YYYY-MM-DDThh:mm:ss.sssZ フォーマットの ISO 8601 標準に従います。 |
2019-01-01T01:01:01.001Z |
| LastModifiedTime |
string |
フローが最後に変更された時間。時間は協定世界時 (UTC) で表示され、YYYY-MM-DDThh:mm:ss.sssZ フォーマットの ISO 8601 標準に従います。 |
2019-01-01T01:01:01.001Z |
| Id |
string |
フローの一意な識別子。 |
e589e092-e2c0-4dee-b306-3574ddfdddf5**** |
| ExecutionMode |
string |
実行モード。有効な値: Express、Standard。上位互換性のため、このフィールドは空の文字列になる場合があり、これは標準モードと同等です。 |
Standard |
| Environment |
object |
フローの実行中にアクセスできる変数のリスト。 |
|
| Variables |
array<object> |
フローの実行中にアクセスできる変数のリスト。 |
|
|
object |
フローの実行中にアクセスできる変数のリスト。 |
||
| Name |
string |
変数の名前。 |
key |
| Value |
string |
変数の値。 |
value |
| Description |
string |
変数の説明。 |
description |
| ResourceGroupId |
string |
フローが属するリソースグループの ID。 |
rg-xxx |
例
成功レスポンス
JSONJSON
{
"Type": "FDL",
"Definition": "Legacy version:\n\"type: flow\\nversion: v1\\nname: my_flow_name\\nsteps:\\n - type: pass\\n name: mypass\"\n\nNew version:\n\"Type: StateMachine\\nSpecVersion: v1\\nName: my_flow_name\\nStartAt: my_state\\nStates:\\n - Type: Pass\\n Name: my_state\\n End: true\"",
"RoleArn": "acs:ram:${region}:${accountID}:${role}",
"RequestId": "testRequestID",
"Description": "my test flow",
"Name": "my_flow_name",
"CreatedTime": "2019-01-01T01:01:01.001Z",
"LastModifiedTime": "2019-01-01T01:01:01.001Z",
"Id": "e589e092-e2c0-4dee-b306-3574ddfdddf5****",
"ExecutionMode": "Standard",
"Environment": {
"Variables": [
{
"Name": "key",
"Value": "value",
"Description": "description"
}
]
},
"ResourceGroupId": "rg-xxx"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | FlowAlreadyExists | Flow %s already exists. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。