Authorization: Bearer ********************
{
"name": "KYC Document Storage",
"provider": "aws_s3",
"bucket": "kiii",
"managed": true,
"config": {
"Tags": [
{
"Key": "Environment",
"Value": "Testing"
}
],
"CORSConfiguration": {
"CORSRules": [
{
"MaxAgeSeconds": 3000,
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"POST"
],
"AllowedOrigins": [
"*"
]
}
]
},
"LoggingConfiguration": {
"LogFilePrefix": "logs/",
"DestinationBucketName": "my-logging-bucket"
},
"LifecycleConfiguration": {
"Rules": [
{
"ID": "DeleteOldFiles",
"Prefix": "old/",
"Status": "Enabled",
"Expiration": {
"Days": 30
}
}
]
},
"ObjectLockConfiguration": {
"ObjectLockEnabled": "Enabled"
},
"VersioningConfiguration": {
"Status": "Enabled"
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"IgnorePublicAcls": true,
"BlockPublicPolicy": true,
"RestrictPublicBuckets": true
},
"ServerSideEncryptionConfiguration": {
"Rules": [
{
"ApplyServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
}
}
]
}
},
"credentials": {
"region": "ap-south-1",
"aws_access_key_id": "AKIAYGN6PTDNSD4ZWH6O",
"aws_secret_access_key": "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"
},
}
curl --location --request POST 'https://preprod.api.crego.io/storages/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "KYC Document Storage",
"provider": "aws_s3",
"bucket": "kiii",
"managed": true,
"config": {
"Tags": [
{
"Key": "Environment",
"Value": "Testing"
}
],
"CORSConfiguration": {
"CORSRules": [
{
"MaxAgeSeconds": 3000,
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"POST"
],
"AllowedOrigins": [
"*"
]
}
]
},
"LoggingConfiguration": {
"LogFilePrefix": "logs/",
"DestinationBucketName": "my-logging-bucket"
},
"LifecycleConfiguration": {
"Rules": [
{
"ID": "DeleteOldFiles",
"Prefix": "old/",
"Status": "Enabled",
"Expiration": {
"Days": 30
}
}
]
},
"ObjectLockConfiguration": {
"ObjectLockEnabled": "Enabled"
},
"VersioningConfiguration": {
"Status": "Enabled"
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"IgnorePublicAcls": true,
"BlockPublicPolicy": true,
"RestrictPublicBuckets": true
},
"ServerSideEncryptionConfiguration": {
"Rules": [
{
"ApplyServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
}
}
]
}
},
"credentials": {
"region": "ap-south-1",
"aws_access_key_id": "AKIAYGN6PTDNSD4ZWH6O",
"aws_secret_access_key": "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"
},
}'
{
"id": "01JNK2H9PXMJP56WP082YCNNSP",
"tenant_id": "60371b35-d8f5-4a7f-beee-97aada4bb8a8",
"created_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
"updated_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
"created_at": "2025-03-05T17:24:55.077816Z",
"updated_at": "2025-03-05T17:24:55.077839Z",
"name": "Lori Batz",
"provider": "aws_s3",
"bucket": "ldkrk15bv65elx05l5e3hx-vb53ocz16nshf-d-rweb168p",
"config": {
"Tags": [
{
"Key": "Environment",
"Value": "Testing"
}
],
"CORSConfiguration": {
"CORSRules": [
{
"MaxAgeSeconds": 3000,
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"POST"
],
"AllowedOrigins": [
"*"
]
}
]
},
"LoggingConfiguration": {
"LogFilePrefix": "logs/",
"DestinationBucketName": "my-logging-bucket"
},
"LifecycleConfiguration": {
"Rules": [
{
"ID": "DeleteOldFiles",
"Prefix": "old/",
"Status": "Enabled",
"Expiration": {
"Days": 30
}
}
]
},
"ObjectLockConfiguration": {
"ObjectLockEnabled": "Enabled"
},
"VersioningConfiguration": {
"Status": "Enabled"
},
"PublicAccessBlockConfiguration": {
"BlockPublicAcls": true,
"IgnorePublicAcls": true,
"BlockPublicPolicy": true,
"RestrictPublicBuckets": true
},
"ServerSideEncryptionConfiguration": {
"Rules": [
{
"ApplyServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
}
}
]
}
},
"credentials": {
"region": "",
"aws_access_key_id": "",
"aws_secret_access_key": ""
}
}