Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add SnapLogic IP addresses to the network whitelist for access to the GHES server as described in Adding the SnapLogic Platform to Your Allow List.

  2. Make sure the following GHES URLs are accessible from the SnapLogic Control Plane IP addresses, they will use the header: Accept: application/vnd.github.v3+json.

Usage

Endpoint URL

List app installations accessible to the user access token

/api/v3/user/installations

List repositories accessible to the user access token

/api/v3/user/installations/1/repositories

Get a single reference

/api/v3/repos/OWNER/REPO/git/ref/REF

Pull

/api/v3/repos/OWNER/REPO/pulls

Create Commit

/api/v3/repos/OWNER/REPO/git/commits 

Get Commit

/api/v3/repos/OWNER/REPO/git/commits/COMMIT_SHA

Get Repo Contents

/api/v3/repos/OWNER/REPO/contents/PATH

Get a Blob

/api/v3/repos/OWNER/REPO/git/blobs/FILE_SHA

Create a blob

/api/v3/repos/OWNER/REPO/git/blobs

List Repo Tags

/api/v3/repos/OWNER/REPO/tags

Create New File

/api/v3/repos/OWNER/REPO/contents/PATH 

Create Git Tree

/api/v3/repos/OWNER/REPO/git/tree

Anchor
snaplogic
snaplogic
Configuring a SnapLogic Org to Work with GHES

...