Deleting Flows
Function
This API is used to delete a flow.
URI
DELETE /v2/{project_id}/fgs/workflows
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. Minimum: 1 Maximum: 64 |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
workflow_urns |
Yes |
Array of strings |
Flow URNs. Array Length: 0 - 200 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
success |
Array of strings |
URNs of successful flows. Array Length: 0 - 100 |
fail |
Array of OperateErrorInfo objects |
Details of failed flows. Array Length: 0 - 200 |
Parameter |
Type |
Description |
---|---|---|
workflow_urn |
String |
Unique flow URN. Minimum: 1 Maximum: 128 |
error_detail |
String |
Error details. Minimum: 1 Maximum: 64 |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. Minimum: 1 Maximum: 36 |
error_msg |
String |
Error description. Minimum: 2 Maximum: 512 |
request_id |
String |
Request ID. Minimum: 2 Maximum: 512 |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. Minimum: 1 Maximum: 36 |
error_msg |
String |
Error description. Minimum: 2 Maximum: 512 |
request_id |
String |
Request ID. Minimum: 2 Maximum: 512 |
Example Requests
Delete function flows with URNs urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow1:latest and urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow2:latest.
DELETE /v2/{project_id}/fgs/workflows { "workflow_urns" : [ "urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow1:latest", "urn:fss:{region}:73d69ae0cfcf460190522d060f05ad:workflow:default:testflow2:latest" ] }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Success |
400 |
Bad Request |
500 |
Internal Server Error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.