Deployment Runners
List Org Agent Pool
/api/orgs/{orgName}/agent-poolsReturns all agent pools configured for an organization. Agent pools enable self-hosted deployment agents, allowing organizations to run Pulumi Deployments on their own infrastructure for accessing private networks, meeting compliance requirements, or using custom execution environments. Each pool in the response includes its ID, name, and configuration details.
Request Parameters
orgNamestring path requiredThe organization name
Responses
- The list of agent pools
- ↳
createdinteger requiredUnix epoch timestamp (seconds) when the agent pool was created. - ↳
idstring requiredUnique identifier for this agent pool. - ↳
namestring requiredHuman-readable name for this agent pool. - ↳
descriptionstring requiredUser-provided description of the agent pool’s purpose. - ↳
lastSeeninteger requiredUnix epoch timestamp (seconds) when any agent in the pool last reported a heartbeat. - ↳
statusenum requiredAggregate status of agents in the pool (e.g. idle, busy, offline).Values:online,offline - ↳
lastDeploymentinteger optionalUnix epoch timestamp (seconds) of the most recent deployment executed by this pool. Null if no deployments have run. - ↳
isDefaultboolean requiredWhether this pool is the organization’s default workflow runner pool. defaultAgentPoolIDstring optionalThe ID of the organization’s default agent pool. Omitted if the organization uses the Pulumi Hosted Pool.
Create Org Agent Pool
/api/orgs/{orgName}/agent-poolsCreates a new agent pool for an organization. Agent pools enable self-hosted deployment agents, allowing organizations to run Pulumi Deployments on their own infrastructure rather than Pulumi-managed infrastructure. This is useful for accessing private networks, meeting compliance requirements, or using custom execution environments. The response includes an access token (agent pool secret) that self-hosted agents use to authenticate when polling for deployment work. This token is only returned once at creation time and cannot be retrieved later.
Request Parameters
orgNamestring path requiredThe organization name
Request Body
namestring requiredThe namedescriptionstring requiredThe description
Responses
idstring requiredThe unique identifiertokenValuestring requiredThe token value
Get Agent Pool
/api/orgs/{orgName}/agent-pools/{poolId}Returns the details of a specific agent pool, including its name, ID, creation timestamp, and configuration. Agent pools enable self-hosted deployment agents that run Pulumi Deployments on organization-managed infrastructure. The pool ID can be referenced in stack deployment settings to route deployments to self-hosted agents instead of Pulumi-managed infrastructure.
Request Parameters
orgNamestring path requiredThe organization namepoolIdstring path requiredThe agent pool identifier
Responses
createdinteger requiredThe creation timestampidstring requiredThe unique identifiernamestring requiredThe namedescriptionstring requiredThe description- The agents
- ↳
versionstring requiredThe version of the deployment agent. - ↳
platformstring requiredThe platform the agent is running on. - ↳
hostnamestring requiredThe hostname of the machine running the agent. - ↳
ipstring requiredThe IP address of the agent. - ↳
pidstring requiredThe process ID of the agent. - ↳
lastSeeninteger requiredThe Unix timestamp when the agent was last seen. - ↳
statusenum requiredThe current status of the deployment agent.Values:online,offline
Patch Org Agent Pool
/api/orgs/{orgName}/agent-pools/{poolId}Updates an existing agent pool’s configuration for an organization. This can be used to modify the pool’s name or other configurable properties. The request body uses the same format as CreateOrgAgentPool. Only provided fields are updated; omitted fields remain unchanged.
Request Parameters
orgNamestring path requiredThe organization namepoolIdstring path requiredThe agent pool identifier
Request Body
namestring requiredThe namedescriptionstring requiredThe description
Responses
namestring requiredThe updated name of the agent pool after the patch operation.descriptionstring requiredThe updated description of the agent pool after the patch operation.
Delete Org Agent Pool
/api/orgs/{orgName}/agent-pools/{poolId}Deletes an agent pool from an organization. If the agent pool is currently referenced by any stack’s deployment settings, the deletion will fail with a 400 error unless the ‘force’ query parameter is set to true. Force-deleting a pool that is in use will cause affected stacks to fall back to Pulumi-managed infrastructure for future deployments. Returns 204 No Content on success.
Request Parameters
orgNamestring path requiredThe organization namepoolIdstring path requiredThe agent pool identifierforceboolean query optionalForce the operation even if the pool is in use
Responses
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.