- highlight and copy the
curl
commands, or
- click the copy script icon ()
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-hub-central-explorer","role": ["hub-central-explorer"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-hub-central-modeler","role": ["hub-central-modeler"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-hub-central-developer","role": ["hub-central-developer"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-hub-central-operator","role": ["hub-central-operator"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-hub-central-curator","role": ["hub-central-curator"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-data-hub-admin","role": ["data-hub-admin"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-data-hub-developer","role": ["data-hub-developer"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-data-hub-operator","role": ["data-hub-operator"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-data-hub-monitor","role": ["data-hub-monitor"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-data-hub-odbc-user","role": ["data-hub-odbc-user"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
curl -X POST --anyauth -u USERNAME:PASSWORD -H "Content-Type:application/json" \
-d '{"role-name": "custom-pii-reader","role": ["pii-reader"],"external-names":[{"external-name":"ROLE_DN"}]}' \
https://HOSTNAME:8002/manage/v2/roles/
For curl
commands used to map LDAP roles to service roles in previous versions of MarkLogic Data Hub Service, see Appendix: Map Service Roles to LDAP Roles.
See Service Roles for descriptions of each service role.
- To edit the
curl
commands, paste to a text file.