IBM / platform-services-go-sdk

Go client library for IBM Cloud Platform Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default service URLs has to be consistent accross all IAM SDKs

kavya498 opened this issue · comments

IAM Identity and IAMPAP uses default service url as iam.cloud.ibm.com
where as IAM Access group uses iam.cloud.ibm.com/v2

Terraform Provider uses one common environment variable IBMCLOUD_IAM_API_ENDPOINT for IAM related resources..
Since SDK is not consistent this would break provider when IBMCLOUD_IAM_API_ENDPOINT environment variable is exported..

Request to make default url as iam.cloud.ibm.com for IAM access group as well..

Thanks

Hi @kavya498, this change would need to be done by the service team that owns the IAM Access Groups API. First the API definition would need to change (the "/v2" part would need to be moved from the server url definition to each of the path entries within the API definition), then the SDK code for each of the SDKs will need to be re-generated and delivered in a new release of each SDK.

@mamillapalle Nagarjuna, could you please take this one?

@padamstx I will take care of this.

@narinder-kaur Just added you to the "writers" group for the platform services SDK projects. This should allow you to push a new branch and open a PR without having to use a fork.

@padamstx #169 has been merged. So this issue can be closed, or should be kept open for further verification?

The platform-services SDKs have all been updated to reflect the updated API definition where the "/v2" part of the service URL was moved to each individual path value. This will now allow a user to use a service URL like https://iam.cloud.ibm.com, like the other IAM-related services.