Update a context
Updates the specified context with the contents of the request body.
1{2 "createdBy": "sas.batch",3 "creationTimeStamp": "2022-06-13T11:37:08.210222Z",4 "description": "Default Batch Context",5 "id": "6794ba8a-6aff-4989-ae77-93f67286aea2",6 "isMultiServer": true,7 "launcherContextId": "01a0ce1b-a704-4fd9-8475-11ec1e746a22",8 "links": [9 {10 "method": "GET",11 "rel": "self",12 "href": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",13 "uri": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",14 "type": "application/vnd.sas.batch.context"15 },16 {17 "method": "DELETE",18 "rel": "delete",19 "href": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2",20 "uri": "/batch/contexts/6794ba8a-6aff-4989-ae77-93f67286aea2"21 },22 {23 "method": "GET",24 "rel": "up",25 "href": "/batch/contexts",26 "uri": "/batch/contexts",27 "type": "application/vnd.sas.collection",28 "itemType": "application/vnd.sas.batch.context"29 }30 ],31 "maxServers": 0,32 "minServers": 2,33 "modifiedBy": "someuser",34 "modifiedTimeStamp": "2022-06-13T12:30:39.113567Z",35 "name": "default",36 "providerOptions": "",37 "queueName": "default",38 "requiredResources": "gpuRequired",39 "runServerAs": "myServiceAcct",40 "sasOptions": "-memsize 2048",41 "serverTimeout": 600,42 "version": 343}
Name | Type | Required | Description |
---|---|---|---|
If-Match | string | false | The value of the 'ETag' header that was returned from a GET or previous PUT of this context. The request must include either the If-Unmodified-Since header or the If-Match header. |
If-Unmodified-Since | string | false | The value of the 'Last-Modified' header that was returned from a GET or previous PUT of this context. The request must include either the If-Unmodified-Since header or the If-Match header. |
Provides information about the Launcher context and other processing information that is used by the Batch service.
Name | Type | Required | Description |
---|---|---|---|
createdBy | string | false | The username of whoever created the resource. |
modifiedBy | string | false | The username of whoever last modified the resource. |
creationTimeStamp | string<date-time> | false | The timestamp for when the resource was created. |
modifiedTimeStamp | string<date-time> | false | The timestamp for when the resource was last modified. |
description | string | false | Specifies the description of the Batch context. <= 1000 characters |
id | string | false | Specifies the ID of the context assigned by the Batch service. |
isMultiServer | boolean | false | Flag indicating that this context is for a reusable Batch server. Allowed in version 3 and later of the context. |
launcherContextId | string | false | Specifies the ID of the launcher context to use. Required if launcherContextName is not provided. |
links | array [Link] | false | Specifies links that apply to the context. |
maxServers | integer | false | If this is a reusable Batch server, this is the maximum number of servers allowed to run. Allowed in version 3 and later of the context. >= 0 |
minServers | integer | false | If this is a reusable Batch server, this is the minimum number of servers always running. Allowed in version 3 and later of the context. >= 0 |
name | string | false | Specifies the name of the Batch context. <= 100 characters |
providerOptions | string | false | Specifies options to pass to SAS Workload Orchestrator. Currently there are no options that can be set. <= 1000 characters |
queueName | string | false | Specifies the name of the SAS Workload Orchestrator queue to use if SAS Workload Management is part of the deployment. <= 250 characters |
runServerAs | string | false | Specifies the service-account user name to use when working with file sets and processing jobs. Allowed in version 2 and higher of the context. <= 250 characters |
requiredResources | string | false | Specifies SAS Workload Orchestrator tags that identify on which hosts this job can run if SAS Workload Management is part of the deployment. <= 500 characters |
sasOptions | string | false | Specifies the SAS options to use on the SAS command line. <= 1000 characters |
serverTimeout | integer | false | If this is a reusable Batch server, this value is the number of seconds that the server waits for a job before terminating. The default is 300 seconds. Allowed in version 3 and later of the context. |
version | integer<int32> | false | Specifies the version number of this representation schema. This is version 1. >= 1<= 3 |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The update context request is not valid due to one of the following reasons. <UL> <LI> The request is not valid JSON. <LI> The version is not a number. <LI> The version is not a valid value. <LI> A required field is missing. <LI> A field's length is too long. <LI> The launcher context specified by the context ID or context name is not found. </UL> See the returned error response for more information. | Schema | |
404 | Not Found | The specified context is not found. | Schema | |
406 | Not Acceptable | The requested response type is not acceptable. See the returned error response for more information and acceptable response types. | Schema | |
409 | Conflict | The specified context name is already in use. Context names must be unique. | Schema | |
412 | Precondition Failed | The If-Match or If-Unmodified-Since header's precondition failed. See the returned error response for more information. | Schema | |
428 | Precondition Required | The request does not contain an If-Match or If-Unmodified-Since header as required on an update. See the returned error response for more information. | Schema |