4.21
Get Single Template
In this topic:
GET /api/templates/<id>/
Parameter | Required | Type | Description | Example |
---|---|---|---|---|
id | Yes | Integer | ID of the application template. | 1 |
GET /api/templates/1/
Response
{
"url": "http://localhost:8080/api/templates/1/",
"assigned": "ALL",
"date": "2015-09-01",
"id": 1,
"name": "Free Form",
"owner": "moab-admin",
"permissions": [
{
"name": "ALL",
"type": "account"
},
{
"name": "ALL",
"type": "group"
},
{
"name": "ALL",
"type": "user"
}
],
"published": true,
"sections": [
{
"name": "defaults",
"value": "Basic Job Settings"
},
{
"name": "timeManagement",
"value": "Time Management"
},
{
"name": "credentials",
"value": "Credentials"
},
{
"name": "resources",
"value": "Resources"
},
{
"name": "dataManagement",
"value": "Data Management"
},
{
"name": "custom",
"value": "Custom Settings"
}
],
"use": 3,
"widgets": [
{
"default_value": "",
"editable": true,
"label": "Name",
"variable_name": "NAME",
"visible": true,
"properties": [
{
"name": "id",
"value": "name"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Duration",
"variable_name": "DURATION",
"visible": true,
"properties": [
{
"name": "id",
"value": "duration"
}
]
},
{
"default_value": "",
"editable": false,
"label": "Job Arrays",
"variable_name": "arrays",
"visible": false,
"properties": [
{
"name": "id",
"value": "arrays"
},
{
"name": "enable",
"value": "false"
},
{
"name": "start-value",
"value": "0"
},
{
"name": "end-value",
"value": "1"
},
{
"name": "start-variable",
"value": "STARTINDEX"
},
{
"name": "end-variable",
"value": "ENDINDEX"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Delay Start By",
"variable_name": "ELIGIBLEDATE",
"visible": true,
"properties": [
{
"name": "id",
"value": "eligibledate"
}
]
},
{
"default_value": "0",
"editable": true,
"label": "User Priority",
"variable_name": "PRIORITY",
"visible": true,
"properties": [
{
"name": "id",
"value": "priority"
},
{
"name": "enable",
"value": "true"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Submission Script",
"variable_name": "SCRIPT",
"visible": true,
"properties": [
{
"name": "id",
"value": "script"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Account",
"variable_name": "ACCOUNT",
"visible": true,
"properties": [
{
"name": "id",
"value": "account"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Queue / Class",
"variable_name": "DESTINATIONQUEUE",
"visible": true,
"properties": [
{
"name": "id",
"value": "destinationQueue"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Quality of Service",
"variable_name": "QOS",
"visible": true,
"properties": [
{
"name": "id",
"value": "qos"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Number of Cores",
"variable_name": "NUMOFCORES",
"visible": true,
"properties": [
{
"name": "id",
"value": "cpupernode"
}
]
},
{
"default_value": "0.5",
"editable": true,
"label": "Total Memory (GB)",
"variable_name": "MEMORYPERNODE",
"visible": true,
"properties": [
{
"name": "id",
"value": "memorypernode"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Architecture",
"variable_name": "ARCHITECTURE",
"visible": true,
"properties": [
{
"name": "id",
"value": "architecture"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Execution Path",
"variable_name": "EXECUTIONDIRECTORY",
"visible": true,
"properties": [
{
"name": "id",
"value": "exedir"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Error Path",
"variable_name": "ERRORPATH",
"visible": true,
"properties": [
{
"name": "id",
"value": "errorpath"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Output Path",
"variable_name": "OUTPUTPATH",
"visible": true,
"properties": [
{
"name": "id",
"value": "outputpath"
}
]
},
{
"default_value": "false",
"editable": true,
"label": "Merge Streams",
"variable_name": "JOIN",
"visible": true,
"properties": [
{
"name": "id",
"value": "join"
}
]
},
{
"default_value": "false",
"editable": true,
"label": "Hold Job",
"variable_name": "HOLD",
"visible": true,
"properties": [
{
"name": "id",
"value": "hold"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Script Shell",
"variable_name": "SHELL",
"visible": true,
"properties": [
{
"name": "id",
"value": "shell"
}
]
},
{
"default_value": "true",
"editable": true,
"label": "Moab Environment Variables",
"variable_name": "MOABENVIRONMENTVARIABLES",
"visible": true,
"properties": [
{
"name": "id",
"value": "moabenvironmentvariables"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Email Notification List",
"variable_name": "MAILLIST",
"visible": true,
"properties": [
{
"name": "id",
"value": "maillist"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Email Options",
"variable_name": "EMAILOPTIONS",
"visible": true,
"properties": [
{
"name": "id",
"value": "emailoptions"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Generic Resources",
"variable_name": "GENERICRESOURCES",
"visible": true,
"properties": [
{
"name": "id",
"value": "genericresources"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Feature Tags",
"variable_name": "FEATURETAGS",
"visible": true,
"properties": [
{
"name": "id",
"value": "featuretags"
}
]
}
]
}
Related Topics