DeleteBaseline

Updated at:

Deletes a baseline configuration by baseline ID. Deletion is allowed only when the baseline has no upstream nodes. You can call the UpdateBaseline operation to modify the upstream nodes of the baseline.

Operation description

前置条件:可先通过 ListProjects 接口获取 ProjectId,再调用 ListBaselines 接口,并从返回的 Data.Baselines[].BaselineId 中获取待删除的基线 ID。

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

BaselineId

integer

Yes

The ID of the baseline. You can call the ListBaselines operation to obtain the ID.

1234

ProjectId

integer

Yes

The ID of the workspace monitored by the baseline. You can call the ListBaselines operation to obtain the ID.

10000

Response elements

Element

Type

Description

Example

object

OpenApiResultModel

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

ErrorCode

string

The error code.

1031203110000

ErrorMessage

string

The error message.

Baseline deletion failed with nodes dependent on baseline

HttpStatusCode

integer

The HTTP status code.

200

Data

boolean

Indicates whether the deletion was successful.

true

RequestId

string

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

0000-ABCD-EF****

Examples

Success response

JSON format

{
  "Success": true,
  "ErrorCode": "1031203110000",
  "ErrorMessage": "Baseline deletion failed with nodes dependent on baseline",
  "HttpStatusCode": 200,
  "Data": true,
  "RequestId": "0000-ABCD-EF****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.