Update Lifecycle Management - UpdateUFileLifeCycle
Overview
Update Lifecycle Management
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UpdateUFileLifeCycle . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | No |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
LifeCycleId | string | Lifecycle Id | Yes |
LifeCycleName | string | Lifecycle Name | Yes |
Prefix | string | The prefix applicable to the lifecycle; * for all files in the storage space; one rule only supports one file prefix. | Yes |
Status | string | Enabled -- Enabled, Disabled -- Not enabled | Yes |
BucketName | string | Storage Space Name | Yes |
Days | int | Specify an expiration day N, the file will expire and be automatically deleted N days after its most recent update; Range: [7,36500] | No |
ArchivalDays | int | Specify an expiration day N, the file will expire N days after its most recent update time, and automatically convert to archive storage type; Range: [7,36500], 0 represents not enabled. | No |
IADays | int | Specify an expiration day N, the file will expire N days after its most recent update time, and automatically convert to a low-frequency storage type; Range: [7,36500], 0 represents not enabled. | No |
Tags | string | Tag, parameter format "k1=v1&k2=v2", the maximum length of key is 128, the maximum length of value is 256byte, the maximum number of tags for a single object is 10. | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Example
Request Example
https://api.ucloud-global.com/?Action=UpdateUFileLifeCycle
&Region=cn-gd
&ProjectId=org-sdfsdd
&BucketName=lifecycle-test1
&LifeCycleId=dc7eca04-edbc-4ae9-aefd-816253123456
&LifeCycleName=test
&Prefix=life-
&Date=30
&Status=Disabled
&ArchivalDays=5
&ArchivalDays=7
&IADays=2
&Tags=nhYyyFfh
Response Example
{
"Action": "UpdateUFileLifeCycleResponse",
"RetCode": 0
}