PutPipelineStatus

更新时间:
复制 MD 格式

Updates the pipeline execution status.

Operation description

This API uses optimistic locking to prevent conflicting updates. If you omit the force parameter, the request must use the latest pipeline version. Submitting a request with an outdated version causes a conflict error.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

devs:PutPipelineStatus

update

*All Resource

*

None None

Request syntax

PUT /2023-07-14/pipelines/{name}/status HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

name

string

No

The name of the pipeline.

demo-name

Request parameters

Parameter

Type

Required

Description

Example

body Pipeline

No

The object representing the pipeline execution.

force

boolean

No

Specifies whether to force the update. If set to true, the request overwrites the current pipeline regardless of its version.

false

Response elements

Element

Type

Description

Example

Pipeline

The object representing the pipeline execution.

Examples

Success response

JSON format

{
  "spec": {
    "templateName": "my-pipeline-template",
    "context": {
      "data": {
        "test": "test",
        "test2": 1
      }
    },
    "templateSpec": {
      "context": {
        "data": {
          "test": "test",
          "test2": 1
        }
      },
      "tasks": [
        {
          "name": "task-1",
          "context": {
            "data": {
              "test": "test",
              "test2": 1
            }
          },
          "taskTemplate": "serverless-runner",
          "runAfters": [
            {
              "name": "task-1"
            }
          ]
        }
      ],
      "contextSchema": {
        "test": "test",
        "test2": 1
      }
    }
  },
  "status": {
    "phase": "Success",
    "latestExecError": {
      "title": "权限不足错误",
      "message": "部署服务[_appcenter-xxx]失败,权限不足",
      "code": "AccessDenied",
      "requestId": "1-26d1287xxxxx",
      "extraInfo": "部署辅助函数权限不足,需要添加额外的权限以解决问题"
    }
  },
  "uid": "1455541096***548",
  "generation": 1,
  "description": "Pipeline example.",
  "kind": "Pipeline",
  "createdTime": "2021-11-19T09:34:38Z",
  "name": "my-pipeline",
  "labels": {
    "key": "value to the label key."
  },
  "resourceVersion": 1
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.