read
write
) Details of the Git Full sync Configuration
Bad Request
Internal Server Error
Returns the saved Configuration details for Git Full Sync.
{- "branch": "string",
- "repoIdentifier": "string",
- "rootFolder": "string",
- "isNewBranch": true,
- "baseBranch": "string",
- "createPullRequest": true,
- "targetBranch": "string",
- "prTitle": "string",
- "newBranch": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Bad Request
Internal Server Error
Returns the saved Git Full Sync Configuration for the provided scope.
curl -i -X GET \ 'https://app.harness.io/gateway/ng/api/git-full-sync/config?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Entity Type and Sync Status
Bad Request
Internal Server Error
Returns the List of Files for Git Full sync.
{- "entityTypes": [
- "Projects"
], - "syncStatus": "QUEUED"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Bad Request
Internal Server Error
Successfully Triggered Full Sync.
curl -i -X POST \ 'https://app.harness.io/gateway/ng/api/git-full-sync?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Details of the Git Full sync Configuration
Bad Request
Internal Server Error
Returns the updated Git Full Sync Configuration for the provided scope.
{- "branch": "string",
- "repoIdentifier": "string",
- "rootFolder": "string",
- "isNewBranch": true,
- "baseBranch": "string",
- "createPullRequest": true,
- "targetBranch": "string",
- "prTitle": "string",
- "newBranch": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}