Redeploy an Agent.
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/agents/{agentKey}/deployments/actions/redeploy
Redeploys an Agent.
Request
Path Parameters
-
agentKey(required): string
The UUID of the Agent
-
aiDataPlatformId(required): string
Minimum Length:
1Maximum Length:500The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance. -
workspaceKey(required): string
Minimum Length:
1Maximum Length:200The key of the Workspace
Header Parameters
-
if-match: string
Maximum Length:
1000For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. -
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. -
opc-retry-token: string
Maximum Length:
64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected.
Details for updating an Agent deployment asynchronously.
Root Schema : UpdateAgentDeploymentDetails
Type:
objectDetails required to update the deployment of an agent.
Show Source
-
agentComputeKey:
string
The Agent Compute Key where client can run or test the agent.
-
agentKey(required):
string
The Agent key for which the session is started.
-
description:
string
deployment description.
-
displayName:
string
Display name.
-
oAuthConfig:
object OAuthConfiguration
OAuth configuration for an Agent.
Nested Schema : OAuthConfiguration
Type:
objectOAuth configuration for an Agent.
Show Source
-
audienceClaim:
array audienceClaim
List of Audience Claim of OAuthConfiguration
-
issuerClaim:
string
Issuer Claim of OAuthConfiguration
-
jwksUri:
string
JWKS URI of OAuthConfiguration
Response
Supported Media Types
- application/json
201 Response
Agent redeployment is created.
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.
-
content-location: string(uri-reference)
Same as location.
-
etag: string
For optimistic concurrency control. See `if-match`.
-
location: string(uri-reference)
URI for the newly created Agent deployment.
-
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 : AgentDeployment
Type:
objectAgent deployment details.
Show Source
-
agentCardUrl:
string
AgentCard base URL.
-
agentComputeKey:
string
The Agent Compute Key where client can run or test the agent.
-
agentKey(required):
string
The Agent key for which the session is started.
-
createdBy(required):
string
Minimum Length:
1Maximum Length:255The OCID of the user/principal who created the agent session. -
deploymentType(required):
string
Allowed Values:
[ "TEST", "PROD", "CODE" ]Type of an agent deployment. -
deploymentVersion(required):
string
Version of agent deployed on compute.
-
description:
string
deployment description.
-
displayName(required):
string
Display name.
-
endpointUrl(required):
string
The endpointUrl where the client should connect to communicate with the agent.
-
key(required):
string
Identifier, generally UUID.
-
lifecycleState(required):
string
Allowed Values:
[ "CREATING", "ACTIVE", "INACTIVE", "FAILED", "DELETED" ]LifecycleState of an Agent Session or Deployment. -
oAuthConfig:
object OAuthConfiguration
OAuth configuration for an Agent.
-
sessionRetentionConfig:
object SessionRetentionConfiguration
Session data retention configuration for an Agent.
-
timeCreated(required):
string(date-time)
The date and time the Agent session was created.
-
timeUpdated:
string(date-time)
The date and time the agent deployment was updated.
-
updatedBy:
string
Minimum Length:
1Maximum Length:255The OCID of the user/principal who re-deployed the existing agent deployment.
Nested Schema : OAuthConfiguration
Type:
objectOAuth configuration for an Agent.
Show Source
-
audienceClaim:
array audienceClaim
List of Audience Claim of OAuthConfiguration
-
issuerClaim:
string
Issuer Claim of OAuthConfiguration
-
jwksUri:
string
JWKS URI of OAuthConfiguration
Nested Schema : SessionRetentionConfiguration
Type:
objectSession data retention configuration for an Agent.
Show Source
-
retentionPeriodInDays:
integer
Minimum Value:
1No. of days session data will be kept -
sessionSizeLimit:
integer
Minimum Value:
1Max storage allocated to session data (in MB). -
threadCountLimit:
integer
Minimum Value:
1Maximum no. of user prompt and agent response pairs per session
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.
412 Response
Precondition Failed (One or more conditions in request failed).
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.