-
Notifications
You must be signed in to change notification settings - Fork 4
/
exampleFAST.html
31 lines (30 loc) · 3.79 KB
/
exampleFAST.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Template Preview</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="./styles/vscode.css"> -->
</head>
<body>
<div id="editor"></div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@json-editor/[email protected]/dist/jsoneditor.min.js"></script>
<script>
const schema = {"type":"object","properties":{"tenant_name":{"type":"string","title":"Tenant Name","description":"The *tenant* is the high-level grouping in an AS3 declaration. FAST deploys all configuration for a given tenant in a BIG-IP partition of the same name.","minLength":1,"maxLength":255,"pattern":"^[A-Za-z][0-9A-Za-z_.-]*$","immutable":true,"propertyOrder":0},"app_name":{"type":"string","title":"Application Name","description":"The *application* is the low-level grouping in an AS3 declaration. FAST deploys all configuration for a given application in a BIG-IP folder within the tenant partition.","minLength":1,"maxLength":255,"pattern":"^[A-Za-z][0-9A-Za-z_.-]*$","immutable":true,"propertyOrder":1},"virtual_address":{"type":"string","title":"Virtual Server IP Address","description":"This IP address, combined with the port you specify below, becomes the BIG-IP virtual server address and port, which clients use to access the application. The system uses this IP:Port for distributing requests to the web servers.","propertyOrder":2},"virtual_port":{"type":"integer","minimum":0,"maximum":65535,"title":"Virtual Server Port","default":443,"propertyOrder":3},"pool_members":{"type":"array","title":"Pool Members","description":"The pool members are the servers that receive traffic from the virtual server (upstream). To share nodes between pools see K88250015: AS3 expected behavior of 'shareNodes' in declarations. https://my.f5.com/manage/s/article/K88250015","uniqueItems":true,"items":{"type":"object","properties":{"serverAddress":{"type":"string","title":"Server Address"},"servicePort":{"type":"integer","minimum":0,"maximum":65535,"title":"Server Port","default":80},"shareNodes":{"type":"boolean","title":"Share Node","default":false,"format":"checkbox"}},"required":["serverAddress"]},"skip_xform":true,"propertyOrder":4,"format":"table"}},"required":["tenant_name","app_name","virtual_address","pool_members"],"dependencies":{"serverAddress":["pool_members"],"servicePort":["pool_members"],"shareNodes":["pool_members"]},"title":"Flipper -> AS3 HTTP Application Template","description":"This template aims to provide a jumping point for taking an NS app config and converting it to AS3.","definitions":{}};
const defaults = {"virtual_port":"443","tenant_name":"starlord_offload_lb_vs","app_name":"starlord_offload_lb_vs","virtual_address":"192.168.86.142","pool_members":[{"serverAddress":"1.2.3.5","servicePort":"80"},{"serverAddress":"1.2.3.4","servicePort":"80"}]};
const editor = new JSONEditor(document.getElementById('editor'), {
schema,
startval: defaults,
compact: true,
show_errors: 'always',
disable_edit_json: true,
disable_properties: true,
disable_collapse: true,
array_controls_top: true,
theme: 'bootstrap4'
});
</script>
</body>
</html>