|
Hi rob.justice,
I reproduced the error on a vagrant machine.
My environment:
OM 3.4.5.424
CentOS 7
Without Group Name:
curl --user "admin@localhost.com:126a9ff4-26a6-40c7-a30d-01cbfb211c8" --digest --header "Accept: application/json" --header "Content-Type: application/json" --include --request PATCH "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882?pretty=true" --data '
|
{
|
"ldapGroupMappings" : [ {
|
"roleName": "GROUP_OWNER",
|
"ldapGroups": [ "group-owner" ]
|
} ],
|
}'
|
HTTP/1.1 401 Unauthorized
|
Date: Thu, 16 Nov 2017 14:00:57 GMT
|
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="dQxapwvhVhN9zcQGoafAdXZE4YxMhl8+", algorithm=MD5, qop="auth", stale=false
|
Content-Type: application/json;charset=ISO-8859-1
|
Content-Length: 106
|
|
HTTP/1.1 500 Internal Server Error
|
Date: Thu, 16 Nov 2017 14:00:57 GMT
|
Vary: Accept-Encoding
|
Content-Length: 149
|
Content-Type: application/json
|
|
{
|
"detail" : "Unexpected error.",
|
"error" : 500,
|
"errorCode" : "UNEXPECTED_ERROR",
|
"parameters" : [ ],
|
"reason" : "Internal Server Error"
|
|
With Group Name:
curl --user "admin@localhost.com:126a9ff4-26a6-40c7-a30d-01cbfb211c8" --digest --header "Accept: application/json" --header "Content-Type: application/json" --include --request PATCH "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882?pretty=true" --data '
|
{
|
"ldapGroupMappings" : [ {
|
"roleName": "GROUP_OWNER",
|
"ldapGroups": [ "group-owner" ]
|
} ],
|
"name": "Ross" }'
|
HTTP/1.1 401 Unauthorized
|
Date: Thu, 16 Nov 2017 14:03:31 GMT
|
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="bboKCwbCp0V/1IkN5L4Gc7pNhC4sRb2x", algorithm=MD5, qop="auth", stale=false
|
Content-Type: application/json;charset=ISO-8859-1
|
Content-Length: 106
|
|
HTTP/1.1 200 OK
|
Date: Thu, 16 Nov 2017 14:03:31 GMT
|
Vary: Accept-Encoding
|
Content-Length: 1719
|
Content-Type: application/json
|
|
{
|
"activeAgentCount" : 0,
|
"agentApiKey" : "8de336be0009e302ae2773fec9f7df79",
|
"hostCounts" : {
|
"arbiter" : 0,
|
"config" : 0,
|
"master" : 0,
|
"mongos" : 0,
|
"primary" : 0,
|
"secondary" : 0,
|
"slave" : 0
|
},
|
"id" : "5a0d966928dc32326b3e8882",
|
"ldapGroupMappings" : [ {
|
"ldapGroups" : [ "group-owner" ],
|
"roleName" : "GROUP_OWNER"
|
} ],
|
"links" : [ {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882",
|
"rel" : "self"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/hosts",
|
"rel" : "http://mms.mongodb.com/hosts"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/users",
|
"rel" : "http://mms.mongodb.com/users"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/clusters",
|
"rel" : "http://mms.mongodb.com/clusters"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/alertConfigs",
|
"rel" : "http://mms.mongodb.com/alertConfigs"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/alerts",
|
"rel" : "http://mms.mongodb.com/alerts"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/backupConfigs",
|
"rel" : "http://mms.mongodb.com/backupConfigs"
|
}, {
|
"href" : "http://opsmgr.vagrant.dev:8080/api/public/v1.0/groups/5a0d966928dc32326b3e8882/agents",
|
"rel" : "http://mms.mongodb.com/agents"
|
} ],
|
"name" : "Ross",
|
"publicApiEnabled" : true,
|
"replicaSetCount" : 0,
|
"shardCount" : 0,
|
"tags" : [ ]
|
|