Create job definitions
post/definitions
Creates multiple job definitions.
1{2 "links": [],3 "name": "items",4 "items": [5 {6 "creationTimeStamp": "2021-11-08T19:25:29.590Z",7 "modifiedTimeStamp": "2021-11-08T19:25:29.658Z",8 "createdBy": "sas.modelRepository",9 "modifiedBy": "sas.modelRepository",10 "version": 2,11 "id": "c2283c0e-c69c-48cb-b314-84207afe7cb0",12 "name": "Default Model Manager Scoring Job Definition",13 "type": "Compute",14 "parameters": [15 {16 "version": 1,17 "name": "_contextName",18 "defaultValue": "SAS Model Manager compute context",19 "type": "CHARACTER",20 "label": "Context Name",21 "required": false22 },23 {24 "version": 1,25 "name": "_omitJsonLog",26 "defaultValue": "true",27 "type": "BOOLEAN",28 "required": false29 }30 ],31 "code": "{mappedCode}",32 "links": [33 {34 "method": "GET",35 "rel": "self",36 "href": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",37 "uri": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",38 "type": "application/vnd.sas.job.definition"39 },40 {41 "method": "GET",42 "rel": "alternate",43 "href": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",44 "uri": "/jobDefinitions/definitions/c2283c0e-c69c-48cb-b314-84207afe7cb0",45 "type": "application/vnd.sas.summary"46 }47 ],48 "properties": [49 {50 "name": "type",51 "value": "scoring"52 },53 {54 "name": "objecttype",55 "value": "sas.models.model"56 }57 ]58 },59 {60 "creationTimeStamp": "2021-11-08T19:25:35.973Z",61 "modifiedTimeStamp": "2021-11-08T19:25:35.976Z",62 "createdBy": "sas.analyticsFlows",63 "modifiedBy": "sas.analyticsFlows",64 "version": 2,65 "id": "801d5009-3b33-41c1-b7e4-b33f77248ede",66 "name": "Analytics Flow Job Definition",67 "type": "AnalyticsFlow",68 "parameters": [69 {70 "version": 1,71 "name": "flowId",72 "type": "CHARACTER",73 "label": "Flow ID",74 "required": true75 },76 {77 "version": 1,78 "name": "toNodeUri",79 "type": "CHARACTER",80 "label": "ID of final node to run",81 "required": false82 },83 {84 "version": 1,85 "name": "casServerId",86 "defaultValue": "cas",87 "type": "CHARACTER",88 "label": "ID of CAS Server to use for Component execution",89 "required": false90 },91 {92 "version": 1,93 "name": "casSessionName",94 "defaultValue": "AdvancedAnalyticSession",95 "type": "CHARACTER",96 "label": "Name of CAS Session to use for Component execution",97 "required": false98 },99 {100 "version": 1,101 "name": "contextName",102 "type": "CHARACTER",103 "label": "Name of Compute Context to use for Component execution",104 "required": false105 }106 ],107 "code": "",108 "links": [109 {110 "method": "GET",111 "rel": "self",112 "href": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",113 "uri": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",114 "type": "application/vnd.sas.job.definition"115 },116 {117 "method": "GET",118 "rel": "alternate",119 "href": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",120 "uri": "/jobDefinitions/definitions/801d5009-3b33-41c1-b7e4-b33f77248ede",121 "type": "application/vnd.sas.summary"122 }123 ],124 "properties": []125 }126 ],127 "version": 2128}
Name | Type | Required | Description |
---|---|---|---|
parentFolderUri | string | false | The URI of the parent folder to contain the job definition. |
Name | Type | Required | Description |
---|---|---|---|
accept | string | false | Accept header value for the versioned media type corresponding to the version to be returned. |
The job definitions to create.
A pageable collection of job definition objects.
Name | Type | Required | Description |
---|---|---|---|
name | string | false | The name of the collection. |
start | integer<int64> | false | The zero-based index of the first item in the collection. |
limit | integer | false | The number of items that were requested for the collection. |
count | integer<int64> | false | If populated indicates the number of items in the collection. |
accept | string | false | A space-delimited list of media types from which an |
links | array [Link] | false | The links that apply to the collection. |
version | integer | false | The version number of the collection representation. This representation is version 2. |
items | array [Job Definition Schema] | true | An array that contains job definition resources. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. The items in the response MUST match 1 to 1 with the items in the request. If the job definition was created successfully, then the item in the response will be an application/vnd.sas.job.definition object. If the create failed for a particular job definition, then the corresponding item in the response will be an application/vnd.sas.error object. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
415 | Unsupported Media Type | The requested media type is not supported. |