文档

DeleteProtectedBranch - 删除保护分支

删除代码库保护分支。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

DELETE /repository/{repositoryId}/protect_branches/{protectedBranchId}

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

611b75680fc7bf0dbe1dce55
accessTokenstring

个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段

f0b1e61db5961df5975a93f9129d2513
repositoryIdlong

代码库 ID

2813489
protectedBranchIdlong

保护分支规则 ID

5326

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

请求 ID

1F4F342D-493A-5B2C-B133-BA78B30FF834
errorMessagestring

错误信息

”“
errorCodestring

错误码

Openapi.RequestError
successboolean

调用是否成功

true
resultobject

返回结果

resultboolean

是否删除成功

true

示例

正常返回示例

JSON格式

{
  "requestId": "1F4F342D-493A-5B2C-B133-BA78B30FF834",
  "errorMessage": "”“",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "result": true
  }
}

错误码

HTTP status code错误码错误信息描述
403Forbidden.AccessDeniedThe user is not authorized to perform the operation.用户无权限执行相关操作
403Forbidden.UserNotInCurrentOrganizationThe user is not in the organization and is not authorized to perform the operation.当前用户不在该企业中,无权进行操作。
403Forbidden.UserNotAdminOrOwnerThe current user is not an admin or owner in the organization and is not authorized to perform the operation.当前用户非该企业管理员或拥有者,无权进行操作。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈