from ibm_watsonx_gov.config import Credentials
credentials = Credentials(
url="",
api_key="",
service_instance_id="",
# Uncomment the following attributes when using watsonx.governance
# username="",
# version="",
# disable_ssl="",
)
①URL
以下を設定すればok
https://api.aiopenscale.cloud.ibm.com
②api_key
管理 > IAM > APIKEYでAPIキーを作成すればok
③service_instance_id
リソースリストから利用予定のopenscaleインスタンスのアクションメニューをクリック。
「アクセス・レポートのエクスポート」をクリック。
取得したファイルの、
responses > resource > crnを確認。
crn:v1:bluemix:public:aiopenscale:us-south:x/hogehoge:fugafuga::
と書かれているので、
hogehogeのコロンより後ろの部分。fugafugaの部分がservice_instance_id。
(後ろについてくる::は不要。)