SAS Viya Connection Profile
Profile Anatomy
A SAS Viya connection profile includes the following parameters:
"connectionType": "rest"
| Name | Description | Additional Notes |
|---|---|---|
endpoint | URL for the SAS Viya server. An example is https://example.sas.com. | Appears when hovering over the status bar. |
context | Context for Compute Server | Please see SAS Documentation for more information. |
clientId | Registered Client ID for SAS Viya | Please contact your SAS administrator. authorization_code and refresh_token grant types are required.Leave blank for Viya4 2022.11 and later. |
clientSecret | Registered Client Secret for SAS Viya | Please contact your SAS administrator. Leave blank for Viya4 2022.11 and later. |
Depending on your SAS Viya version, the values for the prompts differ slightly.
-
For SAS Viya 2022.11 and later, you can leave Client ID and Client Secret prompts empty and simply press Enter. (The built-in Client ID
vscodewill be used.) -
For SAS Viya 2022.10 and before (including SAS Viya 3.5), you need to provide a Client ID and secret.
For more information about Client IDs and the authentication process, please see the blog post Authentication to SAS Viya: a couple of approaches. A SAS administrator can follow the Steps 1 and 2 in the post to register a new client.
Context Properties
In Viya environments, SAS Administrators have the option to specify the allowDownload property on the context definition for the SAS Compute Server. This property determines the appearance of the Download menu item in these areas:
-
Tables in the Libraries pane.
-
Files and folders in the SAS Content and SAS Server panes.
-
The Results pane.
The following screenshot provides an example context definition setup:
