Help Center/ SoftWare Repository for Container/ API Reference (Basic Edition)/ APIs/ Trigger Management/ Obtaining the Trigger List of a Specific Image Repository
Updated on 2026-09-23 GMT+08:00

Obtaining the Trigger List of a Specific Image Repository

Function

Obtain the trigger list of a specific image repository.

Constraints

None

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    swr:repo:listTriggers

    List

    repo *

    -

    -

    -

URI

GET /v2/manage/namespaces/{namespace}/repos/{repository}/triggers

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

namespace

Yes

String

Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.

repository

Yes

String

Image repository name. The name contains 1 to 128 characters, starting and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), slashes (/), underscores (_), and hyphens (-) are allowed. Periods, slashes, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. If the parameter value contains a slash (/), replace it with a dollar sign ($) before sending the request.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Possible values:

application/json;charset=utf-8

application/json

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of Trigger objects

List of triggers

Table 4 Trigger

Parameter

Type

Description

action

String

Action to trigger. The value is update.

app_type

String

Workload type.

Options:

  • deployments: Deployment

  • statefulsets: StatefulSet

application

String

App name

cluster_id

String

Cluster ID. When trigger_mode is set to cci, leave this parameter blank.

cluster_name

String

Cluster name. When trigger_mode is set to cci, leave this parameter blank.

cluster_ns

String

Namespace where the application is located.

condition

String

Trigger condition. If type is set to all, the value is .*. If type is set to tag, the value is a tag name. If type is set to regular, the value is a regular expression.

container

String

Name of the container to be updated. By default, all containers using this image are updated.

created_at

String

Creation time

creator_name

String

Creator

enable

String

Valid or not

name

String

Trigger name

trigger_history

Array of TriggerHistories objects

Trigger history

trigger_mode

String

Trigger type. The value can be cce or cci.

trigger_type

String

Triggering condition.

Options:

  • all: triggered when any image tags are generated or updated

  • tag: triggered when a specific image tag is generated or updated

  • regular: triggered when an image tag that matches the regular expression is generated or updated

Table 5 TriggerHistories

Parameter

Type

Description

action

String

Action to trigger. The value is update.

app_type

String

Workload type.

Options:

  • deployments: Deployment

  • statefulsets: StatefulSet

application

String

App name

cluster_id

String

Cluster ID. When trigger_mode is set to cci, leave this parameter blank.

cluster_name

String

Cluster name. When trigger_mode is set to cci, leave this parameter blank.

cluster_ns

String

Namespace where the application is located.

condition

String

Trigger condition. If type is set to all, the value is .*. If type is set to tag, the value is a tag name. If type is set to regular, the value is a regular expression.

container

String

Name of the container to be updated. By default, all containers using this image are updated.

created_at

String

Creation time

creator_name

String

Creator

detail

String

Details

result

String

Update result. The value can be success or failed.

tag

String

Triggered version number

Example Requests

GET https://{endpoint}/v2/manage/namespaces/{namespace}/repos/{repository}/triggers

Example Responses

Status code: 200

[ {
  "action" : "update",
  "app_type" : "deployments",
  "application" : "abcde",
  "cluster_id" : "******************",
  "cluster_name" : "test123",
  "cluster_ns" : "default",
  "condition" : ".*",
  "container" : "",
  "created_at" : "2020-04-16T02:04:55.922236Z",
  "creator_name" : "************",
  "enable" : "true",
  "name" : "test1",
  "trigger_history" : null,
  "trigger_mode" : "cce",
  "trigger_type" : "all"
} ]

Status Codes

Status Code

Description

200

The query succeeded.

400

A request error occurred.

401

Authentication failed.

404

The organization or the repository does not exist.

500

An internal error occurred.

Error Codes

See Error Codes.