アラートの取得。プロジェクトに特有のアラートのリストを取得します。
get
/OracleBAMREST/api/projects/{projectname}/queries/businessqueries/alerts
リクエスト
この操作にはリクエスト・パラメータはありません。
レスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
レスポンスの例(application/json)
{
"items":[
{
"id":"/project/BAMFramework/alert/ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert",
"name":"ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert",
"displayName":"ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert",
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/alerts/ASN_KPI_SLAViolation_Email_Alerting_HIGH_Alert"
}
]
},
{
"id":"/project/BAMFramework/alert/KPI_Purging_Email_CommonAudit_HIGH_Alert",
"name":"KPI_Purging_Email_CommonAudit_HIGH_Alert",
"displayName":"KPI_Purging_Email_CommonAudit_HIGH_Alert",
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/alerts/KPI_Purging_Email_CommonAudit_HIGH_Alert"
}
]
}
],
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/alerts"
}
]
}
例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、すべてのタイプを参照する方法を示しています。
curl -i -X GET https://<hostname>/content/management/api/v1/types
例: レスポンス・ヘッダー
次にレスポンス・ヘッダーの例を示します。
HTTP/1.1 200 OK Cache-Control: max-age=0 Content-Type: application/json Date: Tue, 03 Jan 2017 05:35:59 GMT Etag: "de89dcd094e498518b2d1777e0a13ed86ab3266426043d473fdbb277b175b679" Server: Apache-Coyote/1.1 Transfer-Encoding: chunked X-XSS-Protection: 1 x-content-type-options
例: レスポンス本文
JSON形式で返されるレスポンスの例を次に示します。CaaSシステムで定義されている名前別および各タイプURL別にすべてのタイプをリストします。
{
"hasMore": false,
"limit": 10,
"count": 2,
"items":
[
{
"name": "OtherType",
"description": "OtherType description",
"isProxy": false,
"link":
{
"href": "https://<hostname>/content/management/api/v1/types/OtherType",
"rel": "Reference",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
}
},
{
"name": "ModelType",
"description": "ModelType description",
"isProxy": false,
"link":
{
"href": "https://<hostname>/content/management/api/v1/types/ModelType",
"rel": "Reference",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
}
}
],
"links":
[
{
"href": "https://<hostname>/content/management/api/v1/types",
"rel": "self",
"templated": false,
"method": "POST",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/types",
"rel": "canonical",
"templated": false,
"method": "POST",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/metadata-catalog/types",
"rel": "describedby",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": "application/schema+json"
},
{
"href": "https://<hostname>/content/management/api/v1/types?offset=10",
"rel": "next",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/types?offset=0",
"rel": "first",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/types?offset=10",
"rel": "last",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
}
],
"offset": 0
}