調用EnableWorkflow啟用指定工作流。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

請求參數

名稱 類型 是否必選 示例值 描述
Namespace String adcfc35d-e2fe-4fe9-bbaa-20e90ffc****

命名空間ID,在控制臺的命名空間頁面中獲取。

RegionId String cn-hangzhou

地域ID。

WorkflowId Long 111

工作流ID。

NamespaceSource String schedulerx

特殊第三方才需要填寫。

GroupId String testSchedulerx.defaultGroup

應用ID,在控制臺的應用管理頁面中獲取。

返回數據

名稱 類型 示例值 描述
Code Integer 200

返回碼

Message String Your request is denied as lack of ssl protect.

錯誤信息,僅錯誤時返回錯誤信息。

RequestId String 4F68ABED-AC31-4412-9297-D9A8F0401108

請求唯一ID

Success Boolean true

啟用工作流是否成功。取值如下:

  • true:啟用工作流成功。
  • false:啟用工作流失敗。

示例

請求示例

http(s)://[Endpoint]/?Action=EnableWorkflow
&Namespace=adcfc35d-e2fe-4fe9-bbaa-20e90ffc****
&WorkflowId=111
&<公共請求參數>

正常返回示例

XML 格式

<EnableWorkflowResponse>
  <RequestId>4F68ABED-AC31-4412-9297-D9A8F0401108</RequestId>
  <Message>Your request is denied as lack of ssl protect.</Message>
  <Code>200</Code>
  <Success>true</Success>
</EnableWorkflowResponse>

JSON 格式

{
    "RequestId": "4F68ABED-AC31-4412-9297-D9A8F0401108",
    "Message": "Your request is denied as lack of ssl protect.",
    "Code": 200,
    "Success": true
}