-
When activating a machine for a license, the API will return the machine ID: {
'data': {
'id': '...',
'type': 'machines',
'attributes': {
'fingerprint': '...',
# ...
} When trying to activate the same machine a second time, the call fails with {
'meta': {'id': '...'},
'errors': [
{
'title': 'Unprocessable resource',
'detail': 'has already been taken',
'code': 'FINGERPRINT_TAKEN',
# ...
}
]
} I don't know why this is an error. Will it also error out if the same machine tries to activate a different license (with the same machine fingerprint)? Also, what's the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
You're receiving an error because you can't activate a machine that is already activated. Typically, if you're doing this, then your activation flow is incorrect. Please follow this activation flow, i.e. you should validate the license before activating the current machine, to check if it's already activated and valid. If it's already valid, there's no need to attempt to activate the machine again. Regardless — you can list the license's current machines if you need to find a particular machine. Or yes, you can also lookup a machine by its fingerprint when authenticated as the license:
And whether or not a fingerprint can be shared across licenses is determined by the policy's fingerprint uniqueness strategy. Lastly, the |
Beta Was this translation helpful? Give feedback.
You're receiving an error because you can't activate a machine that is already activated. Typically, if you're doing this, then your activation flow is incorrect. Please follow this activation flow, i.e. you should validate the license before activating the current machine, to check if it's already activated and valid. If it's already valid, there's no need to attempt to activate the machine again.
Regardless — you can list the license's current machines if you need to find a particular machine. Or yes, you can also lookup a machine by its fingerprint when authenticated as the license:
And whether or not a fingerprint can be shared across…