경로 매개변수
-
Atlas 프로젝트/그룹 ID입니다.
쿼리 매개변수
-
기본 애플리케이션을 만들지 여부입니다.
-
앱의 제품 유형입니다. 앱은 기본적으로
standard제품 유형을 사용합니다. 대부분의 앱의 경우product를 전혀 지정할 필요가 없거나standard를 지정해야 합니다.atlas,data-api및device-sync제품 유형은 Atlas UI를 통해 액세스할 수 있는 Atlas 트리거, Atlas 데이터 API 및 Atlas Device Sync를 위한 특수 앱을 나타냅니다.값은
standard,atlas,data-api또는device-sync입니다.
body
필수 사항
생성할 새 앱 설명하는 객체
-
애플리케이션의 이름입니다. 문자로 시작해야 하며 ASCII 문자, 숫자, 밑줄, 하이픈만 포함할 수 있습니다.
provider_region
문자열 다음 중 하나입니다. 값은
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입니다.-
앱 호스팅하는 cloud 제공자 와 관계없이 앱 서버 물리적으로 배포되는 위치 의 식별자입니다.
값은
US-VA,US-OR,DE-FF,IE,AU,IN-MB,SG또는BR-SP입니다. -
애플리케이션 배포 모델입니다.
값은
GLOBAL또는LOCAL입니다. -
애플리케이션의 환경입니다.
값은
development,testing,qa또는production입니다. -
새 앱의 기반으로 사용할 App Services 템플릿 앱의 ID입니다.
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"
}