Get Flexible Sync information
Retrieve sync data for a specific Atlas App Services App when using Flexible Sync.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
-
The unique
_id
value of a service.
GET
/groups/{groupId}/apps/{appId}/service/{serviceId}/config
curl \
--request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/service/{serviceId}/config' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"clusterId": "string",
"clusterName": "string",
"clusterType": "atlas",
"flexible_sync": {
"state": "string",
"database_name": "string",
"queryable_fields_names": [
"string"
],
"indexed_queryable_fields_names": [
"string"
],
"collection_queryable_fields_names": {
"additionalProperty1": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"additionalProperty2": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
},
"permissions": {},
"last_disabled": "string",
"client_max_offline_days": 42,
"is_recovery_mode_disabled": true,
"asymmetric_tables": [
"string"
]
},
"groupName": "string",
"orgName": "string",
"readPreference": "primary",
"wireProtocolEnabled": true
}