Overview
Bulk API endpoints allow performing multiple operations in a single request, reducing overhead and improving performance. Based ondocs/bulk_api.md from the AWX source.
Available Endpoints
Bulk Job Launch
Launch multiple jobs in a single request. AWX creates a workflow job with individual jobs as nodes.Endpoint
Basic Example
string
required
Name for the bulk job (workflow)
array
required
Array of job definitions
integer
Organization to assign to workflow (required for users in multiple orgs)
Job-Level Prompts
inventorycredentials(array)limitjob_typeverbosityjob_tagsskip_tagsextra_varsdiff_modescm_branch
Instance groups are not supported at the node level and will be ignored.
Workflow-Level Prompts
Provide defaults for all jobs:inventory: 2 applies to templates 11, 12, and 13 where inventory is promptable.
Limits
Maximum jobs per request is controlled byBULK_JOB_MAX_LAUNCH setting.
RBAC
Who can bulk launch?- Any authenticated user
- Requires
executeorupdatepermission on each template
- Superusers: Can assign any organization or none
- Single org users: Organization auto-assigned
- Multi-org users: Must specify organization
- System admins and org admins see workflow in job lists
- Regular users see only individual jobs, not the parent workflow
Response
Returns a workflow job:Bulk Host Create
Create multiple hosts in an inventory with one request.Endpoint
Example
integer
required
Inventory ID
array
required
Array of host objects with
name and optional variablesLimits
- Maximum hosts per request:
BULK_HOST_MAX_CREATE(default: 100) - Maximum payload size: 1MB (nginx limit)
Response
Bulk Host Delete
Delete multiple hosts in one request.Endpoint
Example
array
required
Array of host IDs to delete
Limits
- Maximum hosts per request:
BULK_HOST_MAX_DELETE(default: 250) - Maximum payload size: 1MB (nginx limit)
Response
Performance Benefits
Bulk APIs prevent:- Overwhelming AWX with rapid individual requests
- 504 timeout errors from excessive concurrency
- Excessive database queries and connections
- Rate limiting issues
Use Bulk Job Launch
Use Bulk Job Launch
Instead of launching 100 jobs individually, use bulk launch to create a single workflow.
Batch Host Operations
Batch Host Operations
When adding/removing many hosts, use bulk endpoints instead of individual API calls.
Mind the Limits
Mind the Limits
Respect
BULK_*_MAX_* settings to avoid errors. Break large operations into batches.