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-name
cache-sizing
list-cache-size
list-cache-partitions
compressed-tree-cache-size
compressed-tree-cache-partitions
expanded-tree-cache-size
expanded-tree-cache-partitions
triple-cache-size
triple-cache-partitions
triple-value-cache-size
triple-value-cache-partitions
compressed-tree-read-size
triple-cache-timeout
triple-value-cache-timeout
smtp-relay
smtp-timeout
http-user-agent
http-timeout
xdqp-timeout
host-timeout
host-initial-timeout
retry-timeout
module-cache-timeout
system-log-level
file-log-level
rotate-log-files
keep-log-files
failover-enable
xdqp-ssl-enabled
xdqp-ssl-allow-sslv3
xdqp-ssl-allow-tls
xdqp-ssl-disable-sslv3
xdqp-ssl-disable-tlsv1
xdqp-ssl-disable-tlsv1-1
xdqp-ssl-disable-tlsv1-2
xdqp-ssl-ciphers
schemas
This is a complex structure with the following children:
schema
This is a complex structure with the following children:
namespace-uri
schema-location
namespaces
This is a complex structure with the following children:
namespace
This is a complex structure with the following children:
prefix
namespace-uri
using-namespaces
This is a complex structure with the following children:
using-namespace
This is a complex structure with the following children:
namespace-uri
module-locations
This is a complex structure with the following children:
module-location
This is a complex structure with the following children:
namespace-uri
location
events-activated
events
This is a complex structure with the following children:
event
audit
This is a complex structure with the following children:
audit-enabled
rotate-audit-files
keep-audit-files
audit-events
This is a complex structure with the following children:
audit-event
This is a complex structure with the following children:
audit-event-name
audit-event-enabled
audit-restrictions
This is a complex structure with the following children:
audit-restriction
This is a complex structure with the following children:
audit-restriction-name
audit-restriction-type
audit-restriction-items
background-io-limit
metering-enabled
performance-metering-enabled
meters-database
performance-metering-period
performance-metering-retain-raw
performance-metering-retain-hourly
performance-metering-retain-daily
telemetry-log-level
telemetry-metering
telemetry-config
telemetry-usage
telemetry-session-endpoint
telemetry-proxy
s3-domain
s3-protocol
s3-server-side-encryption
s3-server-side-encryption-kms-key
s3-proxy
azure-storage-proxy
security-database
temporary-directory
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.