Skip to main content
A newer release of this product is available.

Name-services cache setting endpoint overview

Contributors

Overview

This API is used to retrieve and manage global nameservice cache settings.

Examples

Retrieving a global nameservice cache setting


The following example shows how to use the cache setting GET endpoint to retrieve the global nameservice cache setting.

# The API:
GET /api/name-services/cache/setting

# The call:
curl -X GET "https://<mgmt-ip>/api/name-services/cache/setting" -H "accept: application/hal+json"

# The response:
{
"eviction_time_interval": "P2D",
"remote_fetch_enabled": true
}

Updating a global nameservice cache setting


The following example shows how to use the cache setting PATCH endpoint to update the global nameservice cache setting.

# The API:
PATCH /api/name-services/cache/setting

# The call:
curl -X PATCH "https://<mgmt-ip>/api/name-services/cache/setting" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"eviction_time_interval\": \"PT2H\" }"