(Preview) Get Git operation state
get
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/gitRepositories/{gitRepositoryKey}/actions/gitOperationState
(Preview) Returns the current Git worktree status???including in-progress operations or detached HEAD indicators???for the workspace folder.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
gitRepositoryKey(required): string
The Git repository key.
-
workspaceKey(required): string
The key of the Workspace
Query Parameters
-
branchName: string
Expected branch name for the folder context.Default Value:
oracle.doceng.json.BetterJsonNull@5751e53e -
operationName: string
Optional operation the caller intends to perform (for example PULL, PUSH, RESET, CHECKOUT).Default Value:
oracle.doceng.json.BetterJsonNull@13047d3d
Header Parameters
-
opc-request-id: string
Unique 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
Current operation state of the Git repository folder context.
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 : GitOperationState
Type:
objectCurrent git operation state for a repository folder context.
Show Source
-
currentBranch:
string
Current branch name. Empty if detached HEAD.
-
gitFolderPath(required):
string
Folder path used to locate the Git worktree.
-
haveConflicts:
boolean
Indicates if unmerged/conflicted files exist. This does not include file names.
-
headCommitId:
string
Full commit ID of HEAD.
-
isAllowed(required):
boolean
Whether the requested operation is allowed in the current state. If operationName is not provided, this indicates if the repository is in a generally safe state.
-
isBlocking(required):
boolean
Whether the detected state blocks typical write operations.
-
isDetached:
boolean
Whether HEAD is detached.
-
message:
string
Human-readable hint for UI display.
-
state(required):
string
Allowed Values:
[ "CLEAN", "MERGE_IN_PROGRESS", "REBASE_IN_PROGRESS", "PULL_IN_PROGRESS", "DETACHED_HEAD", "UNKNOWN" ]Current Git operation state detected. -
timeChecked:
string(date-time)
Time when the state was computed.
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.