56 lines
2.0 KiB
HTML
56 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="styles.css">
|
|
<title>HPE Server Manager</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>HPE Server Manager</h1>
|
|
|
|
<!-- Form to add a new server -->
|
|
<h2>Add Server</h2>
|
|
<form id="add-server-form">
|
|
<input type="text" id="server-ip" placeholder="10.28.25.47" required>
|
|
<input type="text" id="server-name" placeholder="f420" required>
|
|
<button type="submit">Add Server</button>
|
|
</form>
|
|
|
|
<!-- Form to add a new API endpoint -->
|
|
<h2>Add API Call</h2>
|
|
<form id="add-action-form">
|
|
<input type="text" id="action-name" placeholder="Update Service" required>
|
|
<input type="text" id="action-call" placeholder="/rest/v1/Managers/1/UpdateService" required>
|
|
<select id="method-select">
|
|
<option value="get-method">GET</option>
|
|
<option value="post-method">POST</option>
|
|
<option value="patch-method">PATCH</option>
|
|
</select>
|
|
<button type="submit">Add API Call</button>
|
|
</form>
|
|
|
|
|
|
<!-- Dropdown to select existing servers -->
|
|
<h2>Select Server</h2>
|
|
<select id="server-select"></select>
|
|
<select id="action-select">
|
|
<!--
|
|
<option value="server-info">Server Info</option>
|
|
<option value="snmp-info">Snmp Status</option>
|
|
<option value="send-test-mail">Send Test</option>
|
|
-->
|
|
</select>
|
|
<button id="confirmButton">Confirm</button>
|
|
<!--
|
|
<button id="fetch-info">Get Server Info</button>
|
|
<button id="snmp-info">SNMP status</button>
|
|
<button id="snmp-test">SNMP send</button>
|
|
-->
|
|
<pre id="server-info"></pre>
|
|
</div>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|