Deleting a Function Flow
Function
This API is used to delete a flow.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
PUT /v1/{project_id}/ffs/graphs
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID. For details, see Obtaining a Project ID. Constraints N/A. Range The value contains 32 characters. Only letters and digits are allowed. Default Value N/A. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| x-cloud-service | No | Boolean | User tags. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| action | No | String | Definition Operation method. Constraints N/A Range N/A Default Value N/A |
| graphs | No | Array of strings | Definition IDs of flows to be operated. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 201
| Parameter | Type | Description |
|---|---|---|
| success | Array of strings | Definition URNs of the function flows that are successfully operated. Range N/A |
| fail | Array of OperateErrorInfo objects | Definition URNs of the function flows that failed to be deleted. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| workflow_urn | String | Definition Flow URN. Range N/A |
| error_detail | String | Definition Error details. Range N/A |
| error_code | String | Definition Error code. Range N/A |
| error_msg | String | Definition Error description. Range N/A |
| graph_id | String | Definition Flow URN. Range N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
| request_id | String | Request ID. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
| request_id | String | Request ID. |
Example Requests
None
Example Responses
Status code: 201
{
"success" : [ "1" ],
"fail" : [ {
"error_detail" : "graph not found:bb69de22-f30e-42ae-97ed-6e1658c18f06",
"workflow_urn" : "bb69de22-f30e-42ae-97ed-6e1658c18f06"
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 201 | Created |
| 400 | Bad Request |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot