Loading TOC...

GET /manage/v2/packages/{pkgname}/databases/{name}

Summary

This resource address returns configuration for the named database (name) in the named package (pkgname).

URL Parameters
format The format of the returned database configuration. This can be either xml or json. By default, the format is xml.
Request Headers
Accept The expected MIME type of the response. If the format parameter is present, it takes precedence over the Accept header.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, either application/zip or application/json.

Response

Upon success, MarkLogic Server returns the configuration of the database.

Required Privileges

This operation requires the manage-user role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Example

 
    http://localhost:8002/manage/v2/packages/test-package/databases/Documents

    ==> Returns the XML configuration of the 'Documents' database from the
        package, "test-package." 
 
    

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy