
This resource address creates a new group in the cluster.
| URL Parameters | |
|---|---|
| format | The format of the posted data. Can be either
html, json, or xml (default). This value overrides
the Accept header if both are present. |
Upon success, MarkLogic Server returns status code 201 (Created). If the group already exists or if the payload is malformed, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
The structure of the data in the request is as shown below.
Note: The properties described here are for XML payloads. In general they are the same for
JSON, with the exception that, in JSON, schemas, namespaces,
using-namespaces, module-locations, events,
audit-events, and audit-restrictions are expressed in singular
form.
group-nameallow-dynamic-hostscache-sizinglist-cache-sizelist-cache-partitionscompressed-tree-cache-sizecompressed-tree-cache-partitionsexpanded-tree-cache-sizeexpanded-tree-cache-partitionstriple-cache-sizetriple-cache-partitionstriple-value-cache-sizetriple-value-cache-partitionscompressed-tree-read-sizetriple-cache-timeouttriple-value-cache-timeoutsmtp-relaysmtp-timeouthttp-user-agenthttp-timeoutxdqp-timeouthost-timeouthost-initial-timeoutretry-timeoutmodule-cache-timeoutsystem-log-levelfile-log-levelrotate-log-fileskeep-log-filesfailover-enablexdqp-ssl-enabledxdqp-ssl-min-allow-tlsxdqp-ssl-ciphersxdqp-ssl-ciphersuitesschemasThis is a complex structure with the following children:
schemaThis is a complex structure with the following children:
namespace-urischema-locationnamespacesThis is a complex structure with the following children:
namespaceThis is a complex structure with the following children:
prefixnamespace-uriusing-namespacesThis is a complex structure with the following children:
using-namespaceThis is a complex structure with the following children:
namespace-urimodule-locationsThis is a complex structure with the following children:
module-locationThis is a complex structure with the following children:
namespace-urilocationevents-activatedeventsThis is a complex structure with the following children:
eventauditThis is a complex structure with the following children:
audit-enabledrotate-audit-fileskeep-audit-filesaudit-eventsThis is a complex structure with the following children:
audit-eventThis is a complex structure with the following children:
audit-event-nameaudit-event-enabledaudit-restrictionsThis is a complex structure with the following children:
audit-restrictionThis is a complex structure with the following children:
audit-restriction-nameaudit-restriction-typeaudit-restriction-itemsbackground-io-limitmetering-enabledperformance-metering-enabledmeters-databaseperformance-metering-periodperformance-metering-retain-rawperformance-metering-retain-hourlyperformance-metering-retain-dailytelemetry-log-leveltelemetry-meteringtelemetry-configtelemetry-usagetelemetry-session-endpointtelemetry-proxys3-domains3-protocols3-server-side-encryptions3-server-side-encryption-kms-keys3-proxyazure-storage-proxysecurity-databasetemporary-directoryoptimized-plan-cache-timeout
curl -X POST --digest -u admin:admin -H "Content-type: application/json" \
-d '{"group-name":"Foo"}' http://localhost:8002/manage/v2/groups
==> Creates a new group, named "Foo," in the cluster.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.