Show guidelines on UI on how to setup network hook
This commit is contained in:
		@@ -148,6 +148,12 @@ interface SysLoadAverage {
 | 
			
		||||
  fifteen: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface NetworkHookStatus {
 | 
			
		||||
  installed: boolean;
 | 
			
		||||
  content: string;
 | 
			
		||||
  path: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class ServerApi {
 | 
			
		||||
  /**
 | 
			
		||||
   * Get server configuration
 | 
			
		||||
@@ -181,6 +187,18 @@ export class ServerApi {
 | 
			
		||||
    ).data;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Get network hook status
 | 
			
		||||
   */
 | 
			
		||||
  static async NetworkHookStatus(): Promise<NetworkHookStatus> {
 | 
			
		||||
    return (
 | 
			
		||||
      await APIClient.exec({
 | 
			
		||||
        method: "GET",
 | 
			
		||||
        uri: "/server/network_hook_status",
 | 
			
		||||
      })
 | 
			
		||||
    ).data;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Get host supported vCPUs configurations
 | 
			
		||||
   */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user