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 | lifecyclepolicy1 |
The name of the lifecycle management policy. |
LifecycleRuleName | String | Yes | DEFAULT_ATIME_14 |
The name of the rule in the policy. Valid values:
|
Path | String | Yes | /pathway/to/folder |
The absolute path to the directory for which the policy is configured. The path must start with a forward slash (/) and must be an existing path in the mount target. |
StorageType | String | Yes | InfrequentAccess |
The type of the storage. Default value: InfrequentAccess. |
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 succeeds. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyLifecyclePolicy
&FileSystemId=31a8e4****
&LifecyclePolicyName=lifecyclepolicy1
&LifecycleRuleName=DEFAULT_ATIME_14
&Path=/pathway/to/folder
&StorageType=InfrequentAccess
&<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
For a list of error codes, visit the API Error Center.