URL
GET https://{api-url}/api/v2/tenants/{tenantId}/rba/categories/{categoryId}/scripts
Sample URLs
https://{api-url}/api/v2/tenants/client_93/rba/categories/15/scripts
https://{api-url}/api/v2/tenants/msp_92/rba/categories/14/scripts
Status code
200 OK
Sample response
[
{
"id": 73,
"name": "Restart Apache Service",
"description": "Restart Apache Service",
"category": {
"id": 28,
"name": "CLIENT-Category"
},
"platforms": [
"WINDOWS",
"LINUX"
],
"parameters": [{
"id": 94,
"name": "Test Param - 1",
"description": "Testing please ignore",
"defaultValue": "10",
"type": "REQUIRED",
"dataType": "INTEGER"
},
{
"id": 95,
"name": "Test Param - 2",
"description": "Testing please ignore",
"defaultValue": "50",
"type": "OPTIONAL",
"dataType": "STRING"
},
{
"id": 96,
"name": "New param - 3",
"description": "Testing please ignore",
"defaultValue": "50",
"type": "OPTIONAL",
"dataType": "STRING"
}
],
"executionType": "SHELL",
"installTimeout": 50,
"attachment": {
"id": 0,
"name": "apache-restart.sh",
"contentURL": "https://localhost:8443/downloadScript.do?action=downloadAgent&fileName=apache-restart.sh&version=5.00"
},
"scriptVersion": "5.00",
"registryPath": "HKEY_CURRENT_USER/Control Panel/Desktop",
"registryValue": "dword:00000001",
"processName": "cmd.exe",
"serviceName": "OpsRampAgent"
},
{
"id": 77,
"name": "Restart Apache test",
"description": "Restart Apache using Shell",
"category": {
"id": 28,
"name": "CLIENT-Category"
},
"platforms": [
"WINDOWS",
"LINUX"
],
"parameters": [{
"id": 100,
"name": "Test Param - 1",
"description": "Testing please ignore",
"defaultValue": "10",
"type": "REQUIRED",
"dataType": "INTEGER"
},
{
"id": 101,
"name": "Test Param - 2",
"description": "Testing please ignore",
"defaultValue": "50",
"type": "OPTIONAL",
"dataType": "STRING"
}
],
"executionType": "SHELL",
"installTimeout": 50,
"attachment": {
"id": 0,
"name": "apache-restart.sh",
"contentURL": "https://localhost:8443/downloadScript.do?action=downloadAgent&fileName=apache-restart.sh&version=0.00"
},
"scriptVersion": "0.00",
"registryPath": "HKEY_CURRENT_USER/Control Panel/Desktop",
"registryValue": "dword:00000001",
"processName": "cmd.exe",
"serviceName": "OpsRampAgent"
},
{
"id": 78,
"name": "Restart Service",
"description": "Restart Apache using Shell",
"category": {
"id": 28,
"name": "CLIENT-Category"
},
"platforms": [
"WINDOWS",
"LINUX"
],
"parameters": [{
"id": 102,
"name": "Test Param - 1",
"description": "Testing please ignore",
"defaultValue": "10",
"type": "REQUIRED",
"dataType": "INTEGER"
},
{
"id": 103,
"name": "Test Param - 2",
"description": "Testing please ignore",
"defaultValue": "50",
"type": "OPTIONAL",
"dataType": "STRING"
}
],
"executionType": "SHELL",
"installTimeout": 50,
"attachment": {
"id": 0,
"name": "apache-restart.sh",
"contentURL": "https://localhost:8443/downloadScript.do?action=downloadAgent&fileName=apache-restart.sh&version=0.00"
},
"scriptVersion": "0.00",
"registryPath": "HKEY_CURRENT_USER/Control Panel/Desktop",
"registryValue": "dword:00000001",
"processName": "cmd.exe",
"serviceName": "OpsRampAgent"
},
{
"id": 79,
"name": "Restart Service shell",
"description": "Restart Apache using Shell",
"category": {
"id": 28,
"name": "CLIENT-Category"
},
"platforms": [
"WINDOWS",
"LINUX"
],
"parameters": [{
"id": 104,
"name": "Test Param - 1",
"description": "Testing please ignore",
"defaultValue": "10",
"type": "REQUIRED",
"dataType": "INTEGER"
},
{
"id": 105,
"name": "Test Param - 2",
"description": "Testing please ignore",
"defaultValue": "50",
"type": "OPTIONAL",
"dataType": "STRING"
}
],
"executionType": "SHELL",
"installTimeout": 50,
"attachment": {
"id": 0,
"name": "apache-restart.sh",
"contentURL": "https://localhost:8443/downloadScript.do?action=downloadAgent&fileName=apache-restart.sh&version=0.00"
},
"scriptVersion": "0.00",
"registryPath": "HKEY_CURRENT_USER/Control Panel/Desktop",
"registryValue": "dword:00000001",
"processName": "cmd.exe",
"serviceName": "OpsRampAgent"
}
]