Update a global name service cache setting
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
PATCH /name-services/cache/setting
Introduced In: 9.11
Updates a global nameservice cache setting.
Important notes
-
Both the cache eviction time and remote fetch option can be modified.
Related ONTAP commands
-
vserver services name-service cache settings modify
Learn more
Request Body
Name | Type | Description |
---|---|---|
_links |
||
eviction_time_interval |
string |
Specifies the time interval, in ISO 8601 format after which a periodic cache eviction happens. Default is 4 hours. |
remote_fetch_enabled |
boolean |
Indicates whether or not a node is allowed to fetch the data from a remote node. |
Example request
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"eviction_time_interval": "PT2H"
}
Response
Status: 200, Ok
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
global_cache_setting
Name | Type | Description |
---|---|---|
_links |
||
eviction_time_interval |
string |
Specifies the time interval, in ISO 8601 format after which a periodic cache eviction happens. Default is 4 hours. |
remote_fetch_enabled |
boolean |
Indicates whether or not a node is allowed to fetch the data from a remote node. |
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
returned_error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |