path パラメータ
-
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です。
body
必須
作成する新しいアプリを記述するオブジェクト
-
アプリケーションの名前。文字で始まる必要があり、ASCII 文字、数字、アンダースコア、ハイフンのみを含めることができます。
provider_region
string 次の 1 つ: 値は、
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","provider_region":"aws-us-east-1","location":"US-VA","deployment_model":"GLOBAL","environment":"production","template_id":"string","data_source":{"_id":"string","name":"string","type":"string"}}'
{
"name": "MyApp",
"provider_region": "aws-us-east-1",
"location": "US-VA",
"deployment_model": "GLOBAL",
"environment": "production",
"template_id": "string",
"data_source": {
"_id": "string",
"name": "string",
"type": "string"
}
}
{
"name": "MyApp",
"provider_region": "aws-us-east-1",
"location": "US-VA",
"deployment_model": "GLOBAL",
"environment": "production",
"_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"
}