kb: bug
ABT: Group B
Applicable to:
- Plesk for Linux
Symptoms
-
Unable to run an API request due to the following error:
# curl -k -u johndoe:@password -X POST -d @domain.json "https://203.0.113.2:8443/api/v2/domains"
{
"code": 0,
"message": "Can not find client by login 'johndoe'"
} -
Where
johndoe
account is the additional Plesk administrator account.
Cause
API requests cannot be executed under additional Plesk administrator accounts.
It is the Plesk bug #EXTREST-87 which will be fixed in future product updates.
Resolution
Until a fix will be available please execute API request using built-in "admin" account as workaround:
# curl -k -u admin:@password -X POST -d @domain.json "https://203.0.113.2:8443/api/v2/domains"
{
"id": 4,
"guid": "2442355f-0ddb-4e9e-8c97-716459b2d528"
}
Comments
0 comments
Please sign in to leave a comment.