Atlas Project/Group ID。
デフォルトのアプリケーションを作成するかどうか。
アプリの製品の種類。アプリはデフォルトで standard 製品の種類を使用します。ほとんどのアプリでは、product を指定する必要はありません。または、standard を指定する必要があります。
atlas、data-api、および device-sync 製品の種類は、Atlas UI からアクセスできる Atlas Triggers、Atlas Data API、および Atlas Device Sync 用の特別なアプリを表します。
値は、standard、atlas、data-api、または device-sync です。
作成する新しいアプリを記述するオブジェクト
アプリケーションの名前。文字で始まる必要があり、ASCII 文字、数字、アンダースコア、ハイフンのみを含めることができます。
値は、aws-us-east-1、aws-us-west-2、aws-us-east-2、aws-eu-central-1、aws-eu-west-1、aws-eu-west-2、aws-ap-southeast-1、aws-ap-southeast-2、aws-ap-south-1、または aws-sa-east-1 です。
値は、azure-eastus2、azure-westus、azure-westeurope、azure-eastasia、または azure-southeastasia です。
値は、gcp-us-central1、gcp-us-east4、gcp-us-west1、gcp-europe-west1、または gcp-asia-south1 です。
アプリをホストするクラウドプロバイダーに関係なく、アプリサーバーが物理的に配置されるロケーションの識別子です。
値は、US-VA、US-OR、DE-FF、IE、AU、IN-MB、SG、または BR-SP です。
アプリケーションの配置モデル。
値は GLOBAL または LOCAL です。
アプリケーションの環境。
値は、development、testing、qa、または production です。
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"MyApp","":{"_id":"string","name":"string","type":"string"},"location":"US-VA","deployment_model":"GLOBAL","template_id":"string"}'
{
"name": "MyApp",
"": {
"_id": "string",
"name": "string",
"type": "string"
},
"location": "US-VA",
"deployment_model": "GLOBAL",
"template_id": "string"
}
{
"name": "MyApp",
"": "production",
"location": "US-VA",
"deployment_model": "GLOBAL",
"_id": "633209ffd3bd3478005d1bac",
"client_app_id": "myapp-abcde",
"domain_id": "63320a2b5f9de9a6e0a213e8",
"group_id": "5b2ec991973129243223a114",
"last_used": 1664224746,
"last_modified": 1656440824,
"product": "standard"
}
{
"error": "string",
"error_code": "string"
}