Connections
Connections represent the data-source credentials Alteryx One uses to run workflows. You can list, create, update, delete, and inspect them from the CLI. Mutating commands are dry-run by default — add --apply to commit.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx one connections list |
List all connections |
ayx one connections count |
Count connections |
ayx one connections detail |
Inspect a single connection |
ayx one connections status |
Check connection health status |
ayx one connections dry-run |
Validate a create payload without writing |
ayx one connections create |
Create a connection from a JSON payload |
ayx one connections update |
Update a connection from a JSON payload |
ayx one connections delete |
Delete a connection |
Listing connections
Section titled “Listing connections”# All connections (paginated — first page)ayx one connections list
# All connections, all pagesayx one connections list --all
# Scoped to a specific Alteryx One profileayx one connections list --profile <profile-id>
# Limit results per pageayx one connections list --limit 25
# Machine-readable outputayx --output json one connections list --allThe --all flag follows pagination automatically and returns every record. For large environments pair it with --output json and pipe into jq.
Inspecting a connection
Section titled “Inspecting a connection”# Full detailayx one connections detail <id>
# Health status onlyayx one connections status <id>detail returns the full connection record including type, owner, and configuration keys. status returns a lighter response focused on whether the connection can reach its target.
Validating a payload before creating
Section titled “Validating a payload before creating”dry-run sends the request body through the same validation path as create but never writes anything. Use it to catch schema errors before committing.
ayx one connections dry-run --body '{"name":"My DB","type":"SQLServer","...":{}}'Creating a connection
Section titled “Creating a connection”# Dry-run (default — nothing is written)ayx one connections create --body '{"name":"My DB","type":"SQLServer","...":{}}'
# Commitayx one connections create --body '{"name":"My DB","type":"SQLServer","...":"{}"}' --applyThe --body value is a JSON string. For larger payloads use a file and process substitution:
ayx one connections create --body "$(cat connection.json)" --applyTo generate a starting body for a connector type, use connector-metadata template:
ayx one connections connector-metadata template <slug> --output json > body.json# edit body.json, then:ayx one connections create --body "$(cat body.json)" --applySee Connector metadata for details.
Updating a connection
Section titled “Updating a connection”# Dry-runayx one connections update <id> --body '{"name":"Renamed DB"}'
# Commitayx one connections update <id> --body '{"name":"Renamed DB"}' --applyOnly the fields you include in --body are changed.
Deleting a connection
Section titled “Deleting a connection”# Dry-runayx one connections delete <id>
# Commit (skips TTY prompt in CI)ayx one connections delete <id> --apply --yesAutomation patterns
Section titled “Automation patterns”Parse the connection ID from a list to use in downstream commands:
ayx --output json one connections list --all \ | jq -r '.data[] | select(.name == "My DB") | .id'Audit connection health across all connections:
ayx --output json one connections list --all \ | jq -r '.data[].id' \ | xargs -I{} ayx --output json one connections status {}Related
Section titled “Related”- Connector metadata — inspect and override connector defaults
- Connection permissions — grant and revoke user/group access
- Safety model — how dry-run and
--applywork - Output & automation — JSON envelope and scripting patterns