From 75f8dbd0ec7912dfb213abc601d169fadb87952a Mon Sep 17 00:00:00 2001 From: Hardikl <83282894+Hardikl@users.noreply.github.com> Date: Mon, 14 Nov 2022 21:30:39 +0530 Subject: [PATCH] fix: svm with private cli (#1465) * fix: svm with private cli * fix: svm change --- conf/rest/9.12.0/svm.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/conf/rest/9.12.0/svm.yaml b/conf/rest/9.12.0/svm.yaml index 0e3ec3377..01a5f842f 100644 --- a/conf/rest/9.12.0/svm.yaml +++ b/conf/rest/9.12.0/svm.yaml @@ -1,16 +1,20 @@ +# As private cli api would provide all svms(but system) which we would need for our use-case, So using private api instead of public. + name: SVM -query: api/svm/svms +query: api/private/cli/vserver object: svm counters: - ^^uuid => svm_uuid - - ^name => svm - - ^state => state + - ^vserver => svm - ^anti_ransomware_default_volume_state => anti_ransomware_state - - ^nsswitch => nameservice_switch - + - ^operational_state => state endpoints: + - query: api/svm/svms + counters: + - ^^uuid => svm_uuid + - ^nsswitch => nameservice_switch - query: api/security/ssh/svms counters: - ^^svm.uuid => svm_uuid @@ -55,7 +59,6 @@ endpoints: counters: - ^^svm.uuid => svm_uuid - ^enabled => iscsi_service_enabled - plugins: - SVM - LabelAgent: