File

src/app/shared/api/cephfs.service.ts

Index

Properties
Methods

Constructor

constructor(http: HttpClient)
Parameters :
Name Type Optional
http HttpClient No

Methods

getCephfs
getCephfs(id)
Parameters :
Name Optional
id No
Returns : any
getClients
getClients(id)
Parameters :
Name Optional
id No
Returns : any
getMdsCounters
getMdsCounters(id)
Parameters :
Name Optional
id No
Returns : any
list
list()
Returns : any

Properties

baseURL
Type : string
Default value : 'api/cephfs'
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

import { ApiModule } from './api.module';

@Injectable({
  providedIn: ApiModule
})
export class CephfsService {
  baseURL = 'api/cephfs';

  constructor(private http: HttpClient) {}

  list() {
    return this.http.get(`${this.baseURL}`);
  }

  getCephfs(id) {
    return this.http.get(`${this.baseURL}/${id}`);
  }

  getClients(id) {
    return this.http.get(`${this.baseURL}/${id}/clients`);
  }

  getMdsCounters(id) {
    return this.http.get(`${this.baseURL}/${id}/mds_counters`);
  }
}

result-matching ""

    No results matching ""