代码托管 CODEARTS REPO-添加部署密钥:请求示例

时间:2024-11-30 15:28:36

请求示例

POST https://{endpoint}/v2/repositories/{repository_id}/deploy-keys

{
  "key_title" : "repo@huawei.com",
  "key" : "ssh-rsa AAAAB3NzaC1yc2EA*********************************************************U7xcma6HU8nj1E0i46VObWyOONl3gh142BV repo@huawei.com",
  "can_push" : true,
  "application" : ""
}
support.huaweicloud.com/api-codeartsrepo/AddDeployKeyV2.html