A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/nomad/api-docs/namespaces below:

Namespace - HTTP API | Nomad

The /namespace endpoints are used to query for and interact with namespaces.

This endpoint lists all namespaces.

Method Path Produces GET /v1/namespaces application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required YES namespace:*
Any capability on the namespace authorizes the endpoint Parameters Sample Request
$ curl \
    https://localhost:4646/v1/namespaces
$ curl \
    https://localhost:4646/v1/namespaces?prefix=prod
Sample Response
[
  {
    "Capabilities": null,
    "CreateIndex": 1,
    "Description": "Default shared namespace",
    "Meta": null,
    "ModifyIndex": 1,
    "Name": "default",
    "Quota": ""
  },
  {
    "Capabilities": null,
    "CreateIndex": 17,
    "Description": "Development Staging Namespace",
    "Meta": {
        "type": "dev",
        "contact": "helpdesk@example.com"
    },
    "ModifyIndex": 17,
    "Name": "staging",
    "Quota": ""
  }
]

This endpoint reads information about a specific namespace.

Method Path Produces GET /v1/namespace/:namespace application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required YES namespace:*
Any capability on the namespace authorizes the endpoint Parameters Sample Request
$ curl \
    https://localhost:4646/v1/namespace/staging
Sample Response
{
  "Capabilities": null,
  "CreateIndex": 17,
  "Description": "Development Staging Namespace",
  "Meta": {
    "type": "dev",
    "contact": "helpdesk@example.com"
  },
  "ModifyIndex": 17,
  "Name": "staging",
  "Quota": ""
}

This endpoint is used to create or update a namespace.

Method Path Produces POST /v1/namespace/:namespace
/v1/namespace application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required NO management Parameters Sample Payload
{
  "Name": "api-prod",
  "Description": "Production API Servers",
  "Meta": {
    "contact": "platform-eng@example.com"
  },
  "Quota": "prod-quota",
  "Capabilities": {
    "DisabledTaskDrivers": ["raw_exec"]
  },
  "NodePoolConfiguration": {
    "Default": "prod-pool",
    "Allowed": ["default"]
  }
}
Sample Request
$ curl \
    --request POST \
    --data @namespace.json \
    https://localhost:4646/v1/namespace/api-prod
$ curl \
    --request POST \
    --data @namespace.json \
    https://localhost:4646/v1/namespace

This endpoint is used to delete a namespace.

Method Path Produces DELETE /v1/namespace/:namespace application/json

The table below shows this endpoint's support for blocking queries and required ACLs.

Blocking Queries ACL Required NO management Parameters Sample Request
$ curl \
    --request DELETE \
    https://localhost:4646/v1/namespace/api-prod

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4