Create a pull job.
URI: /sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull
Operation Type: CRUD
**HTTP Method:**POST
Header |
Required |
Values |
---|---|---|
Accept |
no |
application/json application/xml |
Content-Type |
no |
application/json application/xml |
x-csrf-token |
yes |
Value of x-csrf-token |
Parameter |
Required |
Data Type |
Description |
Parameter Type |
---|---|---|---|---|
sc_name |
yes |
string |
name of the software component |
Request body |
commit_id |
no |
string |
commit ID |
Request body |
POST/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull HTTP/1.1 Host: host.com Authentication: basicAuthentication X-csrf-token: xCsrfToken Content-Type: application/json Accept: application/json { “sc_name” : “/DMO/GIT_REPOSITORY” }
Code |
Reason |
Description |
---|---|---|
201 |
Created |
Created a pull job |
400 |
Bad Request |
Could not read the pull job. Please check the parameters. |
{ "d": { "__metadata": { "id": "https://host.com/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull(guid’UUID’)", "uri": "https://host.com/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull(guid’UUID’)", "type": "cds_sd_a4c_a2g_gha_sc_web_api.PullType" } , "uuid": "UUID ", "sc_name": "/DMO/GIT_REPOSITORY ", "namespace": "", "status": "R", "status_descr": "Running", "start_time": "/Date(1571227437000+0000)/", "change_time": "/Date(1571227472000+0000)/", "criticality": 2, "user_name": "CC0000000001", "to_Execution_log": { "__deferred": { "uri": "https://host.com/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull(guid’UUID’)/to_Execution_log" } } , "to_Transport_log": { "__deferred": { "uri": "https://host.com/sap/opu/odata/sap/MANAGE_GIT_REPOSITORY/Pull(guid’UUID’)/to_Transport_log" } } } }