src/app/shared/api/iscsi.service.ts
Properties |
Methods |
constructor(http: HttpClient)
|
||||||
Defined in src/app/shared/api/iscsi.service.ts:11
|
||||||
Parameters :
|
createTarget | ||||
createTarget(target)
|
||||
Defined in src/app/shared/api/iscsi.service.ts:89
|
||||
Parameters :
Returns :
any
|
deleteTarget | ||||
deleteTarget(target_iqn)
|
||||
Defined in src/app/shared/api/iscsi.service.ts:93
|
||||
Parameters :
Returns :
any
|
getDiscovery |
getDiscovery()
|
Defined in src/app/shared/api/iscsi.service.ts:97
|
Returns :
any
|
getTarget | ||||
getTarget(target_iqn)
|
||||
Defined in src/app/shared/api/iscsi.service.ts:69
|
||||
Parameters :
Returns :
any
|
listTargets |
listTargets()
|
Defined in src/app/shared/api/iscsi.service.ts:65
|
Returns :
any
|
portals |
portals()
|
Defined in src/app/shared/api/iscsi.service.ts:85
|
Returns :
any
|
settings |
settings()
|
Defined in src/app/shared/api/iscsi.service.ts:81
|
Returns :
any
|
status |
status()
|
Defined in src/app/shared/api/iscsi.service.ts:77
|
Returns :
any
|
updateDiscovery | ||||
updateDiscovery(auth)
|
||||
Defined in src/app/shared/api/iscsi.service.ts:101
|
||||
Parameters :
Returns :
any
|
updateTarget | ||||||
updateTarget(target_iqn, target)
|
||||||
Defined in src/app/shared/api/iscsi.service.ts:73
|
||||||
Parameters :
Returns :
any
|
imageAdvancedSettings |
Type : object
|
Default value : {
hw_max_sectors: {
help: ''
},
max_data_area_mb: {
help: ''
},
osd_op_timeout: {
help: ''
},
qfull_timeout: {
help: ''
}
}
|
Defined in src/app/shared/api/iscsi.service.ts:50
|
targetAdvancedSettings |
Type : object
|
Default value : {
cmdsn_depth: {
help: ''
},
dataout_timeout: {
help: ''
},
first_burst_length: {
help: ''
},
immediate_data: {
help: ''
},
initial_r2t: {
help: ''
},
max_burst_length: {
help: ''
},
max_outstanding_r2t: {
help: ''
},
max_recv_data_segment_length: {
help: ''
},
max_xmit_data_segment_length: {
help: ''
},
nopin_response_timeout: {
help: ''
},
nopin_timeout: {
help: ''
}
}
|
Defined in src/app/shared/api/iscsi.service.ts:14
|
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { cdEncode } from '../decorators/cd-encode';
import { ApiModule } from './api.module';
@cdEncode
@Injectable({
providedIn: ApiModule
})
export class IscsiService {
constructor(private http: HttpClient) {}
targetAdvancedSettings = {
cmdsn_depth: {
help: ''
},
dataout_timeout: {
help: ''
},
first_burst_length: {
help: ''
},
immediate_data: {
help: ''
},
initial_r2t: {
help: ''
},
max_burst_length: {
help: ''
},
max_outstanding_r2t: {
help: ''
},
max_recv_data_segment_length: {
help: ''
},
max_xmit_data_segment_length: {
help: ''
},
nopin_response_timeout: {
help: ''
},
nopin_timeout: {
help: ''
}
};
imageAdvancedSettings = {
hw_max_sectors: {
help: ''
},
max_data_area_mb: {
help: ''
},
osd_op_timeout: {
help: ''
},
qfull_timeout: {
help: ''
}
};
listTargets() {
return this.http.get(`api/iscsi/target`);
}
getTarget(target_iqn) {
return this.http.get(`api/iscsi/target/${target_iqn}`);
}
updateTarget(target_iqn, target) {
return this.http.put(`api/iscsi/target/${target_iqn}`, target, { observe: 'response' });
}
status() {
return this.http.get(`ui-api/iscsi/status`);
}
settings() {
return this.http.get(`ui-api/iscsi/settings`);
}
portals() {
return this.http.get(`ui-api/iscsi/portals`);
}
createTarget(target) {
return this.http.post(`api/iscsi/target`, target, { observe: 'response' });
}
deleteTarget(target_iqn) {
return this.http.delete(`api/iscsi/target/${target_iqn}`, { observe: 'response' });
}
getDiscovery() {
return this.http.get(`api/iscsi/discoveryauth`);
}
updateDiscovery(auth) {
return this.http.put(`api/iscsi/discoveryauth`, auth);
}
}