-
Notifications
You must be signed in to change notification settings - Fork 37
Obtaining Service Credentials from the Command Line
biosopher edited this page Oct 31, 2015
·
4 revisions
The following command will display access credentials for you services. Replace <application_name>
with your application's name.
$ cf env <application_name>
The output will look similar to this:
{
"VCAP_SERVICES": {
"dialog": [
{
"credentials": {
"password": "HGHglThMFjUH",
"url": "https://gateway.watsonplatform.net/dialog/api",
"username": "eb78e217-69c2-461c-b722-fae7f65efb04"
},
"label": "dialog",
"name": "ipa-dialog_service",
"plan": "standard",
"tags": [
"watson",
"ibm_created",
"ibm_dedicated_public"
]
}
],
"natural_language_classifier": [
{
"credentials": {
"password": "cAUVlR5e2O3J",
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api",
"username": "0e7bc536-f63c-4174-b44d-27a5dbb28d20"
},
"label": "natural_language_classifier",
"name": "ipa-nlc_service",
"plan": "standard",
"tags": [
"watson",
"ibm_created",
"ibm_dedicated_public"
]
}
]
}
}
{
"VCAP_APPLICATION": {
"application_name": "<application_name>",
"application_uris": [
"<application_name>.mybluemix.net"
],
"application_version": "0ab29130-3118-40aa-96f1-fa69da69e316",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 128
},
"name": "<application_name>",
"space_id": "433a3902-f6fb-4c34-9819-1ff92f58579a",
"space_name": "dev",
"uris": [
"<application_name>.mybluemix.net"
],
"users": null,
"version": "0ab29130-3118-40aa-96f1-fa69da69e316"
}
}