"
if(Workflow.toLowerCase().contains("export")){
html_to_be_rendered = """
${html_to_be_rendered}
-
-
- Region Filter (eg ashburn) :
-
- (Leave empty for all subscribed regions)
-
-
-
-
-
-
- Compartment Filter :
-
- (Leave empty to fetch from all compartments)
-
-
+
+
+ Select Regions (Optional) :
+ ${reg_options}
+
+
+
+
+ Select Compartments (Optional):
+ ${comp_options}
+
+
"""
}
@@ -27,99 +35,79 @@ for (item in SubOptions.split(",")) {
if (item.equals("Export Instances (excludes instances launched by OKE)")) {
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
+
+
Display Name Pattern Filter for Compute :
-
-
-
-
-
-
+
+
+
+
AD filter for Compute :
-
-
-
- (eg AD1,AD2,AD3)
-
-
-
-
+ (eg AD1,AD2,AD3)
+
"""
}
if (item.equals("Export Firewall Policy")) {
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
+
+
Display Name Pattern Filter for Firewall Policy :
-
-
-
-
-
+
+
+
"""
}
if (item.equals("Clone Firewall Policy")) {
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
- Enter region of the Firewall Policy to be cloned (Mandatory) :
-
-
-
- Enter name of the Compartment (as it appears in OCI) of the Firewall Policy to be cloned (Mandatory) :
-
-
+
+ Select region of the Firewall Policy to be cloned (Mandatory) :
+ ${reg_options}
+
+
+
+ Select the compartment of the Firewall Policy to be cloned (Mandatory) :
+ ${comp_options}
+
Enter names of the source firewall policies(comma separated) (Mandatory) :
-
-
-
- Enter names for the target firewall policies(comma separated), in the same order as source above, leave empty if you need tool to generate the policy names:
-
- (Leave empty if you need tool to generate the policy names)
-
-
-
- Clone attached/used policies only
-
-
-
-
-
-
+
+
+
+ Enter names for the target firewall policies(comma separated), in the same order as source above:
+ (Leave empty if you need tool to generate the policy names)
+
+
+
+ Clone attached/used policies only
+
+
+
"""
}
if (item.equals("Delete Firewall Policy")) {
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
- Enter region of the Firewall Policy to be deleted (Mandatory) :
-
-
-
- Enter name of the Compartment (as it appears in OCI) of the Firewall Policy to be deleted (Mandatory) :
-
-
+
+ Select region of the Firewall Policy to be deleted (Mandatory) :
+ ${reg_options}
+
+
+
+ Select Compartment of the Firewall Policy to be deleted (Mandatory) :
+ ${comp_options}
+
Enter names of the Firewall Policies(comma separated) that need to be deleted (Mandatory) :
-
-
-
-
+
+
"""
}
if (item.equals("Export Block Volumes/Block Backup Policy")) {
@@ -131,13 +119,12 @@ for (item in SubOptions.split(",")) {
-
+
AD filter for Block Volume :
-
- (eg AD1,AD2,AD3)
-
+ (eg AD1,AD2,AD3)
+
"""
}
@@ -150,10 +137,9 @@ for (item in SubOptions.split(",")) {
Export Default views/Zones/Records
-
-
+
"""
}
if (item.equals('Upload current terraform files/state to Resource Manager')){
@@ -161,74 +147,64 @@ for (item in SubOptions.split(",")) {
${html_to_be_rendered}
-
- Enter region (comma separated without spaces if multiple) for which you want to upload Terraform Stack - eg ashburn,phoenix,global :
-
- (Leave empty for all subscribed regions)
-
-
-
+
+ Select regions for which you want to upload Terraform Stack :
+ ${reg_options} global
+
+
-
- Enter compartment name to create RM Stack (Mandatory) :
-
-
-
+
+ Select compartment name to create RM Stack (Mandatory) :
+ ${comp_options}
+
+
"""
}
if (item.equals('Create Key/Vault')){
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
- Enter region name eg ashburn where you want to create Key/Vault :
-
-
-
+
+ Select region name where you want to create Key/Vault :
+ ${reg_options}
+
+
-
- Enter name of compartment as it appears in OCI Console for Key/Vault:
-
-
-
+
+ select compartment for Key/Vault:
+ ${comp_options}
+
+
"""
}
-
if (item.equals('Create Default Budget')){
html_to_be_rendered = """
${html_to_be_rendered}
-
-
Enter Monthly Budget Amount (in USD) :
-
+
Enter Threshold Percentage of Budget :
-
+
"""
}
if (item.equals('Enable Cloud Guard')){
html_to_be_rendered = """
${html_to_be_rendered}
-
-
-
-
- Enter Reporting Region for Cloud Guard eg london :
-
-
-
-
+
+
+ Select Reporting Region for Cloud Guard :
+ ${reg_options}
+
+
"""
}
@@ -241,20 +217,16 @@ for (item in SubChildOptions.split(",")) {
${html_to_be_rendered}
-
- Enter Compartment name to export SECURITY RULES/ROUTE RULES/DRG ROUTE RULES/NSGs :
-
- (Leave empty to fetch from all compartments)
-
-
+
+ select Compartments to export SECURITY RULES/ROUTE RULES/DRG ROUTE RULES/NSGs :
+ ${comp_options}
+
+
"""
-
}
break
}
-
-html_to_be_rendered = "${html_to_be_rendered}
"
-
-return html_to_be_rendered
\ No newline at end of file
+html_to_be_rendered = "${html_to_be_rendered}