consul/command
Jared Kirschner b9c9d79778
Accept ap, datacenter, and namespace query params (#17525)
This commit only contains the OSS PR (datacenter query param support).
A separate enterprise PR adds support for ap and namespace query params.

Resources in Consul can exists within scopes such as datacenters, cluster
peers, admin partitions, and namespaces. You can refer to those resources from
interfaces such as the CLI, HTTP API, DNS, and configuration files.

Some scope levels have consistent naming: cluster peers are always referred to
as "peer".

Other scope levels use a short-hand in DNS lookups...
- "ns" for namespace
- "ap" for admin partition
- "dc" for datacenter

...But use long-hand in CLI commands:
- "namespace" for namespace
- "partition" for admin partition
- and "datacenter"

However, HTTP API query parameters do not follow a consistent pattern,
supporting short-hand for some scopes but long-hand for others:
- "ns" for namespace
- "partition" for admin partition
- and "dc" for datacenter.

This inconsistency is confusing, especially for users who have been exposed to
providing scope names through another interface such as CLI or DNS queries.

This commit improves UX by consistently supporting both short-hand and
long-hand forms of the namespace, partition, and datacenter scopes in HTTP API
query parameters.
2023-05-31 11:50:24 -04:00
..
acl Remove artificial ACLTokenMaxTTL limit for configuring acl token expiry (#17066) 2023-04-28 10:57:30 -05:00
agent HCP Telemetry Feature (#17460) 2023-05-29 16:11:08 -04:00
catalog Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
cli Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
config Permissive mTLS: Config entry filtering and CLI warnings (#17183) 2023-04-28 12:51:36 -05:00
connect Accept ap, datacenter, and namespace query params (#17525) 2023-05-31 11:50:24 -04:00
debug Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
event Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
exec Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
flags Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
forceleave Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
helpers Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
info Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
intention Raft storage backend (#16619) 2023-04-04 17:30:06 +01:00
join Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
keygen Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
keyring Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
kv Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
leave Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
lock Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
login Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
logout Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
maint Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
members Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
monitor Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
operator Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
peering Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
reload Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
rtt Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
services Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
snapshot Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
tls Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
troubleshoot Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
validate Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
version fips oss version changes (#17500) 2023-05-29 13:02:06 -05:00
watch Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
registry.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00
registry_oss.go Copyright headers for command folder (#16705) 2023-03-28 15:12:30 -04:00