app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Action Form Component should render adding a new action 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"miqCustomTabReducer": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<ActionForm
ansibleInventory={
Array [
Array [
"Blue Demo Raw",
55,
],
Array [
"CF create user",
78,
],
]
}
availableAlerts={
Array [
Array [
"CPU Ready > 4000 ms for more than 10 min",
"d59185a4-40bc-11de-bd12-005056a170fa",
],
Array [
"Cluster DRS not enabled",
"eb88f942-c23e-11de-a3be-000c290de4f9",
],
]
}
inheritTags={
Array [
Array [
"prov_max_cpu",
"Auto Approve - Max CPU",
],
Array [
"prov_max_memory",
"Auto Approve - Max Memory",
],
]
}
inventoryType="localhost"
parentType={
Array [
Array [
"Cluster",
"ems_cluster",
],
Array [
"Datastore",
"storage",
],
]
}
promise={[MockFunction]}
snapshotAge={
Array [
Array [
"1 Hour",
3600,
],
Array [
"2 Hours",
7200,
],
Array [
"3 Hours",
10800,
],
]
}
tags={
Object {
"Auto Approve - Max CPU": Array [
Array [
"1",
86,
Object {
"data-tokens": "Auto Approve - Max CPU",
},
],
Array [
"2",
87,
Object {
"data-tokens": "Auto Approve - Max CPU",
},
],
Array [
"3",
88,
Object {
"data-tokens": "Auto Approve - Max CPU",
},
],
Array [
"4",
89,
Object {
"data-tokens": "Auto Approve - Max CPU",
},
],
Array [
"5",
90,
Object {
"data-tokens": "Auto Approve - Max CPU",
},
],
],
}
}
>
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Add",
}
}
canReset={false}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
],
}
}
>
<MiqFormRenderer
buttonsLabels={
Object {
"submitLabel": "Add",
}
}
canReset={false}
className="form-react"
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
disableSubmit={
Array [
"pristine",
"invalid",
]
}
dispatch={[Function]}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
],
}
}
showFormControls={true}
>
<FormRenderer
FormTemplate={[Function]}
clearOnUnmount={false}
componentMapper={
Object {
"checkbox": [Function],
"code-editor": [Function],
"date-picker": [Function],
"dual-list-select": [Function],
"edit-password-field": [Function],
"field-array": [Function],
"file-upload": [Function],
"font-icon-picker": [Function],
"font-icon-picker-ddf": [Function],
"multi-select": [Function],
"password-field": [Function],
"plain-text": [Function],
"radio": [Function],
"select": [Function],
"slider": [Function],
"spy-field": [Function],
"sub-form": [Function],
"switch": [Function],
"tabs": [Function],
"text-field": [Function],
"textarea": [Function],
"time-picker": [Function],
"tree-selector": [Function],
"tree-view": [Function],
"validate-credentials": [Function],
"wizard": [Function],
}
}
dispatch={[Function]}
initialValues={Object {}}
onCancel={[Function]}
onReset={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<ReactFinalForm
decorators={
Array [
[Function],
]
}
dispatch={[Function]}
initialValues={Object {}}
mutators={
Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
}
}
onSubmit={[Function]}
render={[Function]}
subscription={
Object {
"pristine": true,
"submitting": true,
"valid": true,
}
}
>
<Component
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
name="basic-information"
title="Basic Information"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
>
<WrappedFormTemplate
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
name="basic-information"
title="Basic Information"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "form-react",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Add"
>
<FormTemplate
Button={[Function]}
ButtonGroup={[Function]}
Description={[Function]}
FormWrapper={[Function]}
Header={[Function]}
Title={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={
Array [
"pristine",
"invalid",
]
}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
name="basic-information"
title="Basic Information"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formWrapperProps={
Object {
"className": "form-react",
}
}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
showFormControls={true}
submitLabel="Add"
>
<Form
className="form-react"
onSubmit={[Function]}
>
<Form
className="form-0-2-3 form-react"
noValidate={true}
onSubmit={[Function]}
>
<form
className="bx--form form-0-2-3 form-react"
noValidate={true}
onSubmit={[Function]}
>
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
key="basic-information"
name="basic-information"
title="Basic Information"
>
<FormConditionWrapper
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SubForm
DescriptionElement="p"
TitleElement="h3"
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
name="basic-information"
title="Basic Information"
>
<div
className=""
id="basic-information"
name="basic-information"
>
<div>
<h3>
Basic Information
</h3>
</div>
<SingleField
component="text-field"
id="description"
isRequired={true}
key="description"
label="Description"
maxLength={50}
name="description"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<TextField
component="text-field"
id="description"
isRequired={true}
label="Description"
maxLength={50}
name="description"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<TextInput
id="description"
invalid={false}
invalidText=""
key="description"
labelText={
<IsRequired>
Description
</IsRequired>
}
maxLength={50}
name="description"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
value=""
warn={false}
warnText=""
>
<div
className="bx--form-item bx--text-input-wrapper"
>
<label
className="bx--label"
htmlFor="description"
>
<IsRequired>
<span
aria-hidden="true"
className="ddorg__carbon-component-mapper_is-required isRequired-0-2-5"
>
*
</span>
Description
</IsRequired>
</label>
<div
className="bx--text-input__field-outer-wrapper"
>
<div
className="bx--text-input__field-wrapper"
data-invalid={null}
>
<input
className="bx--text-input bx--text-input--md"
disabled={false}
id="description"
maxLength={50}
name="description"
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onFocus={[Function]}
type="text"
value=""
/>
</div>
</div>
</div>
</TextInput>
</TextField>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="select"
id="action_type"
includeEmpty={true}
isRequired={true}
key="action_type"
label="Action Type"
loadOptions={[Function]}
name="action_type"
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<FormConditionWrapper
field={
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SelectWithOnChange
component="select"
id="action_type"
includeEmpty={true}
isRequired={true}
label="Action Type"
loadOptions={[Function]}
name="action_type"
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<Select
component="select"
id="action_type"
isRequired={true}
label="Action Type"
loadOptions={[Function]}
loadingMessage="Loading..."
name="action_type"
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
>
<Select
SelectComponent={[Function]}
id="action_type"
invalidText=""
labelText={
<IsRequired>
Action Type
</IsRequired>
}
loadOptions={[Function]}
loadOptionsChangeCounter={1}
loadingMessage="Loading..."
name="action_type"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
placeholder="<Choose>"
simpleValue={false}
value=""
>
<ClearedSelect
id="action_type"
invalidText=""
isClearable={false}
isDisabled={true}
isFetching={true}
isSearchable={false}
labelText={
<IsRequired>
Action Type
</IsRequired>
}
loadingMessage="Loading..."
name="action_type"
noOptionsMessage={[Function]}
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
onInputChange={[Function]}
options={Array []}
placeholder="<Choose>"
value=""
>
<Select
disabled={false}
helperText=""
id="action_type"
inline={false}
invalid={false}
invalidText=""
labelText={
<IsRequired>
Action Type
</IsRequired>
}
light={false}
loadingMessage="Loading..."
name="action_type"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
value=""
>
<div
className="bx--form-item"
>
<div
className="bx--select"
>
<label
className="bx--label"
htmlFor="action_type"
>
<IsRequired>
<span
aria-hidden="true"
className="ddorg__carbon-component-mapper_is-required isRequired-0-2-5"
>
*
</span>
Action Type
</IsRequired>
</label>
<div
className="bx--select-input__wrapper"
data-invalid={null}
>
<select
className="bx--select-input"
id="action_type"
loadingMessage="Loading..."
name="action_type"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
value=""
>
<SelectItem
disabled={false}
hidden={false}
text="<Choose>"
value=""
>
<option
className="bx--select-option"
disabled={false}
hidden={false}
value=""
>
<Choose>
</option>
</SelectItem>
</select>
<ForwardRef(ChevronDown16)
className="bx--select__arrow"
>
<Icon
className="bx--select__arrow"
fill="currentColor"
height={16}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<svg
aria-hidden={true}
className="bx--select__arrow"
fill="currentColor"
focusable="false"
height={16}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 16"
width={16}
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"
/>
</svg>
</Icon>
</ForwardRef(ChevronDown16)>
</div>
</div>
</div>
</Select>
</ClearedSelect>
</Select>
</Select>
</SelectWithOnChange>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
]
}
id="subform-1"
key="subform-1"
name="subform-1"
title="Analysis Profiles"
>
<FormConditionWrapper
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "assign_scan_profile",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
]
}
id="subform-2"
key="subform-2"
name="subform-2"
title="Snapshot Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "create_snapshot",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
]
}
id="subform-3"
key="subform-3"
name="subform-3"
title="Snapshot Age Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
fields={
Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
]
}
id="subform-4"
key="subform-4"
name="subform-4"
title="Select Alerts to be Evaluated"
>
<FormConditionWrapper
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "evaluate_alerts",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
]
}
id="subform-5"
key="subform-5"
name="subform-5"
title="Inherit Tags Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "inherit_parent_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
]
}
id="subform-6"
key="subform-6"
name="subform-6"
title="Custom Automation"
>
<FormConditionWrapper
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
className="attribute_value_pair_wrapper"
component="sub-form"
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
fields={
Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
]
}
id="subform-7"
key="subform-7"
name="subform-7"
title="Attribute/Value Pairs"
>
<FormConditionWrapper
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "custom_automation",
"when": "action_type",
}
}
field={
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
]
}
id="subform-8"
key="subform-8"
name="subform-8"
title="Reconfigure CPUs"
>
<FormConditionWrapper
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "reconfigure_cpus",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
]
}
id="subform-9"
key="subform-9"
name="subform-9"
title="Reconfigure Memory"
>
<FormConditionWrapper
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "reconfigure_memory",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
]
}
id="subform-10"
key="subform-10"
name="subform-10"
title="Remove Tags Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "remove_tags",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
]
}
id="subform-11"
key="subform-11"
name="subform-11"
title="Run an Ansible Playbook"
>
<FormConditionWrapper
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "run_ansible_playbook",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
]
}
id="subform-12"
key="subform-12"
name="subform-12"
>
<FormConditionWrapper
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
triggers={
Array [
"options.inventory_type",
"action_type",
]
}
>
<ForwardRef(Field)
name="options.inventory_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
triggers={
Array [
"action_type",
]
}
values={
Object {
"options": Object {
"inventory_type": "",
},
}
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
"options": Object {
"inventory_type": "",
},
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
values={
Object {
"action_type": "",
"options": Object {
"inventory_type": "",
},
}
}
>
<Component
condition={
Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
}
}
values={
Object {
"action_type": "",
"options": Object {
"inventory_type": "",
},
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "email",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
]
}
id="subform-13"
key="subform-13"
name="subform-13"
title="E-mail Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "email",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "email",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "email",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "email",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "email",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
]
}
id="subform-14"
key="subform-14"
name="subform-14"
title="SNMP Trap Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
fields={
Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
]
}
id="subform-15"
key="subform-15"
name="subform-15"
title="Variables"
>
<FormConditionWrapper
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "snmp_trap",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
]
}
id="subform-16"
key="subform-16"
name="subform-16"
title="Custom Attribute Settings"
>
<FormConditionWrapper
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "set_custom_attribute",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
<SingleField
component="sub-form"
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
fields={
Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
]
}
id="subform-17"
key="subform-17"
name="subform-17"
title="Applied Tag"
>
<FormConditionWrapper
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
}
}
triggers={
Array [
"action_type",
]
}
>
<ForwardRef(Field)
name="action_type"
subscription={
Object {
"value": true,
}
}
>
<ConditionTriggerDetector
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
}
}
triggers={Array []}
values={
Object {
"action_type": "",
}
}
>
<ConditionTriggerWrapper
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
}
}
values={
Object {
"action_type": "",
}
}
>
<Component
condition={
Object {
"is": "tag",
"when": "action_type",
}
}
field={
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
}
}
values={
Object {
"action_type": "",
}
}
/>
</ConditionTriggerWrapper>
</ConditionTriggerDetector>
</ForwardRef(Field)>
</ConditionTriggerDetector>
</FormConditionWrapper>
</SingleField>
</div>
</SubForm>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<SingleField
component="spy-field"
key="spy-field"
name="spy-field"
>
<FormConditionWrapper
field={
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
}
}
>
<FormFieldHideWrapper
hideField={false}
>
<SpyField
component="spy-field"
name="spy-field"
>
<FormSpy
onChange={[Function]}
subscription={
Object {
"pristine": true,
"valid": true,
}
}
/>
</SpyField>
</FormFieldHideWrapper>
</FormConditionWrapper>
</SingleField>
<FormSpy>
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
"reset",
"cancel",
]
}
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="sub-form"
fields={
Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
]
}
id="basic-information"
name="basic-information"
title="Basic Information"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
"dirty": false,
"dirtyFields": Object {},
"dirtyFieldsSinceLastSubmit": Object {},
"dirtySinceLastSubmit": false,
"error": undefined,
"errors": Object {
"action_type": "Required",
"description": "Required",
},
"form": Object {
"batch": [Function],
"blur": [Function],
"change": [Function],
"destroyOnUnregister": false,
"focus": [Function],
"getFieldState": [Function],
"getRegisteredFields": [Function],
"getState": [Function],
"initialize": [Function],
"isValidationPaused": [Function],
"mutators": Object {
"concat": [Function],
"insert": [Function],
"move": [Function],
"pop": [Function],
"push": [Function],
"remove": [Function],
"removeBatch": [Function],
"shift": [Function],
"swap": [Function],
"unshift": [Function],
"update": [Function],
},
"pauseValidation": [Function],
"registerField": [Function],
"reset": [Function],
"resetFieldState": [Function],
"restart": [Function],
"resumeValidation": [Function],
"setConfig": [Function],
"submit": [Function],
"subscribe": [Function],
},
"hasSubmitErrors": false,
"hasValidationErrors": true,
"initialValues": Object {},
"invalid": true,
"modified": Object {
"action_type": false,
"description": false,
"options.inventory_type": false,
},
"modifiedSinceLastSubmit": false,
"pristine": true,
"submitError": undefined,
"submitErrors": undefined,
"submitFailed": false,
"submitSucceeded": false,
"submitting": false,
"touched": Object {
"action_type": false,
"description": false,
"options.inventory_type": false,
},
"valid": false,
"validating": false,
"values": Object {},
"visited": Object {
"action_type": false,
"description": false,
"options.inventory_type": false,
},
}
}
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Add"
>
<ButtonGroup>
<ButtonSet
className=""
>
<div
className="bx--btn-set"
>
<Button
buttonType="submit"
disabled={true}
key="form-submit"
label="Add"
type="submit"
variant="primary"
>
<Button
disabled={true}
kind="primary"
type="submit"
variant="primary"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--primary bx--btn--disabled"
disabled={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="submit"
variant="primary"
>
Add
</button>
</Button>
</Button>
<Button
buttonType="cancel"
key="form-cancel"
label="Cancel"
onClick={[Function]}
type="button"
>
<Button
kind="secondary"
onClick={[Function]}
type="button"
>
<button
aria-describedby={null}
aria-pressed={null}
className="bx--btn bx--btn--secondary"
disabled={false}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
tabIndex={0}
type="button"
>
Cancel
</button>
</Button>
</Button>
</div>
</ButtonSet>
</ButtonGroup>
</FormControls>
</FormSpy>
</form>
</Form>
</Form>
</FormTemplate>
</WrappedFormTemplate>
</Component>
</ReactFinalForm>
</FormRenderer>
</MiqFormRenderer>
</Connect(MiqFormRenderer)>
</ActionForm>
</Provider>
`;
exports[`Action Form Component should render correctly 1`] = `
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Add",
}
}
canReset={false}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "sub-form",
"fields": Array [
Object {
"component": "text-field",
"id": "description",
"isRequired": true,
"label": "Description",
"maxLength": 50,
"name": "description",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "action_type",
"includeEmpty": true,
"isRequired": true,
"label": "Action Type",
"loadOptions": [Function],
"name": "action_type",
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "sub-form",
"condition": Object {
"is": "assign_scan_profile",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.scan_item_set_name",
"includeEmpty": true,
"label": "Analysis Profiles",
"name": "options.scan_item_set_name",
"options": Array [
Object {
"label": "Copy of sample",
"value": "Copy of sample",
},
Object {
"label": "default",
"value": "default",
},
Object {
"label": "host default",
"value": "host default",
},
Object {
"label": "host sample",
"value": "host sample",
},
Object {
"label": "sample",
"value": "sample",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-1",
"name": "subform-1",
"title": "Analysis Profiles",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "create_snapshot",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.name",
"label": "Snapshot Name",
"maxLength": 128,
"name": "options.name",
},
],
"id": "subform-2",
"name": "subform-2",
"title": "Snapshot Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "delete_snapshots_by_age",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.age",
"includeEmpty": true,
"label": "Delete if Older than",
"name": "options.age",
"options": Array [
Object {
"label": "1 Hour",
"value": "3600",
},
Object {
"label": "2 Hours",
"value": "7200",
},
Object {
"label": "3 Hours",
"value": "10800",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-3",
"name": "subform-3",
"title": "Snapshot Age Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "evaluate_alerts",
"when": "action_type",
},
"fields": Array [
Object {
"AddAllButtonProps": Object {
"size": "small",
},
"AddButtonProps": Object {
"size": "small",
},
"RemoveAllButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"allToRight": false,
"component": "dual-list-select",
"filterOptionsTitle": "Filter options",
"filterValuesTitle": "Filter values",
"id": "options.alert_guids",
"label": " ",
"leftTitle": "Available Alerts:",
"moveAllLeftTitle": "Remove All",
"moveAllRightTitle": "Add All",
"moveLeftTitle": "Remove",
"moveRightTitle": "Add",
"name": "options.alert_guids",
"noOptionsTitle": "No available options",
"noValueTitle": "No option selected",
"options": Array [
Object {
"label": "CPU Ready > 4000 ms for more than 10 min",
"value": "d59185a4-40bc-11de-bd12-005056a170fa",
},
Object {
"label": "Cluster DRS not enabled",
"value": "eb88f942-c23e-11de-a3be-000c290de4f9",
},
],
"rightTitle": "Selected Alerts:",
},
],
"id": "subform-4",
"name": "subform-4",
"title": "Select Alerts to be Evaluated",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "inherit_parent_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.parent_type",
"includeEmpty": true,
"label": "Parent Type",
"name": "options.parent_type",
"options": Array [
Object {
"label": "Datastore",
"value": "storage",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-5",
"name": "subform-5",
"title": "Inherit Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.ae_message",
"label": "Message:",
"maxLength": 128,
"name": "options.ae_message",
},
Object {
"component": "text-field",
"id": "options.ae_request",
"label": "Request:",
"maxLength": 128,
"name": "options.ae_request",
},
],
"id": "subform-6",
"name": "subform-6",
"title": "Custom Automation",
},
Object {
"className": "attribute_value_pair_wrapper",
"component": "sub-form",
"condition": Object {
"is": "custom_automation",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "attribute",
"isRequired": true,
"label": "attribute",
"name": "attribute",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"className": "attribute_value_field_wrapper",
"component": "text-field",
"id": "value",
"isRequired": true,
"label": "value",
"name": "value",
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "options.ae_hash",
"name": "options.ae_hash",
},
],
"id": "subform-7",
"name": "subform-7",
"title": "Attribute/Value Pairs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_cpus",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.value",
"initialValue": "1",
"label": "Number of CPU's",
"name": "options.value",
"options": Array [
Object {
"label": "1",
"value": "1",
},
Object {
"label": "2",
"value": "2",
},
Object {
"label": "4",
"value": "4",
},
],
},
],
"id": "subform-8",
"name": "subform-8",
"title": "Reconfigure CPUs",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "reconfigure_memory",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.value",
"label": "Memory Size",
"maxLength": 128,
"name": "options.value",
"placeholder": "(Enter the value between 4 - 65636 MB)",
},
],
"id": "subform-9",
"name": "subform-9",
"title": "Reconfigure Memory",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "remove_tags",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.cats",
"isMulti": true,
"label": "Categories",
"name": "options.cats",
"options": Array [
Object {
"label": "Auto Approve - Max CPU",
"value": "prov_max_cpu",
},
Object {
"label": "Auto Approve - Max Memory",
"value": "prov_max_memory",
},
],
"placeholder": "<Choose>",
},
],
"id": "subform-10",
"name": "subform-10",
"title": "Remove Tags Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.service_template_name",
"includeEmpty": true,
"label": "Playbook Catalog Item",
"name": "options.service_template_name",
"options": Array [
Object {
"label": "Blue Demo Raw",
"value": "Blue Demo Raw",
},
Object {
"label": "CF create user",
"value": "CF create user",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "radio",
"id": "options.inventory_type",
"initialValue": "LocalHost",
"label": "Inventory",
"name": "options.inventory_type",
"options": Array [
Object {
"label": "LocalHost",
"value": "LocalHost",
},
Object {
"label": "Target Machine",
"value": "Target Machine",
},
Object {
"label": "Specific Hosts",
"value": "Specific Hosts",
},
],
},
],
"id": "subform-11",
"name": "subform-11",
"title": "Run an Ansible Playbook",
},
Object {
"component": "sub-form",
"condition": Object {
"and": Array [
Object {
"is": "Specific Hosts",
"when": "options.inventory_type",
},
Object {
"is": "run_ansible_playbook",
"when": "action_type",
},
],
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.hosts",
"label": " ",
"name": "options.hosts",
"placeholder": "Enter a comma separated list of IP or DNS names",
},
],
"id": "subform-12",
"name": "subform-12",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "email",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.from",
"label": "From E-mail Address (leave blank for default)",
"maxLength": 128,
"name": "options.from",
"placeholder": "(Default: cfadmin@cfserver.com)",
},
Object {
"component": "text-field",
"id": "options.to",
"label": "To E-mail Address",
"maxLength": 128,
"name": "options.to",
},
],
"id": "subform-13",
"name": "subform-13",
"title": "E-mail Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.host",
"label": "Host",
"maxLength": 128,
"name": "options.host",
},
Object {
"component": "select",
"id": "options.snmp_version",
"initialValue": "v1",
"label": "Version",
"name": "options.snmp_version",
"options": Array [
Object {
"label": "v1",
"value": "v1",
},
Object {
"label": "v2",
"value": "v2",
},
],
},
Object {
"component": "text-field",
"id": "options.trap_id",
"label": "Trap Number",
"maxLength": 128,
"name": "options.trap_id",
},
],
"id": "subform-14",
"name": "subform-14",
"title": "SNMP Trap Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "snmp_trap",
"when": "action_type",
},
"fields": Array [
Object {
"AddButtonProps": Object {
"size": "small",
},
"RemoveButtonProps": Object {
"size": "small",
},
"component": "field-array",
"fieldKey": "field_array",
"fields": Array [
Object {
"component": "text-field",
"id": "oid",
"label": "Object ID",
"name": "oid",
},
Object {
"component": "select",
"id": "var_type",
"initialValue": "Counter32",
"label": "Type",
"loadOptions": [Function],
"name": "var_type",
},
Object {
"component": "text-field",
"id": "value",
"label": "Value",
"name": "value",
},
],
"id": "options.variables",
"name": "options.variables",
},
],
"id": "subform-15",
"name": "subform-15",
"title": "Variables",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "set_custom_attribute",
"when": "action_type",
},
"fields": Array [
Object {
"component": "text-field",
"id": "options.attribute",
"label": "Attribute Name",
"maxLength": 128,
"name": "options.attribute",
},
Object {
"component": "text-field",
"id": "options.value",
"label": "Value to Set",
"maxLength": 128,
"name": "options.value",
},
],
"id": "subform-16",
"name": "subform-16",
"title": "Custom Attribute Settings",
},
Object {
"component": "sub-form",
"condition": Object {
"is": "tag",
"when": "action_type",
},
"fields": Array [
Object {
"component": "select",
"id": "options.tags",
"isRequired": true,
"label": "Tag to Apply",
"name": "options.tags",
"options": Array [
Object {
"label": "<Choose>",
"value": "",
},
Object {
"label": "AUTO APPROVE - MAX CPU",
"options": Array [
Object {
"label": "1",
"value": "prov_max_cpu/1",
},
Object {
"label": "2",
"value": "prov_max_cpu/2",
},
Object {
"label": "3",
"value": "prov_max_cpu/3",
},
Object {
"label": "4",
"value": "prov_max_cpu/4",
},
Object {
"label": "5",
"value": "prov_max_cpu/5",
},
],
},
],
"validate": Array [
Object {
"type": "required",
},
],
},
],
"id": "subform-17",
"name": "subform-17",
"title": "Applied Tag",
},
],
"id": "basic-information",
"name": "basic-information",
"title": "Basic Information",
},
],
}
}
/>
`;