Binds a source code repository to an image repository.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateSourceRepository |
create |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-shac42yvqzvq**** |
| RepoId |
string |
Yes |
The ID of the image repository. |
crr-gzsrlevmvoaq**** |
| CodeRepoType |
string |
Yes |
The type of the source code hosting platform. Valid values: |
GITHUB |
| CodeRepoNamespaceName |
string |
Yes |
The namespace of the source code repository. |
namespace |
| CodeRepoName |
string |
Yes |
The name of the source code repository. |
repo |
| AutoBuild |
boolean |
No |
Whether to trigger image building on code commit. Valid values:
|
true |
| OverseaBuild |
boolean |
No |
Whether to enable Build With Servers Deployed Outside Chinese Mainland. Valid values:
|
false |
| DisableCacheBuild |
boolean |
No |
Whether to disable build caches. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Whether the request was successful. |
true |
| RequestId |
string |
The ID of the request. |
4CE1F661-75DD-4EBD-A4AD-057B26834ABB |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "4CE1F661-75DD-4EBD-A4AD-057B26834ABB"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.