命令行界面和 REST API 之间的卷 UUID 不一致
适用场景
ONTAP 9.7 或更高版本
问题描述
命令行界面和 REST API 之间的卷 UUID 不一致。
命令行界面
cluster2::*> volume show -fields uuid -volume vol1
vserver volume uuid
------- ------ ------------------------------------
svm1 vol1 ab2c81b1-f1e2-11eb-98d7-005056a05f57
REST API
https://10.216.13.186/api/storage/volumes?name=vol1
{
"records": [
{
"uuid": "ab2ac953-f1e2-11eb-98d7-005056a05f57",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/ab2ac953-f1e2-11eb-98d7-005056a05f57"
}
}
}
],
"num_records": 1,
"_links": {
"self": {
"href": "/api/storage/volumes?name=vol1"
}
}
}