v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns information about a repository branch, including its name and the last commit ID.

post/#X-Amz-Target=CodeCommit_20150413.GetBranch

Headers

X-Amz-Target'CodeCommit_20150413.GetBranch' required

Request body

repositoryNamestring

The name of the repository that contains the branch for which you want to retrieve information.

branchNamestring

The name of the branch for which you want to retrieve information.

Response

Success