Modifies a lifecycle management policy.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyLifecyclePolicy |
The operation that you want to perform. Set the value to ModifyLifecyclePolicy. |
FileSystemId | String | Yes | 31a8e4**** |
The ID of the file system. |
LifecyclePolicyName | String | Yes | lifecyclepolicy_01 |
The name of the lifecycle management policy. |
LifecycleRuleName | String | Yes | DEFAULT_ATIME_14 |
The rules in the lifecycle management policy. Valid values:
|
Path | String | No | /pathway/to/folder |
The absolute path of a directory with which the lifecycle management policy is associated. The path must be prefixed by a forward slash (/). It must be a path that exists in the mount target. |
StorageType | String | No | InfrequentAccess |
The storage type of the data that is dumped to the IA storage medium. Default value: InfrequentAccess (IA). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BC7C825C-5F65-4B56-BEF6-98C56C7C**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request has succeeded. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyLifecyclePolicy
&FileSystemId=31a8e4****
&LifecyclePolicyName=lifecyclepolicy_01
&LifecycleRuleName=DEFAULT_ATIME_14
&<Common Request Parameters>
Sample success responses
XML
format
<RequestId>BC7C825C-5F65-4B56-BEF6-98C56C7C****</RequestId>
<Success>true</Success>
JSON
format
{
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C56C7C****",
"Success": true
}
Error codes
HttpCode | Error code | Error message | Required |
---|---|---|---|
400 | InvalidLifecyclePolicy.NotFound | The specified LifecyclePolicy does not exist. | The error message returned because the specified lifecycle policy does not exist. |
404 | InvalidLifecycleRule.NotFound | The specified LifecycleRule does not exist. | The error message returned because the specified lifecycle management rule does not exist. |
404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The error message returned because the specified file system does not exist. |
For a list of error codes, visit the API Error Center.