Skip to content

Commit

Permalink
docs: mention wildcards in namespace api docs (hashicorp#19809)
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Aoqui <[email protected]>
  • Loading branch information
schmichael and lgfa29 authored Jan 24, 2024
1 parent 8f56418 commit a283a41
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions website/content/api-docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a283a41

Please sign in to comment.