From a283a416139dca46b1d2e459aa033cd2d3902243 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 24 Jan 2024 11:52:28 -0800 Subject: [PATCH] docs: mention wildcards in namespace api docs (#19809) Co-authored-by: Luiz Aoqui --- website/content/api-docs/index.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/website/content/api-docs/index.mdx b/website/content/api-docs/index.mdx index 55713ae72..404e5d1f6 100644 --- a/website/content/api-docs/index.mdx +++ b/website/content/api-docs/index.mdx @@ -97,10 +97,16 @@ to be segmented from each other and other users of the cluster. When using non-default namespace, the API request must pass the target namespace as an API query parameter. Prior to Nomad 1.0 namespaces were Enterprise-only. -Here is an example using curl: +Here is an example using curl to query the `qa` namespace: ```shell-session -$ curl https://localhost:4646/v1/jobs?namespace=qa +$ curl 'localhost:4646/v1/jobs?namespace=qa' +``` + +Use a wildcard (`*`) to query all namespaces: + +```shell-session +$ curl 'localhost:4646/v1/jobs?namespace=*' ``` ## Filtering