IBM / ibm-cos-sdk-java

ibm-cos-sdk-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example code to get endpoint_url from endpoints

rvennam opened this issue · comments

The generated credentials on IBM Cloud are in this format

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

The example code should show how to get the correct region endpoint url from IBM Cloud credentials -> endpoints

    String endpoint_url = "https://s3-api.us-geo.objectstorage.softlayer.net";
    String location = "us";

@rvennam thanks we'll take a look into this and get the example code updated.

This was updated here a while ago, can this be closed? 😬

@rvennam Can we close this ticket please? Thanks!