-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.template
43 lines (36 loc) · 1.31 KB
/
.env.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file serves as a template for specifying WML credentials
# WML credentials are required to connect to APIClient
# There are multiple ways to specify wml credentials as detailed here
# https://ibm.github.io/watson-machine-learning-sdk/setup_cloud.html#authentication
# https://ibm.github.io/watson-machine-learning-sdk/setup_cpd.html#authentication
# NOTE: ONLY USE THE CASE THAT APPLIES TO YOU IN YOUR .env FILE
# COPYING ALL CASES CAN OVERWRITE ENV VARIABLES
# Case 0: Using a WML Credentials JSON file
WML_CREDENTIALS_FILE="/path/to/wml_credentials.json"
# IBM Cloud Authentication
# Case 1: Using API Key
APIKEY="<wml api key>"
LOCATION="<deployment location>"
URL="https://${LOCATION}.ml.cloud.ibm.com"
# Case 2: Using Token
TOKEN="<wml token>"
LOCATION="<deployment location>"
URL="https://${LOCATION}.ml.cloud.ibm.com"
# CP4D Authentication
# Case 3: Using Username and Password
USERNAME="<CP4D Account Username>"
PASSWORD="<CP4D Account Password>"
URL="<CP4D Web URL>"
INSTANCE_ID="openshift"
VERSION="4.0"
# Case 4: Using Username and API Key
USERNAME="<CP4D Account Username>"
APIKEY="<CP4D Account API Key>"
URL="<CP4D Web URL>"
INSTANCE_ID="openshift"
VERSION="4.0"
# Case 5: Using Access Token from CP4D notebook environment
TOKEN=${USER_ACCESS_TOKEN}
URL="<CP4D Web URL>"
INSTANCE_ID="openshift"
VERSION="4.0"