Hello all,
We are just starting an effort to convert some code to SnapDiff v3 and REST.
We've received the SnapDiff v3 documentation, and also an activation key from our Netapp partner manager.
We are having trouble getting a basic example working from the documentation. I think we either have a bad key, or maybe doing something wrong with the initial access-token submission. We are following the directions in section 3 of the doc, attempting to use the REST API /api/cluster/licensing/access-tokens. I am issuing something similar to this:
curl -ku name:password -X POST \
"https://1.2.3.4/api/cluster/licensing/access_tokens?return_timeout=0" \
-H "accept:application/json" \
-d '{"grant_type":"client_credentials","client_id":"software","client_secret":"<base64encoded value>"}'
The <base64encoded value> I'm using was the "Signature" JSON field of the key file supplied to us.
I get back a rather nebulous message:
{
"error": {
"message": "Internal error. Failed to create access token.",
"code": "1115544"
}
Any thoughts on what might be going wrong ... or am I using an incorrect value for the client_secret?
Thanks