Modifies a lifecycle management policy.
Operation description
Only General-purpose NAS file systems support this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ModifyLifecyclePolicy |
update |
*LifecyclePolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The file system ID. |
31a8e4**** |
| LifecyclePolicyName |
string |
No |
The Policy Name of the lifecycle management policy. The name must be 3 to 64 characters in length. It must start with an uppercase letter or a lowercase letter, and can contain letters, digits, underscores (_), and hyphens (-). |
lifecyclepolicy_01 |
| Path |
string |
No |
The absolute path of a single directory configured for the lifecycle management policy. The path must start with a forward slash (/) and must be a valid path in the mount target. |
/pathway/to/folder |
| LifecycleRuleName |
string |
No |
The management rule associated with the lifecycle management policy. Valid values:
Note
If an IA storage class policy is already configured for the directory, the time threshold for the archive storage class policy must be longer than that of the IA storage class policy. Valid values:
|
DEFAULT_ATIME_14 |
| StorageType |
string |
No |
The tiered storage type. Valid values:
Valid values:
|
InfrequentAccess |
| LifecyclePolicyId |
string |
No |
The lifecycle policy ID. |
lc-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
| Success |
boolean |
The request status. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidLifecyclePolicy.NotFound | The specified LifecyclePolicy does not exist. | The specified LifecyclePolicy does not exist. |
| 404 | InvalidLifecycleRule.NotFound | The specified LifecycleRule does not exist. | The specified LifecycleRule does not exist. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.