]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/configuration.service.ts
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / api / configuration.service.ts
index a977a17d180e7e6c24c45bbe97197f74450c3664..3355b8fb7723886e98c0aaaa551a50208877f12f 100644 (file)
@@ -18,11 +18,19 @@ export class ConfigurationService {
     return this.http.get(`api/cluster_conf/${configOption}`);
   }
 
+  filter(configOptionNames: Array<string>) {
+    return this.http.get(`api/cluster_conf/filter?names=${configOptionNames.join(',')}`);
+  }
+
   create(configOption: ConfigFormCreateRequestModel) {
     return this.http.post('api/cluster_conf/', configOption);
   }
 
+  delete(configOption: string, section: string) {
+    return this.http.delete(`api/cluster_conf/${configOption}?section=${section}`);
+  }
+
   bulkCreate(configOptions: Object) {
-    return this.http.put('api/cluster_conf', configOptions);
+    return this.http.put('api/cluster_conf/', configOptions);
   }
 }