ibm-watson-data-lab / ibmos2spark

Facilitates Data I/O between Spark and IBM Object Storage services.
10 stars 8 forks source link

Credential dictionary and key alignment #40

Open gadamc opened 6 years ago

gadamc commented 6 years ago

In our version of COS, we supply credentials with the following keys:

credentials = {
    'endpoint': 'XXX',
    'api_key': 'XXX',
    'service_id': 'XXX'
}

However, on bluemix, when viewing a set of Service Credentials for the service, the keys are in a different format:

{
  "apikey": "",
  "endpoints": "https://cos-service.bluemix.net/endpoints",
  "iam_apikey_description": "",
  "iam_apikey_name": "",
  "iam_role_crn": "r",
  "iam_serviceid_crn": "",
  "resource_instance_id": ""
}

Are these suppose to match? Is "service_id" the same as "resource_instance_id"?