List Deployments for an agent
deployment_history.list(DeploymentHistoryListParams**kwargs) -> DeploymentHistoryListResponse
GET/deployment-history
List deployment history for an agent.
List Deployments for an agent
import os
from agentex import Agentex
client = Agentex(
api_key=os.environ.get("AGENTEX_SDK_API_KEY"), # This is the default and can be omitted
)
deployment_histories = client.deployment_history.list()
print(deployment_histories)[
{
"id": "id",
"agent_id": "agent_id",
"author_email": "author_email",
"author_name": "author_name",
"branch_name": "branch_name",
"build_timestamp": "2019-12-27T18:11:19.117Z",
"commit_hash": "commit_hash",
"deployment_timestamp": "2019-12-27T18:11:19.117Z"
}
]Returns Examples
[
{
"id": "id",
"agent_id": "agent_id",
"author_email": "author_email",
"author_name": "author_name",
"branch_name": "branch_name",
"build_timestamp": "2019-12-27T18:11:19.117Z",
"commit_hash": "commit_hash",
"deployment_timestamp": "2019-12-27T18:11:19.117Z"
}
]