3. Registering a Customer Git Repository

You must now register the customer Git repository that contains the Open Integration runtime files. SCM stores reusable Git connection metadata and returns a generated git_id that you can use in subsequent Open Integration deployment requests. You can register a customer Git repository using the /git_repositoriesAPI:

  • Method:POST
  • Endpoint:/git_repositories
  • Description: Validates access to the customer Git repository by using git ls-remote and stores the repository metadata under /home/opc/siebel/git/repositories.
  • Supported options:
    Option Description Required Parameters
    HTTPS Git Use a repository that authenticates with a user name and access token. git_protocol_type, git_url, git_user, git_accesstoken
    HTTPS Git with self-signed CA Use a repository that is secured by a private or self-signed certificate authority (CA). HTTPS Git parameters plus git_selfsigned_cacert
    SSH Git Use a repository that authenticates with an SSH private key. git_protocol_type, git_url, git_ssh_private_key
  • Sample API call request for HTTPS:
    {
        "git": {
            "git_protocol_type": "https",
            "git_url": "https://<git-host>/<group>/<repo>.git",
            "git_user": "<git-user>",
            "git_accesstoken": "<git-token>",
            "git_selfsigned_cacert": ""
        }
    }
  • Sample API call request for SSH:
    {
        "git": {
            "git_protocol_type": "ssh",
            "git_url": "git@<git-host>:<group>/<repo>.git",
            "git_ssh_private_key": "/home/opc/.ssh/openint_git_key"
        }
    }
  • Sample response:
    {
        "data": {
            "git_id": "<git_id>",
            "git_url": "https://<git-host>/<group>/<repo>.git",
            "git_protocol_type": "https"
        },
        "message": "Git repository registered successfully.",
        "status": "success"
    }