Note: Bulk operations are planned for Phase 9 of the
a7CLI development and are Not Yet Implemented. This document describes the planned interface.
Bulk operations will allow you to perform actions on multiple API7 Enterprise Edition (EE) resources with a single command, scoped to a gateway group.
Every bulk operation will require the --gateway-group (or -g) flag.
The delete command for each resource type will support bulk operations via the --all or --label flags.
# Planned
a7 route delete --all -g default --force# Planned
a7 service delete --label env=staging -g prod --forceEach resource will have an export command to dump multiple resources to a file or stdout.
# Planned
a7 upstream export -g default# Planned
a7 route export --label team=payments -g prod -o json -f payments-routes.json| Flag | Description |
|---|---|
--all |
Delete all resources of the specified type within the gateway group |
--label |
Delete only resources matching the specified label (key=value) |
--gateway-group |
Target gateway group (required) |
--force |
Skip confirmation prompt |
| Flag | Short | Default | Description |
|---|---|---|---|
--label |
Export only resources matching the label | ||
--gateway-group |
-g |
Target gateway group (required) | |
--output |
-o |
yaml |
Export format (yaml, json) |
--file |
-f |
Write to file instead of stdout |
Bulk operations are planned for the following resources:
routeserviceconsumersslglobal-rulestream-routeprotosecretplugin-metadata