日本語は機械翻訳による参考訳です。内容に矛盾や不一致があった場合には、英語の内容が優先されます。
List the SVMs using the ONTAP REST API
You can list the Storage Virtual Machines (SVMs) defined within an ONTAP cluster. You might do this as part of finding the identifier for a specific SVM or to assure name uniqueness before creating a new SVM.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
GET |
/api/svm/svms |
Curl example
curl --request GET \
--location "https://$FQDN_IP/api/svm/svms" \
--include \
--header "Accept: */*" \
--header "Authorization: Basic $BASIC_AUTH"
JSON output example
{ "records": [ { "uuid": "71bd74f8-40dc-11ee-b51a-005056aee9fa", "name": "vs0", "_links": { "self": { "href": "/api/svm/svms/71bd74f8-40dc-11ee-b51a-005056aee9fa" } } } ], "num_records": 1, "_links": { "self": { "href": "/api/svm/svms" } } }