huawei-cloud-api-definitions-FunctionGraph 0.1.20250124

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"CallbackWorkflowRequestBody":{"description":"回调工作流的请求Body","properties":{"error":{"description":"错误信息","example":"aaaa","maxLength":64,"minLength":1,"type":"string"},"output":{"description":"工作流的执行结果,JSON格式,仅在status为success时有值","example":{"message":"success","result":200},"type":"object"},"result":{"description":"执行结果","enum":["success","fail"],"example":"success","maxLength":64,"minLength":1,"type":"string"}},"required":["result","output"]},"ErrorRsp400":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FGS.3002","maxLength":36,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述","example":"Invalid parameters.","maxLength":512,"minLength":2,"type":"string"},"request_id":{"description":"请求ID","example":"Req1","maxLength":512,"minLength":2,"type":"string"}}},"ErrorRsp404":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FGS.5002","maxLength":36,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述","example":"Function flow not found.","maxLength":512,"minLength":2,"type":"string"}}},"ErrorRsp500":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FGS.3002","maxLength":36,"minLength":1,"type":"string"},"error_msg":{"description":"错误描述","example":"Internal Error.","maxLength":512,"minLength":2,"type":"string"},"request_id":{"description":"请求ID","example":"Req1","maxLength":512,"minLength":2,"type":"string"}}},"FlowExecuteResponse":{"description":"函数流执行请求body体","properties":{"execution_id":{"description":"错误码","example":"48aff955-ea10-4ffd-b426-190bc192dc14","maxLength":64,"minLength":1,"type":"string"}}}},"description":null,"group_id":"cb46b925a4eb40a192520da4fc33b990","host":"functiongraph.cn-north-4.myhuaweicloud.com","id":"66d55dd691704abfad504b3f0103e6e9","info_version":"v2","method":"post","name":"CreateCallbackWorkflow","parameters":{"project_id":{"description":"租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"46b6f338fc3445b8846c71dfb1fbd9e8"},"workflow_id":{"description":"函数工作流ID","in":"path","maxLength":512,"minLength":1,"name":"workflow_id","required":true,"type":"string","x-example":"48aff955-ea10-4ffd-b426-190bc192dc14"}},"paths":{"/v2/{project_id}/fgs/workflows/{workflow_id}/callback":{"post":{"description":"回调工作流","operationId":"CreateCallbackWorkflow","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/workflow_id"},{"description":"callback workflow body","in":"body","name":"CreateCallbackWorkflowRequestBody","required":true,"schema":{"$ref":"#/definitions/CallbackWorkflowRequestBody"}},{"description":"workflow run id","in":"header","name":"X-Workflow-Run-Id","required":true,"type":"string","x-example":"aa7d6479-141d-482f-b9bc-85b5cd14066b"},{"description":"workflow state id","in":"header","name":"X-Workflow-State-Id","required":true,"type":"string","x-example":"0f5758f7-aa43-49ae-8923-c6448d7c1f91"}],"responses":{"200":{"description":"Success","examples":{"application/json":{"execution_id":"48aff955-ea10-4ffd-b426-190bc192dc13"}},"schema":{"$ref":"#/definitions/FlowExecuteResponse"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorRsp400"}},"404":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorRsp404"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorRsp500"}}},"summary":"回调工作流","tags":["函数流"],"x-is-registered":"Y","x-produc-type":"functiongraph","x-request-examples-description-1":"回调工作流","x-request-examples-url-1":"POST /v2/{project_id}/fgs/workflows/callback","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"回调工作流","tags":"函数流","uri":null,"version":"2.0"}