ビジネス問合せの取得
get
/OracleBAMREST/api/projects/{projectname}/queries/businessqueries/{businessqueryname}
ビジネス問合せ名に基づいてビジネス問合せの詳細を取得します。
リクエスト
この操作にはリクエスト・パラメータはありません。
先頭に戻るレスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
レスポンスの例(application/json)
{
"query":{
"opaqueSql":"",
"systemManaged":false,
"selectedFields":[
],
"internal":false,
"groupFilter":{
"name":"groupFilter",
"type":"ALL",
"branches":[
],
"entries":[
],
"none":false
},
"displayName":"ErrorCategory_DRL_BQ_v1",
"createdDate":"2015-05-12T23:55:24.345+0000",
"runtimeFilter":{
"name":"runtimeFilter",
"type":"ALL",
"branches":[
],
"entries":[
],
"none":false
},
"topNEnabled":false,
"internalFilter":{
"name":"internalFilter",
"type":"ALL",
"branches":[
{
"name":null,
"type":"ANY",
"branches":[
],
"entries":[
{
"column":"ErrorType",
"lhsColumn":{
"name":"ErrorType",
"displayName":"Error Type"
},
"operator":"EQ",
"rhsValue":{
"value":"Permanent",
"beamObject":null
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
},
{
"column":"ErrorType",
"lhsColumn":{
"name":"ErrorType",
"displayName":"Error Type"
},
"operator":"EQ",
"rhsValue":{
"value":"Transient",
"beamObject":null
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
}
],
"none":false
}
],
"entries":[
{
"column":"CF_To_Extract_Year",
"lhsColumn":{
"name":"CF_To_Extract_Year",
"displayName":"CF_To_Extract_Year"
},
"operator":"EQ",
"rhsValue":{
"beamObject":{
"itemType":"Parameter",
"projectName":"BAMFramework",
"itemName":"ASN_DAYWISEVOL_YEAR_PARAM"
}
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
},
{
"column":"CF_To_Extract_Month",
"lhsColumn":{
"name":"CF_To_Extract_Month",
"displayName":"CF_To_Extract_Month"
},
"operator":"EQ",
"rhsValue":{
"beamObject":{
"itemType":"Parameter",
"projectName":"BAMFramework",
"itemName":"ASN_DAYWISEVOL_MONTH_PARAM"
}
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
},
{
"column":"CF_To_Extract_DAY",
"lhsColumn":{
"name":"CF_To_Extract_DAY",
"displayName":"CF_To_Extract_DAY"
},
"operator":"EQ",
"rhsValue":{
"beamObject":{
"itemType":"Parameter",
"projectName":"BAMFramework",
"itemName":"ASN_DAYWISEVOL_DAY_PARAM"
}
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
},
{
"column":"LAST_24_HOUR_DATE",
"lhsColumn":{
"name":"LAST_24_HOUR_DATE",
"displayName":"LAST_24_HOUR_DATE"
},
"operator":"LT",
"rhsValue":{
"value":3,
"beamObject":null
},
"isDateTimeLike":false,
"dateCompareMode":"DATETIME"
}
],
"none":false
},
"dataObjectName":"CommonAudit_DO",
"id":"/project/BAMFramework/businessquery/ErrorCategory_DRL_BQ_v1",
"createdBy":"testuser",
"name":"ErrorCategory_DRL_BQ_v1",
"hierarchy":null,
"topN":3,
"virtualDO":null,
"dataSourceName":"",
"opaque":false,
"modifiedBy":"testuser",
"type":"GROUP",
"topNMeasure":null,
"dataSeries":[
"COUNT(*)"
],
"modifiedDate":"2015-05-12T23:55:24.345+0000",
"projectName":"BAMFramework",
"labelSeries":[
"ErrorType"
],
"calculatedFields":[
],
"groups":[
"CF_To_Extract_DAY",
"CF_TO_EXTRACT_HOUR"
],
"description":null,
"timeGroupings":{
"entries":[
]
},
"sorts":{
"CF_To_Extract_DAY":0,
"CF_TO_EXTRACT_HOUR":0
}
},
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/businessqueries/ErrorCategory_DRL_BQ_v1"
}
]
}
例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、ID別にパブリッシュされた項目を参照する方法を示しています。
curl -i -X GET https://<hostname>/content/published/api/v1/items
または
curl -i -X GET ?H ???access-token:Y2FhcyBkZWZhdWx0IHRva2Vu??? https://<hostname>/content/published/api/v1/items
例: レスポンス・ヘッダー
次にレスポンス・ヘッダーの例を示します。
HTTP/1.1 200 OK Cache-Control: max-age=0 Content-Length: 1081 Content-Type: application/json Date: Tue, 03 Jan 2017 10:02:23 GMT Etag: "b56fbd1e969eecbfdb09aec23632494b6ca2a2cb5c2e6a7cd4099514d17ac6f0" Server: Apache-Coyote/1.1 X-XSS-Protection: 1 x-content-type-options: nosniff
例: レスポンス本文
JSON形式で返されるレスポンスの例を次に示します。ID別にパブリッシュされた項目の詳細を表示します: ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef。
{
"id": "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
"type": "ModelType",
"name": "BMW",
"description": "BMW model description",
"createdby": "userName",
"createddate":
{
"value": "2017-01-03T09:48:56.110Z",
"timezone": "UTC",
"description": ""
},
"updatedby": "userName",
"updateddate":
{
"value": "2017-01-03T10:02:21.360Z",
"timezone": "UTC",
"description": ""
},
"links":
[
{
"href": "https://<hostname>/content/published/api/v1/items/ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
"rel": "self",
"templated": false,
"method": "PUT",
"profile": "",
"mediaType": ""
},
{
"href": "https://<publish>/content/published/api/v1/items/ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
"rel": "canonical",
"templated": false,
"method": "PUT",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/published/api/v1/metadata-catalog/items/",
"rel": "describedby",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": "application/schema+json"
}
],
"data" : {
"Model": "BMW Z4"
"Year": 2015,
}
}
例: パブリッシュされたデジタル項目
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、指定されたIDのパブリッシュされた項目を参照する方法を示しています。
curl -i -X GET https://<hostname>/content/published/api/v1/items/DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4?access-token=Y2FhcyBkZWZhdWx0IHRva2Vu
または
curl -i -X GET ?H ???access-token:Y2FhcyBkZWZhdWx0IHRva2Vu??? https://<hostname>/content/published/api/v1/items/DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4
例: レスポンス・ヘッダー
次にレスポンス・ヘッダーの例を示します。
HTTP/1.1 200 OK Cache-Control: max-age=0 Content-Length: 1081 Content-Type: application/json Date: Tue, 03 Jan 2017 10:02:23 GMT Etag: "b56fbd1e969eecbfdb09aec23632494b6ca2a2cb5c2e6a7cd4099514d17ac6f0" Server: Apache-Coyote/1.1 X-XSS-Protection: 1 x-content-type-options: nosniff
例: レスポンス本文
JSON形式で返されるレスポンスの例を次に示します。ID別にパブリッシュされた項目の詳細を表示します: DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4。
{
"id": "DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4",
"type": "DigitalAsset",
"name": "audi_interior.jpg",
"description": "",
"createdby": "userName",
"createddate":
{
"value": "2016-08-19T21:24:38.000Z",
"timezone": "UTC",
"description": ""
},
"updatedby": "userName",
"updateddate":
{
"value": "2016-08-19T21:24:38.000Z",
"timezone": "UTC",
"description": ""
},
"links":
[
{
"href": "https://<hostname>/content/published/api/v1/items/DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4?access-token=Y2FhcyBkZWZhdWx0IHRva2Vu",
"rel": "self",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/published/api/v1/items/DigitalAsset_proxy_6fec326c-34b9-4678-b322-7defe259feb4?access-token=Y2FhcyBkZWZhdWx0IHRva2Vu",
"rel": "canonical",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/published/api/v1/metadata-catalog/items",
"rel": "describedby",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": "application/schema+json"
}
],
"size": 98292,
"additionalproperties":
{
},
"renditions":
{
"default": "https://<hostname>/content/published/api/v1/digital/DigitalAsset_proxy_befdfc56-5a04-40fe-93fe-5921092ee5c5/?rendition=default",
"thumbnail": "https://<hostname>/content/published/api/v1/digital/DigitalAsset_proxy_befdfc56-5a04-40fe-93fe-5921092ee5c5/?rendition=thumbnail"
},
"mimeType": "image/jpeg",
"version": "1",
"fileType": "jpeg"
}