更新一個流程的內容。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
fnf:UpdateFlow |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Name |
string |
是 |
已建立的流程名稱。 |
my_flow_name |
| Definition |
string |
否 |
流程定義,遵循 Flow Definition Language (FDL)文法標準。考慮到向前相容,當系統支援兩種規範的流程定義規範。 說明
以上流程定義樣本中 Name:my_flow_name 是指流程名稱,需和入參 Name 保持一致 |
舊版: " type: flow version: v1 name: my_flow_name steps: - type: pass name: mypass " 新版: " 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 |
否 |
流程執行依賴的授權角色資源描述符資訊。用於在執行流程時,流程執行引擎扮演該角色(AssumeRole)調用相關的流程資源 API。 |
acs:ram:${region}:${accountID}:${role} |
| Environment |
object |
否 |
配置 Flow 執行期間可以訪問的變數列表 |
|
| Variables |
array<object> |
否 |
配置 Flow 執行期間可以訪問的變數列表 |
|
|
object |
否 |
配置 Flow 執行期間可以訪問的變數列表 |
||
| Name |
string |
否 |
變數名稱 |
key |
| Value |
string |
否 |
變數值 |
value |
| Description |
string |
否 |
變數描述 |
description |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資料。 |
||
| Type |
string |
流程類型。 |
FDL |
| Definition |
string |
流程定義,遵循 Flow Definition Language (FDL)文法標準。考慮到向前相容,當系統支援兩種規範的流程定義規範。 |
舊版: "type: flow\nversion: v1\nname: my_flow_name\nsteps:\n - type: pass\n name: mypass" 新版: "Type: StateMachine\nSpecVersion: v1\nName: my_flow_name\nStartAt: my_state\nStates:\n - Type: Pass\n Name: my_state\n End: true" |
| RoleArn |
string |
流程執行依賴的授權角色資源描述符資訊。用於在執行流程時,流程執行引擎扮演該角色(AssumeRole)調用相關的流程資源 API。 |
acs:ram:${region}:${accountID}:${role} |
| RequestId |
string |
請求 ID。 |
testRequestID |
| Description |
string |
流程描述。 |
my test flow |
| ExternalStorageLocation |
string |
外部儲存位置。 |
/path |
| Name |
string |
流程名稱。 |
my_flow_name |
| CreatedTime |
string |
流程建立時間。 |
2019-01-01T01:01:01.001Z |
| LastModifiedTime |
string |
流程最近一次的更改時間。 |
2019-01-01T01:01:01.001Z |
| Id |
string |
流程的唯一 ID。 |
e589e092-e2c0-4dee-b306-3574ddfdddf5**** |
| Environment |
object |
Flow 執行期間可以訪問的變數列表 |
|
| Variables |
array<object> |
Flow 執行期間可以訪問的變數列表 |
|
|
object |
Flow 執行期間可以訪問的變數列表 |
||
| Name |
string |
變數名稱 |
key |
| Value |
string |
變數值 |
value |
| Description |
string |
變數描述 |
description |
| ResourceGroupId |
string |
rg-xxx |
樣本
正常返回樣本
JSON格式
{
"Type": "FDL",
"Definition": "舊版:\n\"type: flow\\nversion: v1\\nname: my_flow_name\\nsteps:\\n - type: pass\\n name: mypass\"\n\n新版:\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",
"ExternalStorageLocation": "/path",
"Name": "my_flow_name",
"CreatedTime": "2019-01-01T01:01:01.001Z",
"LastModifiedTime": "2019-01-01T01:01:01.001Z",
"Id": "e589e092-e2c0-4dee-b306-3574ddfdddf5****",
"Environment": {
"Variables": [
{
"Name": "key",
"Value": "value",
"Description": "description"
}
]
},
"ResourceGroupId": "rg-xxx"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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 | InvalidArgument | Parameter error. | 請求參數錯誤。具體內容請參考實際錯誤資訊。 |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | 請求所需參數缺失。具體內容請參考實際錯誤資訊。 |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | 請求所需參數缺失。具體內容請參考實際錯誤資訊。 |
| 412 | PreconditionFailed | The resource to be modified has been changed. | 資源查看或更新檢查失敗,該資源可能已被更改。請稍後重試。 |
| 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. | AccessKey ID無效。 |
| 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. | 您發起請求的簽名與我們計算不一致,請檢查您的簽名演算法及AccessKey Secret。 |
| 404 | FlowNotExists | Flow %s does not exist. | 所請求資源不存在,請確保流程已建立。 |
| 415 | UnsupportedMediaType | The content type must be "application/json". | 請求訊息體類型錯誤。 |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | 因某些原因系統流量已達瓶頸。請稍後重試。 |
| 409 | ConcurrentUpdateError | Update conflict, please retry. | 所請求資源存在並發寫操作。請等待一段時間後再次操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。