CreateRepoWebhook
Description
call CreateRepoWebhook to create warehouse triggers.
Request Method
POST
Request Path
/apsara/route/cr/CreateRepoWebhook
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RepoNamespace | BODY | string | Yes | No sample value for this parameter. | namespace to which the repository belongs |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RepoName | BODY | string | Yes | No sample value for this parameter. | warehouse name |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
WebhookUrl | string | Yes | URL triggered during image push. |
TriggerType | string | Yes | trigger type of trigger when image push, enumeration (ALL, TAG_REG_EXP, TAG_LIST), you can select mirror version trigger, regular expression trigger, and support both triggers at the same time. |
WebhookName | string | Yes | trigger name. |
Example
Successful Response example
{
"WebhookUrl":"Yes",
"TriggerType":"Yes",
"WebhookName":"Yes"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}