All Products
Search
Document Center

GetRepoWebhook

Last Updated: Jan 22, 2020

Description

You can call this operation to query a trigger of an image repository.

Request information

Request line

  1. GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1

Request parameters

Parameter Type Required Description
RepoNamespace String Yes The namespace to which the image repository belongs.
RepoName String Yes The name of the image repository.

Custom request headers

None.

Request body

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Custom response headers

None.

Response body

  1. {
  2. "data": {
  3. "webhooks":[
  4. {
  5. "webhookId": Long,
  6. "triggerTag": String,
  7. "webhookName": String,
  8. "triggerType": String,
  9. "webhookUrl": String
  10. }
  11. ]
  12. },
  13. "requestId": String
  14. }

Response body description

Parameter Type Description
webhookId Long The ID of the trigger.
triggerTag String The tag of the trigger.
webhookName String The name of the trigger.
triggerType String The type of the trigger.
webhookUrl String The URL of the trigger.
syncTaskId String The ID of the sync task.
RequestId String The unique ID of the request.

Examples

Sample requests

  1. GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1
  2. <Common request headers>

Sample responses

  1. HTTP/1.1 200 OK
  2. <Common response headers>
  3. {
  4. "data": {
  5. "webhooks":[
  6. {
  7. "webhookId": 39726,
  8. "triggerTag": "",
  9. "webhookName": "justForTest",
  10. "triggerType": "ALL",
  11. "webhookUrl": "https://www.****.com"
  12. }
  13. ]
  14. },
  15. "requestId": "A86AB63A-758B-4FD9-9CB1-1421083A2EF5"
  16. }