Verifying HTTPS Account and Password
Function
This API is used to check whether the username and password entered when you upload or download code using HTTPS are valid.
URI
POST /v2/user/{iam_user_uuid}/validate-https-info
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
iam_user_uuid |
Yes |
String |
Explanation: iamId Range: 32 digits and letters. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Explanation: User token. It can be obtained by calling the corresponding IAM API. The value of X-Subject-Token in the response header is the user token. Constraints: Mandatory Range: 1–100,000 characters. Default value: None |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
pwd |
Yes |
String |
Explanation: HTTPS password. Constraints: 8–32 characters. The password must contain at least three types of the following characters: digits, uppercase letters, lowercase letters, and special characters. It cannot be the same as the username or the username spelled backwards. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Explanation: Response error. Range: None |
result |
String |
Explanation: Response result. Range: verificationPassed: The password is correct. |
status |
String |
Explanation: Response status of the API. Range:
|
Parameter |
Type |
Description |
---|---|---|
code |
String |
Explanation: Error code returned when the API fails to be called. Range:
|
message |
String |
Explanation: Error code returned when the API fails to be called. Range:
|
Example Requests
POST https://{endpoint}/v2/user/{iam_user_uuid}/validate-https-info { "pwd" : "XXX" }
Example Responses
Status code: 200
OK
{ "result" : "verificationPassed", "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot