(Click to open topic with navigation)
In this topic:
GET /api/templates/
Parameter | Required | Type | Description | Example |
---|---|---|---|---|
page_size | No | Integer |
Specifies count of templates per page. |
page_size=3 |
page | No | Integer | Specifies number of page. | page=2 |
Parameter | Required | Type | Description | Example |
---|---|---|---|---|
name | No | String | Specifies name of template for filtering | name=Free Form |
owner | No | String | Specifies owner's name for filtering | owner=moab-admin |
published | No | Boolean | Specifies status of template for filtering | published=True |
permissions__user__name__in | No | List | Specifies list of users that template should contain | permissions__user__name__in=hpotter,hgranger |
permissions__group__name__in | No | List | Specifies list of groups that template should contain | permissions__group__name__in=hpotter,hgranger |
permissions__account__name__in | No | List | Specifies list of accounts that template should contain | permissions__account__name__in=DEFAULT,QA |
date__gte | No | Date | Specifies the date before which the template was created | date__gte=2015-09-01 |
date__lte | No | Date | Specifies the date after which the template was created | date__lte=2015-09-16 |
GET /api/templates/?page_size=1&published=True
GET /api/templates/?page_size=1&published=True
------------------------------------
{
"count": 7,
"next": "http://localhost:8080/api/templates/?page=2&page_size=1&published=True",
"previous": null,
"results": [
{
"url": "http://localhost:8080/api/templates/2/",
"assigned": "ALL",
"date": "2015-08-07",
"id": 2,
"name": "asdasd",
"owner": "hpotter",
"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"
},
{
"name": "basic",
"value": "Basic Settings"
},
{
"name": "advanced",
"value": "Advanced Settings"
}
],
"use": 0,
"widgets": [
{
"default_value": "",
"editable": true,
"label": "Name",
"variable_name": "NAME",
"visible": true,
"properties": [
{
"name": "id",
"value": "name"
}
]
},
{
"default_value": "0",
"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": "0",
"editable": false,
"label": "Delay Start By",
"variable_name": "ELIGIBLEDATE",
"visible": false,
"properties": [
{
"name": "id",
"value": "eligibledate"
}
]
},
{
"default_value": "0",
"editable": false,
"label": "User Priority",
"variable_name": "USERPRIORITY",
"visible": false,
"properties": [
{
"name": "id",
"value": "priority"
},
{
"name": "enable",
"value": "false"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Script",
"variable_name": "SCRIPT",
"visible": true,
"properties": [
{
"name": "id",
"value": "script"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Account",
"variable_name": "ACCOUNT",
"visible": false,
"properties": [
{
"name": "id",
"value": "account"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Queue / Class",
"variable_name": "DESTINATIONQUEUE",
"visible": false,
"properties": [
{
"name": "id",
"value": "destinationQueue"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Quality of Service",
"variable_name": "QOS",
"visible": false,
"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": false,
"properties": [
{
"name": "id",
"value": "exedir"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Error Path",
"variable_name": "ERRORPATH",
"visible": false,
"properties": [
{
"name": "id",
"value": "errorpath"
}
]
},
{
"default_value": "",
"editable": true,
"label": "Output Path",
"variable_name": "OUTPUTPATH",
"visible": false,
"properties": [
{
"name": "id",
"value": "outputpath"
}
]
},
{
"default_value": "false",
"editable": false,
"label": "Merge Streams",
"variable_name": "JOIN",
"visible": false,
"properties": [
{
"name": "id",
"value": "join"
}
]
},
{
"default_value": "false",
"editable": false,
"label": "Hold Job",
"variable_name": "HOLD",
"visible": false,
"properties": [
{
"name": "id",
"value": "hold"
}
]
},
{
"default_value": "",
"editable": false,
"label": "Script Shell",
"variable_name": "SHELL",
"visible": false,
"properties": [
{
"name": "id",
"value": "shell"
}
]
},
{
"default_value": "true",
"editable": false,
"label": "Moab Environment Variables",
"variable_name": "MOABENVIRONMENTVARIABLES",
"visible": false,
"properties": [
{
"name": "id",
"value": "moabenvironmentvariables"
}
]
},
{
"default_value": "",
"editable": false,
"label": "Email Notification List",
"variable_name": "MAILLIST",
"visible": false,
"properties": [
{
"name": "id",
"value": "maillist"
}
]
},
{
"default_value": "",
"editable": false,
"label": "Email Options",
"variable_name": "EMAILOPTIONS",
"visible": false,
"properties": [
{
"name": "id",
"value": "emailoptions"
}
]
},
{
"default_value": "",
"editable": false,
"label": "Generic Resources",
"variable_name": "GENERICRESOURCES",
"visible": false,
"properties": [
{
"name": "id",
"value": "genericresources"
}
]
},
{
"default_value": "null",
"editable": false,
"label": "Feature Tags",
"variable_name": "FEATURETAGS",
"visible": false,
"properties": [
{
"name": "id",
"value": "featuretags"
}
]
}
]
}
]
}
Related Topics