使用可能なリソースのリストの取得
get
/mftapp/rest/v1/metadata-catalog
各リソース名を代替名とともに示し、リソースのメタ・データの取得に使用できるリンクを示します
リクエスト
この操作のリクエスト・パラメータはありません。
トップに戻るレスポンス
サポートされるメディア・タイプ
- application/json
200レスポンス
ルート・スキーマ : resourceCatalog
型:
ソースを表示
object- items(optional): array items
MFTリソースに関する情報。
- links(optional): array links
ネストされたスキーマ : links-items[0]
型:
ソースを表示
object- href(optional): string
リソースへの参照。
- mediaType(optional): string
レスポンスのメディア・タイプ。
- rel(optional): string
リソースとの関係。
ネストされたスキーマ : links-items[0]
型:
ソースを表示
object- href(optional): string
リソースへの参照。
- mediaType(optional): string
レスポンスのメディア・タイプ。
- rel(optional): string
リソースとの関係。
レスポンスの例(application/json)
{
"items":[
{
"name":"events",
"links":[
{
"rel":"alternate",
"href":"http://host:port/mftapp/rest/v1/metadata-catalog/events",
"mediaType":"application/schema+json"
},
{
"rel":"describes",
"href":"http://host:port/mftapp/rest/v1/events"
}
]
},
{
"name":"sources",
"links":[
{
"rel":"alternate",
"href":"http://host:port/mftapp/rest/v1/metadata-catalog/sources",
"mediaType":"application/schema+json"
},
{
"rel":"describes",
"href":"http://host:port/mftapp/rest/v1/sources"
}
]
}
],
"links":[
{
"rel":"alternate",
"href":"http://host:port/mftapp/rest/v1/metadata-catalog/catalog",
"mediaType":"application/schema+json"
},
{
"rel":"self",
"href":"http://host:port/mftapp/rest/v1/metadata-catalog/"
}
]
}
500レスポンス
問題が発生
ルート・スキーマ: Error information.
型:
objectタイトル:
ソースを表示
Error information。- errorCode(optional): string
Oracle Managed File Transferから返されるエラー・コード。
- errorKey(optional): string
Oracle Managed File Transferから返されるエラー・キー。
- errorMessage(optional): string
Oracle Managed File Transferから返されるエラーを説明するメッセージ。
レスポンスの例(application/json)
{
"errorCode":"MFT-5445",
"errorKey":"MFT_REST_UNABLE_TO_LIST_RESOURCES_CATALOG",
"errorMessage":"Unable to list the resources catalog of MFT RESTful services."
}
例
レスポンス本文の例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、メタデータ・カタログ取得する方法を示しています。
curl -i -X GET -H "Content-Type: application/json" http://host:port/mftapp/rest/v1/metadata-catalog
次の例では、正常終了したリクエストのレスポンス本文のコンテンツを示しています(JSON形式):
{
"items": [
{
"name": "events",
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/events",
"mediaType": "application/schema+json"
},
{
"rel": "describes",
"href": "http://host:port/mftapp/rest/v1/events"
}
]
},
{
"name": "sources",
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/sources",
"mediaType": "application/schema+json"
},
{
"rel": "describes",
"href": "http://host:port/mftapp/rest/v1/sources"
}
]
},
{
"name": "applicationMetadata",
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/applicationMetadata",
"mediaType": "application/schema+json"
},
{
"rel": "describes",
"href": "http://host:port/mftapp/rest/v1/applicationMetadata"
}
]
},
{
"name": "artifacts",
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/artifacts",
"mediaType": "application/schema+json"
},
{
"rel": "describes",
"href": "http://host:port/mftapp/rest/v1/artifacts"
}
]
},
{
"name": "purges",
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/purges",
"mediaType": "application/schema+json"
},
{
"rel": "describes",
"href": "http://host:port/mftapp/rest/v1/purges"
}
]
}
],
"links": [
{
"rel": "alternate",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/catalog",
"mediaType": "application/schema+json"
},
{
"rel": "self",
"href": "http://host:port/mftapp/rest/v1/metadata-catalog/"
}
]
}