GET http://[host-proxy]/api/view/DeleteUnusedRoles/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"description": {
"title": " ",
"type": "string",
"readonly": true,
"default": "Delete Unused Roles"
},
"notes": {
"title": " ",
"type": "string",
"readonly": true,
"default": "This tool allows you to delete all unused roles at a specified hierarchy/hierarchies or down from a specified hierarchy/hierarchies. Used roles will be skipped. Take caution. It is very destructive and cannot be rolled back. Please select the options from the dropdowns. If you select \"Yes\" in the first dropdown, all the unused roles down from the current Provider hierarchy will be deleted. Models where roles are used are: SiteDefaultsDoc, User, HcsLdapUserSyncDAT, HcsMoveFilterDAT, AuthorizedAdminHierarchy."
},
"all_hierarchies": {
"title": "Would you like to delete unused roles at all hierarchies?",
"type": "string",
"default": "Yes",
"choices": [
{
"value": "Yes",
"title": "Yes"
},
{
"value": "No",
"title": "No"
}
]
},
"direction": {
"title": "Would you like to delete unused roles at a specific hierarchy or down from a specific hierarchy?",
"type": "string",
"default": "At",
"choices": [
{
"value": "At",
"title": "At"
},
{
"value": "Down",
"title": "Down"
}
]
},
"at_hierarchy": {
"title": "At which hierarchy do you want to delete unused roles?",
"type": "string",
"default": "Provider",
"choices": [
{
"value": "Provider",
"title": "Provider"
},
{
"value": "Reseller",
"title": "Reseller"
},
{
"value": "Customer",
"title": "Customer"
},
{
"value": "Site",
"title": "Site"
}
]
},
"from_hierarchy": {
"title": "From which hierarchy do you want to delete unused roles?",
"type": "string",
"default": "Reseller",
"choices": [
{
"value": "Reseller",
"title": "Reseller"
},
{
"value": "Customer",
"title": "Customer"
},
{
"value": "IntermediateNode",
"title": "IntermediateNode"
},
{
"value": "Site",
"title": "Site"
}
]
},
"reseller_scope": {
"title": "All resellers or a subset of resellers?",
"type": "string",
"default": "All",
"choices": [
{
"value": "All",
"title": "All"
},
{
"value": "Specific",
"title": "Specific"
}
]
},
"reseller_x": {
"title": "Resellers",
"type": "array",
"items": {
"type": "string",
"attr_props": [
{
"name": "resellers_x",
"title": "Chosen Resellers",
"type": "string"
}
]
}
},
"customer_scope": {
"title": "All customers or a subset of customers?",
"type": "string",
"default": "All",
"choices": [
{
"value": "All",
"title": "All"
},
{
"value": "Specific",
"title": "Specific"
}
]
},
"customer_x": {
"title": "Customers",
"type": "array",
"items": {
"type": "string",
"attr_props": [
{
"name": "customers_x",
"title": "Chosen Customers",
"type": "string"
}
]
}
},
"intermediatenode_scope": {
"title": "All IntermediateNodes or a subset of IntermediateNodes?",
"type": "string",
"default": "All",
"choices": [
{
"value": "All",
"title": "All"
},
{
"value": "Specific",
"title": "Specific"
}
]
},
"intermediatenode_x": {
"title": "IntermediateNodes",
"type": "array",
"items": {
"type": "string",
"attr_props": [
{
"name": "intermediatenodes_x",
"title": "Chosen Customers",
"type": "string"
}
]
}
},
"site_scope": {
"title": "All sites or a subset of sites?",
"type": "string",
"default": "All",
"choices": [
{
"value": "All",
"title": "All"
},
{
"value": "Specific",
"title": "Specific"
}
]
},
"site_x": {
"title": "Sites",
"type": "array",
"items": {
"type": "string",
"attr_props": [
{
"name": "sites_x",
"title": "Chosen Sites",
"type": "string"
}
]
}
},
"confirmation": {
"title": "Confirmation",
"type": "string",
"required": true,
"choices": [
{
"value": "Yes",
"title": "Yes, I confirm that I want to delete unused roles"
}
]
}
},
"schema_version": "1.0"
}