Agent Proxy Deployments¶
Agent proxy deployment operations
Create and deploy a new deployment for an Agent proxy¶
POST /agent-proxies/{agentProxyId}/deployments
Code samples
curl -X POST https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d @payload.json
Creates the immutable deployment record synchronously and begins gateway processing.
Each deployment targets a single gateway. The 201 body reports the transitional
DEPLOYING status; poll the Location URI for the eventual status and statusReason.
This is not a completed gateway deployment. Access is validated against the
organization in the JWT token.
The gateway reports the outcome asynchronously:
DEPLOYEDmeans the gateway accepted, validated and stored the Agent. It does not confirm that the gateway is serving the Agent's routes: route application happens after the acknowledgement, and a policy engine that cannot resolve A2A routes is not detected.FAILEDcarries astatusReasoncode:AGENT_VALIDATION_FAILED(the gateway rejected the definition),AGENT_CONFIG_RENDER_FAILED(a template or secret reference could not be resolved),AGENT_CONFLICT(the gateway already holds another Agent with the same handle, or the same name and version),AGENT_ARTIFACT_FETCH_FAILED(the gateway could not retrieve the deployment artifact), orGATEWAY_PROCESSING_ERROR.- The control plane refuses a gateway that reports an LTS release without the Agent kind with
400 DEPLOYMENT_KIND_UNSUPPORTED_BY_GATEWAYbefore anything is stored. A gateway that reports no version is taken to be a current build; if it still lacks Agent support it never acknowledges the deployment, which endsFAILEDwithDEPLOYMENT_TIMEOUT.
Payload
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| body | body | DeployRequest | true | Deployment request with gateway ID, base reference, and metadata |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
Example responses
201 Response
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYING",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
400 Response
{
"status": "error",
"code": "VALIDATION_FAILED",
"message": "The request failed validation.",
"errors": [
{
"field": "<name of the offending field>",
"message": "<reason this field failed validation>"
}
]
}
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
409 Response
{
"status": "error",
"code": "CONFLICT",
"message": "The request conflicts with the current state of the resource."
}
415 Response
{
"status": "error",
"code": "UNSUPPORTED_MEDIA_TYPE",
"message": "This operation accepts application/json only."
}
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Immutable deployment record created; gateway processing is pending. | DeploymentResponse |
| 400 | Bad Request | Bad Request. Invalid request or validation error. | Error |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 409 | Conflict | Conflict. The request conflicts with the current state of the resource. | Error |
| 415 | Unsupported Media Type | Unsupported Media Type. The request body media type is not supported by this operation. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Response Headers¶
| Status | Header | Type | Format | Description |
|---|---|---|---|---|
| 201 | Location | string | uri | URL of the newly created resource. |
Get deployments for an Agent proxy¶
GET /agent-proxies/{agentProxyId}/deployments
Code samples
curl -X GET https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'
Retrieves the Agent proxy's deployment records, optionally filtered by gateway handle and deployment status. Access is validated against the organization in the JWT token.
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| gatewayId | query | string | false | Gateway ID consisting of the handle (unique slug identifier) of the Gateway to filter status by. |
| status | query | string | false | Filter deployments by status (DEPLOYED, UNDEPLOYED, DEPLOYING, UNDEPLOYING, FAILED, or ARCHIVED) |
| limit | query | integer | false | Maximum number of items to return per page. |
| offset | query | integer | false | Zero-based index of the first item to return. |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
gatewayId: Gateway ID consisting of the handle (unique slug identifier) of the Gateway to filter status by.
Enumerated Values
| Parameter | Value |
|---|---|
| status | DEPLOYED |
| status | UNDEPLOYED |
| status | DEPLOYING |
| status | UNDEPLOYING |
| status | FAILED |
| status | ARCHIVED |
Example responses
200 Response
{
"count": 0,
"list": [
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYED",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"statusReason": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 10,
"offset": 0,
"limit": 10
}
}
400 Response
{
"status": "error",
"code": "VALIDATION_FAILED",
"message": "The request failed validation.",
"errors": [
{
"field": "<name of the offending field>",
"message": "<reason this field failed validation>"
}
]
}
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Deployments retrieved successfully | DeploymentListResponse |
| 400 | Bad Request | Bad Request. Invalid request or validation error. | Error |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Get Agent proxy deployment by ID¶
GET /agent-proxies/{agentProxyId}/deployments/{deploymentId}
Code samples
curl -X GET https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments/{deploymentId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'
Returns the deployment's current lifecycle state, gateway association, timestamps and,
on failure, its statusReason. Access is validated against the organization in the
JWT token.
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| deploymentId | path | string(uuid) | true | The UUID of the deployment |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
Example responses
200 Response
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYED",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"statusReason": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Deployment metadata retrieved successfully | DeploymentResponse |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Delete an Agent proxy deployment¶
DELETE /agent-proxies/{agentProxyId}/deployments/{deploymentId}
Code samples
curl -X DELETE https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments/{deploymentId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'
Deletes the deployment record. Permitted only when the deployment is in UNDEPLOYED
status; any other state is a 409. Access is validated against the organization in the
JWT token.
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| deploymentId | path | string(uuid) | true | The UUID of the deployment |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
Example responses
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
409 Response
{
"status": "error",
"code": "DEPLOYMENT_ACTIVE",
"message": "Cannot delete an active deployment - undeploy it first."
}
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Deployment deleted successfully | None |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 409 | Conflict | Conflict. The deployment is still active and must be undeployed before deletion. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Begin undeployment of an Agent proxy deployment¶
POST /agent-proxies/{agentProxyId}/deployments/{deploymentId}/undeploy
Code samples
curl -X POST https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments/{deploymentId}/undeploy?gatewayId={gatewayId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'
Accepts an undeployment request and returns the transitional deployment state
(UNDEPLOYING). Poll the Location URI for the terminal status (UNDEPLOYED or
FAILED) and statusReason; never retry the POST merely because it returned a
transitional state. The deployment artifact remains in the system and can be restored
later.
The gatewayId query parameter is validated against the deployment's bound gateway to
prevent unintended operations. Access is validated against the organization in the JWT
token.
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| deploymentId | path | string(uuid) | true | The UUID of the deployment |
| gatewayId | query | string | true | Gateway ID consisting of the handle (unique slug identifier) of the Gateway bound to the deployment. Required, and validated against the deployment's bound gateway. |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
gatewayId: Gateway ID consisting of the handle (unique slug identifier) of the Gateway bound to the deployment. Required, and validated against the deployment's bound gateway.
Example responses
202 Response
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "UNDEPLOYING",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
400 Response
{
"status": "error",
"code": "VALIDATION_FAILED",
"message": "The request failed validation.",
"errors": [
{
"field": "<name of the offending field>",
"message": "<reason this field failed validation>"
}
]
}
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
409 Response
{
"status": "error",
"code": "CONFLICT",
"message": "The request conflicts with the current state of the resource."
}
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Undeployment accepted. Returns the deployment with the transitional status UNDEPLOYING; poll the Location for the final status. | DeploymentResponse |
| 400 | Bad Request | Bad Request. Invalid request or validation error. | Error |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 409 | Conflict | Conflict. The request conflicts with the current state of the resource. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Response Headers¶
| Status | Header | Type | Format | Description |
|---|---|---|---|---|
| 202 | Location | string | uri | URL of the newly created resource. |
Begin restoration of a previous Agent proxy deployment¶
POST /agent-proxies/{agentProxyId}/deployments/{deploymentId}/restore
Code samples
curl -X POST https://localhost:9243/api/v0.9/agent-proxies/{agentProxyId}/deployments/{deploymentId}/restore?gatewayId={gatewayId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'
Accepts a restoration request for a previous deployment (ARCHIVED or UNDEPLOYED)
and returns the transitional deployment state (DEPLOYING). Poll the Location URI
for the terminal status and statusReason. The target deployment must not already be
in DEPLOYED status. The gateway acknowledges a restore as a deployment, so the
terminal statuses and reason codes are those described for
createAgentProxyDeployment.
The gatewayId query parameter is validated against the deployment's bound gateway to
prevent unintended operations. Access is validated against the organization in the JWT
token.
Authentication¶
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agentProxyId | path | string | true | Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy. |
| deploymentId | path | string(uuid) | true | The UUID of the deployment |
| gatewayId | query | string | true | Gateway ID consisting of the handle (unique slug identifier) of the Gateway bound to the deployment. Required, and validated against the deployment's bound gateway. |
Detailed descriptions
agentProxyId: Agent Proxy ID consisting of the handle (unique slug identifier) of the Agent proxy.
gatewayId: Gateway ID consisting of the handle (unique slug identifier) of the Gateway bound to the deployment. Required, and validated against the deployment's bound gateway.
Example responses
202 Response
{
"deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",
"name": "v1.0-production",
"gatewayId": "prod-gateway-01",
"status": "DEPLOYING",
"baseDeploymentId": "be6d8692-b9de-400e-b6c1-14db50154e27",
"metadata": {},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
400 Response
{
"status": "error",
"code": "VALIDATION_FAILED",
"message": "The request failed validation.",
"errors": [
{
"field": "<name of the offending field>",
"message": "<reason this field failed validation>"
}
]
}
401 Response
{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Authorization header is required, or the token is invalid or expired."
}
404 Response
409 Response
{
"status": "error",
"code": "CONFLICT",
"message": "The request conflicts with the current state of the resource."
}
500 Response
{
"status": "error",
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred.",
"trackingId": "4f1c6f2e-8a4b-4c93-b1de-9f2f6f0c2a11"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 202 | Accepted | Restoration accepted. Returns the deployment with the transitional status DEPLOYING; poll the Location for the final status. | DeploymentResponse |
| 400 | Bad Request | Bad Request. Invalid request or validation error. | Error |
| 401 | Unauthorized | Unauthorized. Authentication credentials are missing or invalid. | Error |
| 404 | Not Found | Not Found. The specified resource does not exist. | Error |
| 409 | Conflict | Conflict. The request conflicts with the current state of the resource. | Error |
| 500 | Internal Server Error | Internal Server Error. | Error |
Response Headers¶
| Status | Header | Type | Format | Description |
|---|---|---|---|---|
| 202 | Location | string | uri | URL of the newly created resource. |