plesk bin secret_key -c -ip-address 192.0.2.1
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
Creates a secret key assigning it to the specified IP address (if any). Can be used with the Note Once you have created a secret key, copy it and keep it safe. For security reasons, secret keys are shown only when they are created. The |
To create a secret key assigned to the IP address 192.0.2.1 with the description “test key”: plesk bin secret_key --create -ip-address 192.0.2.1 -description "test key" To create a secret key without assigning it to any IP address: plesk bin secret_key --create |
|
|
Shows the information about all secret keys located on the server: key IDs, IP addresses the keys are assigned to (if any), and key descriptions (if any). Note For security reasons, the command does not show secret keys themselves. |
To show the information about all secret keys located on the server: plesk bin secret_key --list |
|
|
|
Deletes the specified secret key. Used with the |
To delete the key plesk bin secret_key --delete -key 53de495a-b405-ca64-35d3-54b0352edeec To delete the key with the ID 3: plesk bin secret_key --delete -key 3 |
|
Displays the help on the utility usage. |
To see the help on the utility usage: plesk bin secret_key --help or plesk bin secret_key -h |
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
The IP address a secret key is assigned to. Used with the Plesk XML API will deny requests that use the secret key but were sent from other IP addresses. Note The |
To create a secret key assigned to the IP address 192.0.2.1 with the description “test key”: plesk bin secret_key -create -ip-address 192.0.2.1 -description "test key" |
|
|
The secret key description. Used with the |
To create a secret key assigned to the IP address 192.0.2.1 with the description “test key”: plesk bin secret_key -create -ip-address 192.0.2.1 -description "test key" |
|
|
The secret key value or ID. Used with the |
To delete the key plesk bin secret_key --delete -key 53de495a-b405-ca64-35d3-54b0352edeec To delete the key with the ID 3: plesk bin secret_key --delete -key 3 |