GET API request filtering for a specific volume returns 0 records if queried too fast after creation
Applies to
- ONTAP 9
- RESTAPI
Issue
- Requesting a specific volume from RESTAPI call
/api/storage/volumes?name=<volume name>return no records but no error either when ran a few seconds after the volume creation:
root@rhel1:/root$ curl -ku admin -X GET https://10.11.12.13/api/storage/volumes?name=vol1
Enter host password for user 'admin':
{
"records": [
],
"num_records": 0,
"_links": {
"self": {
"href": "/api/storage/volumes?name=vol1"
}
}
}