3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】watsonx.governanceのAPIキーとかとか

Posted at

from ibm_watsonx_gov.config import Credentials

credentials = Credentials(
    url="<EDIT_THIS>",
    api_key="<EDIT_THIS>",
    service_instance_id="<EDIT_THIS>",

    # Uncomment the following attributes when using watsonx.governance
    # username="<EDIT_THIS>",
    # version="<EDIT_THIS>",
    # disable_ssl="<EDIT_THIS>",
)

①URL
以下を設定すればok
https://api.aiopenscale.cloud.ibm.com

②api_key
管理 > IAM > APIKEYでAPIキーを作成すればok

image.png

③service_instance_id
リソースリストから利用予定のopenscaleインスタンスのアクションメニューをクリック。
「アクセス・レポートのエクスポート」をクリック。

image.png

取得したファイルの、
responses > resource > crnを確認。
crn:v1:bluemix:public:aiopenscale:us-south:x/hogehoge:fugafuga::
と書かれているので、
hogehogeのコロンより後ろの部分。fugafugaの部分がservice_instance_id。
(後ろについてくる::は不要。)

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?