path パラメータ
-
Atlas Project/Group ID。
-
アプリケーションの ObjectID。App Services API プロジェクトとアプリケーション ID のセクションでは、この値を見つける方法が示されています。
POST /groups/{groupId}/apps/{appId}/services
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/services' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string","type":"string"}'
リクエスト例
サービスコンストラクター
{
"name": "string",
"type": "string"
}
{
"_id": "string",
"name": "mongodb-datafederation",
"type": "datalake",
"config": {
"dataLakeName": "string"
}
}
{
"name": "string",
"type": "aws",
"incoming_webhooks": [
{
"name": "string",
"function_source": "string",
"respond_result": true,
"options": {
"secret": "string",
"secretAsQueryParam": true
}
}
],
"version": 42
}
応答の例(201)
サービスコンストラクター
{
"_id": "string",
"name": "string",
"type": "string"
}
{
"_id": "string",
"name": "mongodb-datafederation",
"type": "datalake",
"config": {
"dataLakeName": "string"
}
}
{
"_id": "string",
"name": "string",
"type": "aws",
"version": 42
}