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

Manage global cache settings

Retrieve and manage global nameservice cache settings to optimize the performance of your ONTAP environment. Use these endpoints to access and modify cache configurations efficiently.

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