Obtaining Package Information of the Current User
Function
Obtain package information of the current user.
Calling Method
For details, see Calling APIs.
URI
GET /devreposerver/v5/data/package
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
No |
String |
Project ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Definition: Request status. Value range: success: The request is successful. error: The request fails. |
trace_id |
String |
Definition: Request ID, which uniquely identifies the current request. Value range: A string of digits and hyphens (-). |
result |
Object |
Definition: The API response varies depending on the request. Value range: The value range varies according to the API. |
Example Requests
https://localhost.com/devreposerver/v5/data/package?project_id=666666af0f00445f85dec483fbc97c78
Example Responses
Status code: 200
OK
{ "status" : "success", "trace_id" : "142838-1718767424403-26988", "result" : { "needNotice" : true, "crossTenant" : false, "packageType" : 13, "packageStatus" : 1, "totalStorage" : "500GB", "totalDownloadTraffic" : "100GB", "usedStorage" : "46.69GB", "monthUsedTraffic" : "361.0B", "storagePercent" : 0.09, "trafficPercent" : 0, "packageDetail" : 0, "maxRepoNum" : "Infinity" } }
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