使用可能なバージョンのメタデータの取得

GET

/api/r-scripts

Script Execution APIの使用可能なすべてのバージョンを記述するメタデータを返します。

リクエスト

この操作にはリクエスト・パラメータはありません。

先頭に戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

使用可能なすべてのバージョンのリスト。
本文()
ルート・スキーマ: EmbedScriptApiMetadata
型: object
ソースの表示
ネストされたスキーマ: items
型: array
バージョン・リソースのコレクション。
ソースの表示
ネストされたスキーマ: EmbedScriptApiVersion
型: object
ソースの表示
先頭に戻る

次の例では、Embedded R ExecutionのREST APIについて使用可能なバージョンの情報を取得します。

curl -i -X GET --header "Authorization: Bearer ${token}" \
--header 'Accept: application/json' \
"<oml-cloud-service-location-url>/oml/api/r-scripts"

レスポンス・ヘッダー

レスポンス・ヘッダーは次のとおりです。

HTTP/1.1 200 OK
Date: Thu, 28 Jul 2022 21:04:18 GMT
Content-Type: application/json
Content-Length: 1820
Connection: keep-alive
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1;mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Content-Security-Policy: frame-ancestors 'none'

レスポンス本文

JSON形式のレスポンス本文は次のとおりです。

{"items":[
{"isLatest":true,
"lifecycle":"ACTIVE",
"links":[
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1","rel":"self"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/scripts","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/do-eval/{scriptName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/do-eval/{scriptName}/{ownerName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/table-apply/{scriptName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/table-apply/{scriptName}/{ownerName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/row-apply/{scriptName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/row-apply/{scriptName}/{ownerName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/index-apply/{scriptName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/index-apply/{scriptName}/{ownerName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/group-apply/{scriptName}","rel":"child"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1/group-apply/{scriptName}/{ownerName}","rel":"child"}],
"version":"v1"}],
"links":[
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts","rel":"self"},
  {"href":"https://<oml-cloud-service-location-url>/oml/api/r-scripts/v1","rel":"current"}]}
先頭に戻る