JOC API

Version 2.6.5

Download RAML
JOC API
/inventory/repository/git/credentials/add
POST

Adds git credentials for the current JOC account in dependence to the JOC Security Levels.


Parameters in the POST body schema

Name Type Description Example Default
credentials required, array Git credentials to store.
[{
"gitAccount" : "myExampleGitAccount",
"username" : "sp",
"email" : "sp@test.example.com",
"keyfilePath" : "/example/path/to/keyfile",
"gitServer" : "my-example-remote.git-host.net"
}]
gitAccount required, string Account name for the access to the Git Server. "gitAccount" : "myExampleGitAccount"
username required, string Username for the Git Account to be used fo author entries of commits. "username" : "sp"
email required, string Email address for the Git Account to be used fo author entries of commits. "email" : "sp@test.example.com"
password required anyOf(password, personalAccessToken, keyfilePath), string Password to use with the Git account for http(s) access to the Git Server. "password" : "myExampleGitPasswd"
personalAccessToken required anyOf(password, personalAccessToken, keyfilePath), string Personal Access Token (PAT) to use with the Git account for http(s) access to the Git Server. "personalAccessToken" : "ExaM29pl4evLx7ebhWzo"
keyfilePath required anyOf(password, personalAccessToken, keyfilePath), string Path to the keyfile to use for SSH access to the Git Server. "keyfilePath" : "/example/path/to/keyfile"
gitServer required, string The hostname(:port) of the Git Server. "gitServer" : "my-example-remote.git-host.net"
auditLog optional, object Object that contains comment, timeSpent and ticketLink.
{
  "comment": "Operational requirement!",
  "timeSpent": 2
}
comment optional, string Field in auditLog to comment this action, e.g. the reason.
timeSpent optional, integer Field in auditLog to enter the time spent in minutes.
ticketLink optional, string Field in auditLog to enter a link to a corresponding ticket.