Updating the GitCode pipeline action
Function
This API is used to update the GitCode pipeline action.
Calling Method
For details, see Calling APIs.
URI
POST /v6/{domain_id}/api/pac/pipelines/actions/yml-register
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domain_id |
Yes |
String |
Definition: Tenant ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
yaml_file_list |
No |
Array of ActionsWorkflowYamlChangedDTO objects |
Definition: Updated action details. Value range: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
No |
String |
Definition: Operation type. Constraints: N/A Value range: N/A Default value: N/A |
https_url |
No |
String |
Definition: Code source address. Constraints: N/A Value range: N/A Default value: N/A |
repo_id |
No |
String |
Definition: Repo code repository ID. Constraints: N/A Value range: N/A Default value: N/A |
old_file_path |
No |
String |
Definition: Path of the old file. Constraints: N/A Value range: N/A Default value: N/A |
new_file_path |
No |
String |
Definition: Path of the new file. Constraints: N/A Value range: N/A Default value: N/A |
file_content |
No |
String |
Definition: File details. Constraints: N/A Value range: N/A Default value: N/A |
encoding |
No |
String |
Definition: File code. Constraints: N/A Value range: N/A Default value: N/A |
default_branch |
No |
String |
Definition: Default branch of the code source. Constraints: N/A Value range: N/A Default value: N/A |
file_commit_id |
No |
String |
Definition: File submission record ID. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
success |
Boolean |
Definition: Whether the calling is successful. Value range:
|
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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