This example updates the worker_count setting.
curl -X POST -d '{
"deployment_status": false,
"processing_status": false,
"worker_count": 6
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"This example updates the worker_count setting.
curl -X POST -d '{
"deployment_status": false,
"processing_status": false,
"worker_count": 6
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"This example updates the app_log_max_files and app_log_max_size settings.
The function is currently undeployed.
curl -X POST -d '{
"deployment_status": false,
"processing_status": false,
"app_log_max_files": 5
"app_log_max_size":10485760
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"This example updates the app_log_max_files and app_log_max_size settings.
The function is currently undeployed.
curl -X POST -d '{
"deployment_status": false,
"processing_status": false,
"app_log_max_files": 5,
"app_log_max_size": 10485760
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"This example updates the timer_context_size setting.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": false,
"timer_context_size": 2048
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"This example updates the timer_context_size setting.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": false,
"timer_context_size": 2048
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"This example updates the worker_count setting and resumes.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": true,
"worker_count": 8
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"This example updates the worker_count setting and resumes.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": true,
"worker_count": 8
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"Couchbase Server 7.6.4
This example sets allow_sync_documents to false, to enable compatibility with Sync Gateway.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": false,
"allow_sync_documents": false
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"For details, see sync-gateway::server-compatibility-eventing.adoc.
Couchbase Server 7.6.4
This example sets allow_sync_documents to false, to enable compatibility with Sync Gateway.
The function is currently paused.
curl -X POST -d '{
"deployment_status": true,
"processing_status": false,
"allow_sync_documents": false
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"For details, see sync-gateway::server-compatibility-eventing.adoc.
curl -X POST -d '{
"deployment_status": true,
"processing_status": true
}' "http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings"Deprecated. See [basic_deploy] for the preferred invocation.
curl -X POST -d '{
"deployment_status": true,
"processing_status": true
}' "http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function/settings?bucket=bulk&scope=data"Deprecated. See [basic_deploy] for the preferred invocation.