Create a session

post/servers/{serverName}/sessions
Internal-Use Only

Creates a new session and returns session information.

Request Samples

1

Response Samples

1{
2 "authenticationType": "string",
3 "id": "string",
4 "locale": "string",
5 "name": "string",
6 "nodeCount": 0,
7 "owner": "string",
8 "state": "string",
9 "timeOut": 0
10}

Path Parameters

NameTypeRequiredDescription
serverName
string
true

Server name in which the session is to be created.

Request Body

Information about a CAS session.

NameTypeRequiredDescription
authenticationType
string
true

The type of authentication used by the session. Valid values include OAuth, Windows, SSPI, External, PAM, Kerberos.

id
string
true

ID of the session.

locale
string
false

The locale of the session. If creating a new session, defaults to the locale of the Accept-Language header passed to the request. Sample values include en-us (US English), zh-cn (Chinese Simplified), ko-kr (Korean).

name
string
false

Name of the session. If not specified, defaults to casManagement.

nodeCount
integer
false

Number of nodes the session will use in the grid.

owner
string
true

Owner of the session.

state
string
true

Connected state of the session. Valid values include Inactive, Connected, Disconnected, Exception, Terminate, Removed.

timeOut
integer
false

Number of seconds after the last connection to the session is closed before session is terminated.

Responses

StatusMeaningDescription
201CreatedInformation about the created session was returned.Schema
400Bad RequestThe request was invalid.Schema
404Not FoundThe requested CAS server does not exist.
409ConflictThe request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.