mirror of https://github.com/hashicorp/consul
b9c9d79778
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. |
||
---|---|---|
.. | ||
acl | ||
agent | ||
catalog | ||
cli | ||
config | ||
connect | ||
debug | ||
event | ||
exec | ||
flags | ||
forceleave | ||
helpers | ||
info | ||
intention | ||
join | ||
keygen | ||
keyring | ||
kv | ||
leave | ||
lock | ||
login | ||
logout | ||
maint | ||
members | ||
monitor | ||
operator | ||
peering | ||
reload | ||
rtt | ||
services | ||
snapshot | ||
tls | ||
troubleshoot | ||
validate | ||
version | ||
watch | ||
registry.go | ||
registry_oss.go |