(Preview) Roll a model deployment back
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/mlops/api/2.0/model-deployments/roll-back
(Preview) Rolls an active model deployment back to a lower model version of the same registered model.
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.
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.
Details for the model deployment roll back.
Root Schema : RollBackModelDeploymentDetails
Type:
objectThe data to roll a model deployment back to a lower model version of the same registered model. Exactly one deployment target may be provided; its model_version must be lower than the version currently configured on the deployment.
Show Source
-
deployment_id(required):
string
Minimum Length:
32Maximum Length:32Pattern:^[0-9a-f]{32}$ID of the deployment to roll back. -
deployment_targets(required):
array deployment_targets
Minimum Number of Items:
1Maximum Number of Items:1The single target model version to roll back to (exactly one, at 100% traffic). -
message:
string
Maximum Length:
2000Optional deployment roll-back message. At most 2000 characters and 2000 UTF-8 bytes.
Nested Schema : deployment_targets
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
1The single target model version to roll back to (exactly one, at 100% traffic).
Show Source
-
Array of:
object DeploymentTarget
A model version targeted by a deployment and its traffic share.
Nested Schema : DeploymentTarget
Type:
objectA model version targeted by a deployment and its traffic share.
Show Source
-
model_version(required):
string
Minimum Length:
1Maximum Length:30Version number of the model version. -
traffic_percentage(required):
integer
Minimum Value:
1Maximum Value:100Percentage of deployment traffic routed to this model version.
Response
Supported Media Types
- application/json
202 Response
Accepted. The model deployment roll-back is tracked as an asynchronous operation.
Headers
-
aidp-async-operation-key: string
The key of the asynchronous operations associated with an AI Data Platform instance. Use GetAsyncOperation with this key to track the status of the request.
-
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.
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.
409 Response
Conflict. Request conflicts with the current state of the resource.
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.