Get a list of caslibs
Returns a collection of caslibs available on the CAS server. Supports SAS standard paging query parameters, sorting, and filtering. This is a generic call for obtaining Caslib information. Since Caslib data source content varies widely depending on the attributes of a given data source, the information is returned as application/vnd.sas.cas.caslib+json, containing key/value pairs as returned from CAS. For specifics on a given Caslib data source type and its attributes, see the CAS libraries documentation. Schema of items returned in the response collection is included below, and are of type application/vnd.sas.cas.caslib+json.
1{2 "links": [3 {4 "method": "GET",5 "rel": "up",6 "href": "/casManagement/servers/cas-shared-default/",7 "uri": "/casManagement/servers/cas-shared-default/",8 "type": "application/vnd.sas.cas.server"9 },10 {11 "method": "GET",12 "rel": "self",13 "href": "/casManagement/servers/cas-shared-default/caslibs?excludeItemLinks=false&start=0&limit=10",14 "uri": "/casManagement/servers/cas-shared-default/caslibs?excludeItemLinks=false&start=0&limit=10",15 "type": "application/vnd.sas.collection",16 "itemType": "application/vnd.sas.cas.caslib"17 },18 {19 "method": "GET",20 "rel": "collection",21 "href": "/casManagement/servers/cas-shared-default/caslibs",22 "uri": "/casManagement/servers/cas-shared-default/caslibs",23 "type": "application/vnd.sas.collection",24 "itemType": "application/vnd.sas.cas.caslib"25 },26 {27 "method": "POST",28 "rel": "create",29 "href": "/casManagement/servers/cas-shared-default/caslibs",30 "uri": "/casManagement/servers/cas-shared-default/caslibs",31 "type": "application/vnd.sas.cas.caslib"32 }33 ],34 "name": "caslibs",35 "accept": "application/vnd.sas.cas.caslib",36 "start": 0,37 "count": 3,38 "items": [39 {40 "version": 1,41 "name": "CASUSER(userId)",42 "type": "PATH",43 "description": "Personal File System Caslib",44 "scope": "global",45 "path": "/opt/sas/viya/config/data/cas/default/casuserlibraries/userId/",46 "hidden": false,47 "attributes": [48 {49 "key": "active",50 "value": {51 "true": null52 }53 },54 {55 "key": "personal",56 "value": {57 "true": null58 }59 },60 {61 "key": "subDirs",62 "value": {63 "true": null64 }65 }66 ],67 "links": [68 {69 "method": "GET",70 "rel": "up",71 "href": "/casManagement/servers/cas-shared-default/caslibs",72 "uri": "/casManagement/servers/cas-shared-default/caslibs",73 "type": "application/vnd.sas.collection",74 "itemType": "application/vnd.sas.cas.caslib"75 },76 {77 "method": "GET",78 "rel": "self",79 "href": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)",80 "uri": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)",81 "type": "application/vnd.sas.cas.caslib"82 },83 {84 "method": "PATCH",85 "rel": "patch",86 "href": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)",87 "uri": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)",88 "type": "application/vnd.sas.cas.caslib",89 "responseType": "application/vnd.sas.cas.caslib"90 },91 {92 "method": "DELETE",93 "rel": "delete",94 "href": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)",95 "uri": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)"96 },97 {98 "method": "GET",99 "rel": "tables",100 "href": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)/tables",101 "uri": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)/tables",102 "type": "application/vnd.sas.collection",103 "itemType": "application/vnd.sas.cas.table"104 },105 {106 "method": "GET",107 "rel": "sources",108 "href": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)/sources",109 "uri": "/casManagement/servers/cas-shared-default/caslibs/CASUSER(userId)/sources",110 "type": "application/vnd.sas.collection",111 "itemType": "application/vnd.sas.cas.source.table"112 },113 {114 "method": "GET",115 "rel": "dataSource",116 "href": "/dataSources/providers/cas/sources/cas-shared-default~fs~CASUSER(userId)",117 "uri": "/dataSources/providers/cas/sources/cas-shared-default~fs~CASUSER(userId)",118 "type": "application/vnd.sas.data.source"119 }120 ],121 "transient": true122 },123 {124 "version": 1,125 "name": "Public",126 "type": "PATH",127 "description": "Shared and writeable caslib, accessible to all users.",128 "scope": "global",129 "path": "/opt/sas/viya/config/data/cas/default/public/",130 "hidden": false,131 "attributes": [132 {133 "key": "active",134 "value": {135 "false": null136 }137 },138 {139 "key": "personal",140 "value": {141 "false": null142 }143 },144 {145 "key": "subDirs",146 "value": {147 "true": null148 }149 }150 ],151 "links": [152 {153 "method": "GET",154 "rel": "up",155 "href": "/casManagement/servers/cas-shared-default/caslibs",156 "uri": "/casManagement/servers/cas-shared-default/caslibs",157 "type": "application/vnd.sas.collection",158 "itemType": "application/vnd.sas.cas.caslib"159 },160 {161 "method": "GET",162 "rel": "self",163 "href": "/casManagement/servers/cas-shared-default/caslibs/Public",164 "uri": "/casManagement/servers/cas-shared-default/caslibs/Public",165 "type": "application/vnd.sas.cas.caslib"166 },167 {168 "method": "PATCH",169 "rel": "patch",170 "href": "/casManagement/servers/cas-shared-default/caslibs/Public",171 "uri": "/casManagement/servers/cas-shared-default/caslibs/Public",172 "type": "application/vnd.sas.cas.caslib",173 "responseType": "application/vnd.sas.cas.caslib"174 },175 {176 "method": "DELETE",177 "rel": "delete",178 "href": "/casManagement/servers/cas-shared-default/caslibs/Public",179 "uri": "/casManagement/servers/cas-shared-default/caslibs/Public"180 },181 {182 "method": "GET",183 "rel": "tables",184 "href": "/casManagement/servers/cas-shared-default/caslibs/Public/tables",185 "uri": "/casManagement/servers/cas-shared-default/caslibs/Public/tables",186 "type": "application/vnd.sas.collection",187 "itemType": "application/vnd.sas.cas.table"188 },189 {190 "method": "GET",191 "rel": "sources",192 "href": "/casManagement/servers/cas-shared-default/caslibs/Public/sources",193 "uri": "/casManagement/servers/cas-shared-default/caslibs/Public/sources",194 "type": "application/vnd.sas.collection",195 "itemType": "application/vnd.sas.cas.source.table"196 },197 {198 "method": "GET",199 "rel": "dataSource",200 "href": "/dataSources/providers/cas/sources/cas-shared-default~fs~Public",201 "uri": "/dataSources/providers/cas/sources/cas-shared-default~fs~Public",202 "type": "application/vnd.sas.data.source"203 }204 ],205 "transient": false206 },207 {208 "version": 1,209 "name": "Samples",210 "type": "PATH",211 "description": "Stores sample data (supplied by SAS).",212 "scope": "global",213 "path": "/opt/sas/viya/config/data/cas/default/samples/",214 "hidden": false,215 "attributes": [216 {217 "key": "active",218 "value": {219 "false": null220 }221 },222 {223 "key": "personal",224 "value": {225 "false": null226 }227 },228 {229 "key": "subDirs",230 "value": {231 "false": null232 }233 }234 ],235 "links": [236 {237 "method": "GET",238 "rel": "up",239 "href": "/casManagement/servers/cas-shared-default/caslibs",240 "uri": "/casManagement/servers/cas-shared-default/caslibs",241 "type": "application/vnd.sas.collection",242 "itemType": "application/vnd.sas.cas.caslib"243 },244 {245 "method": "GET",246 "rel": "self",247 "href": "/casManagement/servers/cas-shared-default/caslibs/Samples",248 "uri": "/casManagement/servers/cas-shared-default/caslibs/Samples",249 "type": "application/vnd.sas.cas.caslib"250 },251 {252 "method": "PATCH",253 "rel": "patch",254 "href": "/casManagement/servers/cas-shared-default/caslibs/Samples",255 "uri": "/casManagement/servers/cas-shared-default/caslibs/Samples",256 "type": "application/vnd.sas.cas.caslib",257 "responseType": "application/vnd.sas.cas.caslib"258 },259 {260 "method": "DELETE",261 "rel": "delete",262 "href": "/casManagement/servers/cas-shared-default/caslibs/Samples",263 "uri": "/casManagement/servers/cas-shared-default/caslibs/Samples"264 },265 {266 "method": "GET",267 "rel": "tables",268 "href": "/casManagement/servers/cas-shared-default/caslibs/Samples/tables",269 "uri": "/casManagement/servers/cas-shared-default/caslibs/Samples/tables",270 "type": "application/vnd.sas.collection",271 "itemType": "application/vnd.sas.cas.table"272 },273 {274 "method": "GET",275 "rel": "sources",276 "href": "/casManagement/servers/cas-shared-default/caslibs/Samples/sources",277 "uri": "/casManagement/servers/cas-shared-default/caslibs/Samples/sources",278 "type": "application/vnd.sas.collection",279 "itemType": "application/vnd.sas.cas.source.table"280 },281 {282 "method": "GET",283 "rel": "dataSource",284 "href": "/dataSources/providers/cas/sources/cas-shared-default~fs~Samples",285 "uri": "/dataSources/providers/cas/sources/cas-shared-default~fs~Samples",286 "type": "application/vnd.sas.data.source"287 }288 ],289 "transient": false290 }291 ],292 "limit": 10,293 "version": 2294}
Name | Type | Required | Description |
---|---|---|---|
serverName | string | true | Server name for which caslibs are being requested. |
Name | Type | Required | Description |
---|---|---|---|
includeHidden | boolean | false | Determines whether caslibs marked as hidden should be included in the results. Defaults to false. |
sessionId | string | false | Session ID (used when session-specific caslibs are also desired in results). |
excludeItemLinks | boolean | false | Determines whether item links are excluded from results. Defaults to false. |
filter | string<filter-criteria> | false | Filter criteria for returned items. The valid filter fields are the first-level fields in each item. The supported functions are and, or, not, eq, lt, le, gt, ge, contains, startsWith, endsWith, and isNull. Some sample queries: Search by name starting with: filter=startsWith(name, 'CAS') Search by name: filter=eq(name, 'CASUSER') Search for multiple items: filter=in(name, 'CASUSER', 'Public') |
limit | integer | false | Maximum number of items to return in this page of results. The actual number of returned items can be less if the collection has been exhausted. Defaults to 10. |
sortBy | string<sort-criteria> | false | Sort returned items. The sort criteria supports the first-level fields in each item. Some sample sorts: Sort by ascending name: sortBy=name:ascending Sort by descending name: sortBy=name:descending The default sort is by name in ascending order. |
start | integer | false | The starting index of the first item in a page. Defaults to 0. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request was successful. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The requested CAS server or Caslib does not exist. | ||
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. Details are included in the response body. |