Adding a Trigger

Last updated: 2020-06-04 17:02:16


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new TKE API 3.0 which is standardized and faster.

    1. API Description

    This API (AddUpdateServiceTrigger) is used to add a trigger.
    Domain name for API request:

    2. Input Parameters

    The following request parameter list only provides API request parameters. Other parameters can be found in Common Request Parameters.

    Parameter Name Description Type Required
    triggerName Trigger name String Yes
    reponame Name of the repository bound with the trigger String Yes
    invokeMethod Trigger method String Yes
    invokeExpr The expression of the trigger method String No
    serviceName Service name String Yes
    clusterId Cluster ID String Yes
    namespace Namespace String Yes
    containerName Container name String Yes
    clusterRegion Region of the cluster Int Yes

    3. Output Parameters

    Parameter Name Description Type
    code Common error code. 0: Successful; other values: Failed. Int
    codeDesc Error code at business side. For a successful operation, "Success" is returned. In case of an error, a message describing the reason for the error is returned. String
    message Module error message description depending on API String

    4. Example


      &other common parameters


        "code": 0,
        "message": "", 
        "codeDesc": "Success"

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback