(Preview) Get Git file diff
get
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/gitDiffDetails
(Preview) Returns a local unified diff for a repository-relative file.
contextLines and maxPatchBytes are not currently applied by execution.
Request
Path Parameters
-
aiDataPlatformId(required): string
Minimum Length:
1Maximum Length:500The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance. -
gitRepositoryKey(required): string
Minimum Length:
1Maximum Length:200The opaque repository key, available as GitRepository.key or system:repoKey in the folder's JSON file-metadata HEAD response header when shouldIncludeMetadata=true. Distinct from the async operation resourceName. -
workspaceKey(required): string
Minimum Length:
1Maximum Length:200The key of the Workspace
Query Parameters
-
branchName(required): string
Minimum Length:
1Maximum Length:400Expected branch name for the folder context. -
contextLines: integer(int32)
Minimum Value:
0Maximum Value:100Requested diff context lines. Current execution does not apply this value.Default Value:3 -
gitFilePath(required): string
Minimum Length:
1Maximum Length:10000File path relative to repository root. -
gitFolderPath(required): string
Minimum Length:
1Maximum Length:1000Workspace path of the Git folder, distinct from repository-relative file paths. -
maxPatchBytes: integer(int32)
Minimum Value:
1Maximum Value:1048576Requested maximum patch bytes. Current execution does not enforce this value.Default Value:262144
Header Parameters
-
opc-request-id: string
Maximum Length:
255Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Response
Supported Media Types
- application/json
200 Response
Successful operation. Git diff patch for the requested file is retrieved.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : GitDiffDetail
Type:
objectUnified diff content and status information for a repository-relative file.
Show Source
-
gitFilePath(required):
string
File path relative to repository root.
-
isBinary:
boolean
Indicates whether the file is binary.
-
isConflict:
boolean
Indicates whether the file is currently in a conflicted state.
-
isTruncated:
boolean
Whether returned diff output is marked truncated; this does not guarantee enforcement of the requested maxPatchBytes.
-
patch:
string
Local unified diff patch text. Binary files may have no textual patch.
-
truncatedReason:
string
Allowed Values:
[ "MAX_PATCH_BYTES", "BINARY", "TOO_LARGE", "UNKNOWN" ]Indicates the reason for the truncated diff to be returned.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.