レポート定義の取得
get
/services/rest/v1/reports/{reportPath}
レポートに関する情報(デフォルトのテンプレート、出力タイプ、テンプレートIDのリストなど)を取得します。テンプレートIDのリストを使用して、デフォルト以外のテンプレートでレポートを生成できます。
リクエスト
パス・パラメータ
- reportPath: string
URLエンコードされたレポート・パス。たとえば、レポート・パスが"/Sample Lite/Published Reporting/Reports/Balance Letter"の場合、エンコードされたレポート・パスは"%2FSample%20Lite%2FPublished%20Reporting%2FReports%2FBalance%20Letter"となります。エンコードされたスラッシュを渡すように構成されていないロード・バランサを介してBI PublisherにRESTリクエストを送信する場合は、二重にエンコードされたスラッシュを使用します。たとえば、レポート・パスがSample Lite/Published Reporting/Reports/Balance Letterの場合、エンコードされたレポート・パスはSample%20Lite%252FPublished%20Reporting%252FReports%252FBalance%20Letterとなります。
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
レポート定義を返します。
ルート・スキーマ: ReportDefinition
型:
ソースを表示
object
- autoRun(オプション): boolean
trueは、レポート・プロパティの「オートラン」がオンになっていることを意味します。
- cacheDocument(オプション): boolean
trueは、レポート・プロパティの「ドキュメント・キャッシュの有効化」がオンになっていることを意味します。
- controledByExtApp(オプション): boolean
レポートの定義を外部アプリケーションで制御する(true)かまたはしない(false)かを示します。
- dataModelURL(オプション): string
データ・モデルの定義を取得する.xdmファイルの場所。
- defaultOutputFormat(オプション): string
デフォルトの出力フォーマット。有効な値: csv (CSV) data (データ) eText (eTextテンプレート) excel (Microsoft Excel) excel2000 (Microsoft Excel 2000) フラッシュ(Adobe Flash) html (HTML) mhtml (MIME HTML) pdf (Adobe PDF) ppt (Microsoft PowerPoint) rtf (リッチ・テキスト・フォーマット)
- defaultTemplateId(オプション): string
そのレポートに対して特定されたデフォルトのテンプレート。
- diagnostics(オプション): boolean
trueは、そのレポートに対して診断がオンになっていることを意味します。
- ESSJobName(オプション): string
ESSジョブ名。
- listOfTemplateFormatsLabelValues(オプション): array listOfTemplateFormatsLabelValues
- onLine(オプション): boolean
trueは、レポート・プロパティの「レポート・オンラインの実行」がオンになっていることを意味します。
- openLinkInNewWindow(オプション): boolean
trueは、レポート・プロパティの「新規ウィンドウでリンクを開く」がオンになっていることを意味します。
- parameterColumns(オプション): integer
レポート・プロパティの「行当たりのパラメータ数」の値。
- reportDefnTitle(オプション): string
非アクティブ。使用しないでください。
- reportDescription(オプション): string
ユーザーがレポートに割当てた説明。
- reportName(オプション): string
ユーザーがレポートに割当てた名前。
- reportParameterNameValues(オプション): array reportParameterNameValues
- reportType(オプション): string
非アクティブ。使用しないでください。
- showControls(オプション): boolean
trueは、レポート・プロパティの「コントロールの表示」がオンになっていることを意味します。
- showReportLinks(オプション): boolean
trueは、レポート・プロパティの「レポート・リンクの表示」がオンになっていることを意味します。
- templateIds(オプション): array templateIds
レポート・テンプレートのレイアウト名を渡します。
ネストされたスキーマ: TemplateFormatsLabelValues
型:
ソースを表示
object
- active(オプション): boolean
テンプレートがアクティブ(true)またはアクティブでない(false)かを示します。
- applyStyleTemplate(オプション): boolean
スタイル・テンプレートを適用する(true)か適用しない(false)かを示します。
- default(オプション): boolean
テンプレートがデフォルト・テンプレート(true)かデフォルト・テンプレートでない(false)かを示します。
- listOfTemplateFormatLabelValue(オプション): array listOfTemplateFormatLabelValue
TemplateFormatLabelValueのラベルと値のペアが格納されます。
- templateAvailableLocales(オプション): array templateAvailableLocales
テンプレートに対して定義されている使用可能なロケール・オプション。
- templateBaseLocale(オプション): string
テンプレートに対して定義されているベース・ロケール・オプション。
- templateDefaultLocale(オプション): string
テンプレートに対して定義されているデフォルト・ロケール・オプション。
- templateID(オプション): string
Oracle BI Publisherでテンプレートに割り当てられている名前です。たとえば: "Employee Listing"。
- templateType(オプション): string
テンプレートのタイプです。たとえば: "rtf"、"pdf"
- templateURL(オプション): string
Oracle BI Publisherリポジトリ内のテンプレート・ファイル名です。たとえば: "Employee Listing.rtf"。
- viewOnline(オプション): boolean
テンプレートがオンラインで表示できる(true)か表示できない(false)かを示します。
ネストされたスキーマ: listOfTemplateFormatLabelValue
型:
array
TemplateFormatLabelValueのラベルと値のペアが格納されます。
ソースを表示
ネストされたスキーマ: TemplateFormatLabelValue
型:
ソースを表示
object
- templateFormatLabel(オプション): string
テンプレート・フォーマットに対して表示されるラベルです。たとえば、"HTML"、"PDF"、"Excel"などがあります。
- templateFormatValue(オプション): string
ラベルに対応するテンプレート・フォーマットの値です。たとえば、"html"、"pdf"、"excel"などがあります。
ネストされたスキーマ: ParamNameValues
型:
ソースを表示
object
- listOfParamNameValues(オプション): array listOfParamNameValues
ParamNameValueの配列
ネストされたスキーマ: ParamNameValue
型:
ソースを表示
object
- dataType(オプション): string
有効な値: Boolean Date Float Integer String
- dateFormatString(オプション): string
UITypeがDateの場合は、日付フォーマット文字列を指定します。日付フォーマット文字列にはJava日付フォーマットを使用する必要があります(MM-DD-YYYYなど)。
- dateFrom(オプション): string
UITypeがDateの場合は、日付の開始値を指定します。
- dateTo(オプション): string
UITypeがDateの場合は、日付の終了値を指定します。
- defaultValue(オプション): string
パラメータのデフォルト値を指定します。
- fieldSize(オプション): string
パラメータ・タイプが"Text"または"Date"の場合に、パラメータのテキスト・フィールド・サイズを指定します。
- label(オプション): string
パラメータ・タイプが"Hidden"以外の場合に、パラメータの表示ラベルを指定します。
- lovLabels(オプション): array lovLabels
パラメータ・タイプが"Menu"の場合に、ユーザーに表示される値リストの値を指定します。
- multiValuesAllowed(オプション): boolean
trueは、パラメータに複数の値が含まれている可能性があることを意味します。
- name(オプション): string
パラメータ名。
- refreshParamOnChange(オプション): boolean
パラメータ・タイプが"Text"または"Menu"で、このパラメータの値がtrueの場合は、このパラメータに対する選択が行われたときに他の定義済パラメータがリフレッシュされることを示します。
- selectAll(オプション): boolean
パラメータ・タイプが"Menu"の場合、trueは値リストのすべての値を選択できることを示します。
- templateParam(オプション): boolean
trueは、パラメータがRTFテンプレートで定義されていることを示します。
- UIType(オプション): string
Oracle BI Publisherのデータ・モデル・ユーザー・インタフェースで定義されているパラメータのタイプです。有効な値: Date Hidden Menu Search Text
- useNullForAll(オプション): boolean
パラメータ・タイプが"Menu"の場合、trueはパラメータのすべての値が選択されるとnullが渡されることを示します。
- values(オプション): array values
パラメータ値。
例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、レポートに関する情報を取得する方法を示しています。
curl -u admin:welcome1 -H "Accept:application/json" -X GET https://host.com:9502/xmlpserver/services/rest/v1/reports/Sample%20Lite%252FPublished%20Reporting%252FReports%252FBalance%20Letter -v -i
レスポンス・ヘッダーの例
次にレスポンス・ヘッダーの例を示します。
* Trying IP Address... * Connected to host.com (IP Address) port 9502 (#0) * Server auth using Basic with user 'admin' > GET /xmlpserver/services/rest/v1/reports/Sample%20Lite%252FPublished%20Reporting%252FReports%252FBalance%20Letter HTTP/1.1 > Host: host.com:9502 > Authorization: Basic YWRtaW46d2VsY29tZTE= > User-Agent: curl/7.86.0 > Accept:application/json > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK HTTP/1.1 200 OK < Cache-Control: no-store Cache-Control: no-store < Date: Tue, 09 May 2023 08:09:23 GMT Date: Tue, 09 May 2023 08:09:23 GMT < Pragma: no-cache Pragma: no-cache < Content-Length: 2805 Content-Length: 2805 < Content-Type: application/json Content-Type: application/json < Content-Security-Policy: default-src 'self' ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; style-src 'self' 'unsafe-inline' ; img-src 'self' data:; media-src 'none'; frame-ancestors 'self' Content-Security-Policy: default-src 'self' ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; style-src 'self' 'unsafe-inline' ; img-src 'self' data:; media-src 'none'; frame-ancestors 'self' < X-ORACLE-DMS-RID: 0 X-ORACLE-DMS-RID: 0 < X-ORACLE-DMS-ECID: d7b33589-3787-4136-b64e-32d5a38ad04e-001b6572 X-ORACLE-DMS-ECID: d7b33589-3787-4136-b64e-32d5a38ad04e-001b6572 < X-FRAME-OPTIONS: SAMEORIGIN X-FRAME-OPTIONS: SAMEORIGIN
レスポンス本文の例
JSON形式のレスポンス本文のコンテンツの例を次に示します。
* Connection #0 to host host.com left intact
{"ESSPackageName":"","ESSJobName":"","autoRun":"true","cacheDocument":"false","controledByExtApp":"false","dataModelURL":"/Sample Lite/Published Reporting/Data Models/Balance Letter Datamodel.xdm","defaultOutputFormat":"pdf","defaultTemplateId":"Publisher Template","diagnostics":"false","listOfTemplateFormatsLabelValues":{"item":[{"active":"true","applyStyleTemplate":"false","default":"true","listOfTemplateFormatLabelValue":{"item":[{"templateFormatLabel":"Interactive","templateFormatValue":"analyze"},{"templateFormatLabel":"HTML","templateFormatValue":"html"},{"templateFormatLabel":"PDF","templateFormatValue":"pdf"},{"templateFormatLabel":"Excel (*.xlsx)","templateFormatValue":"xlsx"},{"templateFormatLabel":"PowerPoint (*.pptx)","templateFormatValue":"pptx"},{"templateFormatLabel":"CSV","templateFormatValue":"csv"}]},"templateAvailableLocales":{"item":["en_US"]},"templateBaseLocale":null,"templateDefaultLocale":"en_US","templateID":"Publisher Template","templateType":"xpt","templateURL":"Untitled.xpt","viewOnline":"true"},{"active":"true","applyStyleTemplate":"false","default":"false","listOfTemplateFormatLabelValue":{"item":[{"templateFormatLabel":"HTML","templateFormatValue":"html"},{"templateFormatLabel":"PDF","templateFormatValue":"pdf"},{"templateFormatLabel":"RTF","templateFormatValue":"rtf"},{"templateFormatLabel":"Excel (*.xlsx)","templateFormatValue":"xlsx"},{"templateFormatLabel":"PowerPoint (*.pptx)","templateFormatValue":"pptx"},{"templateFormatLabel":"CSV","templateFormatValue":"csv"}]},"templateAvailableLocales":{"item":["en_US"]},"templateBaseLocale":null,"templateDefaultLocale":"en_US","templateID":"RTF Template","templateType":"rtf","templateURL":"Balance Letter.rtf","viewOnline":"true"},{"active":"true","applyStyleTemplate":"true","default":"false","listOfTemplateFormatLabelValue":{"item":[{"templateFormatLabel":"HTML","templateFormatValue":"html"},{"templateFormatLabel":"PDF","templateFormatValue":"pdf"},{"templateFormatLabel":"RTF","templateFormatValue":"rtf"},{"templateFormatLabel":"Excel (*.xlsx)","templateFormatValue":"xlsx"},{"templateFormatLabel":"PowerPoint (*.pptx)","templateFormatValue":"pptx"},{"templateFormatLabel":"CSV","templateFormatValue":"csv"}]},"templateAvailableLocales":{"item":["en_US"]},"templateBaseLocale":null,"templateDefaultLocale":"en_US","templateID":"RTF Corp Styles","templateType":"rtf","templateURL":"Balance Letter2.rtf","viewOnline":"true"}]},"onLine":"true","openLinkInNewWindow":"true","parameterColumns":3,"reportDefnTitle":"","reportDescription":"Data Model: Balance Letter Data Model --Layouts: RTF, XPT -- Features: Style Template","reportName":"Balance Letter","reportType":null,"showControls":"true","showReportLinks":"true","templateIds":{"item":["Publisher Template","RTF Template","RTF Corp Styles"]}}