Updating a File System
Function
This API is used to update the cold data eviction period of a file system.
Constraints
This API is only supported for SFS Turbo HPC file systems.
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Account token |
Content-Type |
Yes |
String |
MIME type |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
action |
Yes |
String |
Operation type. Only config_gc_time is supported currently. |
gc_time |
Yes |
Integer |
Cold data eviction duration. The unit is hour. The value ranges from 1 to 100000000. The default value is 60 hours. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
Request ID |
Parameter |
Type |
Description |
---|---|---|
gc_time |
Integer |
File system cold data eviction duration |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
Error code Minimum: 8 Maximum: 36 |
errMsg |
String |
Error description Minimum: 2 Maximum: 512 |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
Error code Minimum: 8 Maximum: 36 |
errMsg |
String |
Error description Minimum: 2 Maximum: 512 |
Example Requests
{ "action" : "config_gc_time", "gc_time" : 5 }
Example Responses
Status code: 200
Task submitted
{ "gc_time" : 10 }
Status code: 404
Error response
{ "errCode" : "SFS.TURBO.0002", "errMsg" : "share not exist" }
Status code: 500
Error response
{ "errCode" : "SFS.TURBO.0005", "errMsg" : "Internal server error" }
Status Codes
Status Code |
Description |
---|---|
200 |
Task submitted |
404 |
Error response |
500 |
Error response |
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