Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
This resource address allows you to add a packaged configuration to the
named package (pkgname
).
URL Parameters | |
---|---|
format |
The format of the output. This can be either xml
or json . By default, the format is xml .
|
Response Headers | |
---|---|
Content-type |
The MIME type of the data in the payload body. Depending upon the
value of the format parameter or Accept header, either
application/xml or application/json .
|
If a specified database or server name already exists in the package, it is replaced by the new version.
manage-admin
role, or the
following privilege:
http://marklogic.com/xdmp/privileges/manage
curl -o SQLdata.xml --digest -u admin:admin \ http://localhost:8002/manage/v2/databases/SQLdata?view=package ==> Download the configuration of the 'SQLdata' database to the SQLdata.xml file. curl -X POST --digest -u admin:admin -H "Content-type: application/xml" \ -d @SQLdata.xml "http://localhost:8002/manage/v2/packages/test-package" ==> Add the SQLdata configuration to the "test-package" package.
Comments