Skip to main content
REST API reference

Manage global cache settings

Retrieve and manage global nameservice cache settings using these endpoints. Access and update cache configuration to optimize performance in your ONTAP environment.

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\" }"