{
"bucket": "ztces-230404-create",
"regionID": "TestRegionID",
"lifecycleConfiguration": {
"rules": [
{
"status": "Enabled",
"noncurrentVersionExpiration": {
"noncurrentDays": 123,
"newerNoncurrentVersions": 123
},
"noncurrentVersionTransitions": [
{
"noncurrentDays": 123,
"storageClass": "STANDARD_IA",
"newerNoncurrentVersions": 123
}
],
"filter": {
"objectSizeGreaterThan": 123,
"and": {
"objectSizeGreaterThan": 123,
"prefix": "string",
"objectSizeLessThan": 123,
"tags": [
{
"key": "string",
"value": "string"
}
]
},
"prefix": "string",
"tag": {
"key": "string",
"value": "string"
},
"objectSizeLessThan": 123
},
"prefix": "string",
"expiration": {
"date": "2022-10-18T02:24:40Z",
"expiredObjectDeleteMarker": true,
"days": 123
},
"abortIncompleteMultipartUpload": {
"daysAfterInitiation": 123
},
"transitions": [
{
"date": "2022-10-18T02:24:40Z",
"days": 123,
"storageClass": "GLACIER"
}
],
"ID": "string"
}
]
}
}
curl --location --request POST '/v4/oss/put-bucket-lifecycle-conf' \
--header 'Content-Type: application/json' \
--data-raw '{
"bucket": "ztces-230404-create",
"regionID": "TestRegionID",
"lifecycleConfiguration": {
"rules": [
{
"status": "Enabled",
"noncurrentVersionExpiration": {
"noncurrentDays": 123,
"newerNoncurrentVersions": 123
},
"noncurrentVersionTransitions": [
{
"noncurrentDays": 123,
"storageClass": "STANDARD_IA",
"newerNoncurrentVersions": 123
}
],
"filter": {
"objectSizeGreaterThan": 123,
"and": {
"objectSizeGreaterThan": 123,
"prefix": "string",
"objectSizeLessThan": 123,
"tags": [
{
"key": "string",
"value": "string"
}
]
},
"prefix": "string",
"tag": {
"key": "string",
"value": "string"
},
"objectSizeLessThan": 123
},
"prefix": "string",
"expiration": {
"date": "2022-10-18T02:24:40Z",
"expiredObjectDeleteMarker": true,
"days": 123
},
"abortIncompleteMultipartUpload": {
"daysAfterInitiation": 123
},
"transitions": [
{
"date": "2022-10-18T02:24:40Z",
"days": 123,
"storageClass": "GLACIER"
}
],
"ID": "string"
}
]
}
}'
{
"description": "成功",
"errorCode": null,
"message": "SUCCESS",
"statusCode": 800
}