userID: ********************{
"bucket": "ztces-230404-create",
"regionID": "nm8",
"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": "key1",
"value": "value1"
}
]
},
"prefix": "prefix1",
"tag": {
"key": "tagkey",
"value": "tagvalue"
},
"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": "e0e83f36de2b5318e9958eb581defa16"
}
]
}
}curl --location --request POST 'http://ct-global.ctapi-internal.ctyun.local:31111/v4/oss/put-bucket-lifecycle-conf' \
--header 'x-ctyun-user-id: {{userID}}' \
--header 'Accept-Language: zh-CN' \
--header 'userId: ef378f73-1c52-435e-90f2-6a9cd2258c8e' \
--header 'userID: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"bucket": "ztces-230404-create",
"regionID": "nm8",
"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": "key1",
"value": "value1"
}
]
},
"prefix": "prefix1",
"tag": {
"key": "tagkey",
"value": "tagvalue"
},
"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": "e0e83f36de2b5318e9958eb581defa16"
}
]
}
}'{
"description": "成功",
"error": "Success",
"errorCode": "Success",
"message": "success",
"statusCode": 800,
"returnObj": []
}