Unlocking a Repository Based on the Repository Short ID
Function
Unlock a repository based on the repository short ID.
URI
POST /v4/{project_id}/repositories/{repository_id}/unlock
| 
       Parameter  | 
     
       Mandatory  | 
     
       Type  | 
     
       Description  | 
    
|---|---|---|---|
| 
       project_id  | 
     
       Yes  | 
     
       String  | 
     
       Project ID.  | 
    
| 
       repository_id  | 
     
       Yes  | 
     
       Integer  | 
     
       Repository ID.  | 
    
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        X-Auth-Token  | 
      
        Yes  | 
      
        String  | 
      
        User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.  | 
     
Response Parameters
Status code: 201
| 
       Parameter  | 
     
       Type  | 
     
       Description  | 
    
|---|---|---|
| 
       locked  | 
     
       Boolean  | 
     
       Whether the repository is locked.  | 
    
Status code: 401
| 
       Parameter  | 
     
       Type  | 
     
       Description  | 
    
|---|---|---|
| 
       error_msg  | 
     
       String  | 
     
       Response error information.  | 
    
| 
       error_code  | 
     
       String  | 
     
       Response error code.  | 
    
Example Requests
POST https://{endpoint}/v4/{project_id}/repositories/{repository_id}/unlock
 Example Responses
Status code: 201
{
     "locked": false
}
 Status code: 401
Unauthorized
{
   "error_code": "DEV.00000003"
    "error_msg": "Authentication information expired"
}
 Status Code
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        201  | 
      
        OK  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
Error code.
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