Updating the Third-Party Plug-in List of a Specified ID
Function
This API is used to update the third-party plug-in list with a specified ID.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
| codeartscheck:task:update | Write | task * | - | - | - |
| - | codeartscheck:ProjectId |
URI
PUT /v2/plugins
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | String | Template ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| [items] | No | Array of ThirdPlugin objects | Definition Third-party tool list. Range N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| command | No | String | Definition: Command to be executed. Value range: 1 to 1,024 characters. |
| id | No | String | Definition: Configuration template ID. The configuration template ID is required for modifying the configuration information. Each CodeArts Check task and its branch tasks have the same unique configuration template ID. Value range: 1 to 128 characters. |
| pluginName | No | String | Definition: Third-party plug-in name. Value range: 1 to 128 characters. |
| reportPath | No | String | Definition: Report path specified by the third-party plug-in. Value range: 1 to 1,024 characters. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | String | Definition: Successful response. Value range: OK |
Example Requests
Update the third-party plug-in list whose ID is 897acf5exxx48a5013cd.
PUT https://{endpoint}/v2/plugins?id=897acf5exxx48a5013cd Example Responses
Status code: 200
Third-party plug-in configuration.
{
"result" : "success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Third-party plug-in configuration. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot