Querying Auto Deleting Task Settings in a Project
Function
This API is used to query auto deleting task settings in a project.
Calling Method
For details, see Calling APIs.
URI
GET /devreposerver/v5/release/{project_id}/auto-deletion/settings
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Definition Request status. Range success: The request is successful. error: The request fails. |
|
trace_id |
String |
Definition Request ID, which uniquely identifies the current request. Range A string of digits and hyphens (-). |
|
result |
Object |
Definition Response of the request. The return value varies according to the API. Range The value range varies according to the API. |
Example Requests
https://localhost.com/devreposerver/v5/release/6666669620d743eca6a57881a0f006fd/auto-deletion/settings
Example Responses
Status code: 200
OK
{
"status" : "success",
"trace_id" : "76629-1718852080645-39",
"result" : {
"is_schedule_to_trash" : true,
"is_schedule_to_delete" : true,
"file_expire_time" : 90,
"trash_file_expire_time" : 66,
"project_id" : "6666669620d743eca6a57881a0f006fd",
"cleanRule" : {
"skipAutoTrash" : {
"packageCategory" : "prod",
"paths" : [ "/a/b/c", "/d/d" ]
}
}
}
}
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.