DeleteBaseline
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
Test
RAM authorization
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 |
| 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.