API クライアントの作成

これらのリソースの構成は、ISV REST API を使用して行われます。 これらの API を呼び出すには、アクセス・トークンを取得する必要があります。

まだ作成していない場合は、API クライアントを作成します。 「APIクライアントの作成」 を参照してください。 そのクライアント資格情報を使用して、以下の CURL コマンドで使用するアクセス・トークンを取得します。

API クライアントには以下の資格が必要です。
  • managemfamethods
  • manageaccesspolicies

OAuth クライアント資格情報要求の例

この例を使用して、アクセス・トークンを取得します。
curl --location --request POST 'https://{{tenant}}/v1.0/endpoint/default/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={{client id}}}}' \
--data-urlencode 'client_secret={{client secret}}'

Response:

{
    "access_token": "4RKLXZUMymwu9izVsDcll9SY",
    "grant_id": "4331b551-0a23-4a8e-8ee1-3db2a2e84efe",
    "token_type": "Bearer",
    "expires_in": 7200
}