Restore S3 buckets
POST
/api/meta/entity/bulk#restoreS3Buckets
Restore one or more soft-deleted (archived) S3 buckets.
The restoration relies on matches being found for the provided qualifiedName
s. If the this does not exactly match (case-sensitive) a soft-deleted S3 bucket's qualifiedName
, the request will fail.
Note that the guid
is also required to avoid accidentally creating a new S3 bucket. If the qualifiedName
does not match an existing S3 bucket, and no guid
is supplied in the request, then this endpoint will create a new S3 bucket with the provided details.
POST /api/meta/entity/bulk#restoreS3Buckets
curl \
-X POST https://tenant.atlan.com/api/meta/entity/bulk#restoreS3Buckets \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entities":[{"typeName":"S3Bucket","attributes":{"name":"my-bucket","connectorName":"s3","connectionQualifiedName":"default/s3/production","qualifiedName":"default/s3/production/my-bucket","awsArn":"aws::production:my-bucket"},"guid":"dc14ffca-bf43-4731-b641-51408c4d892c","status":"ACTIVE"}]}'
Request example
{
"entities": [
{
"typeName": "S3Bucket",
"attributes": {
"name": "my-bucket",
"connectorName": "s3",
"connectionQualifiedName": "default/s3/production",
"qualifiedName": "default/s3/production/my-bucket",
"awsArn": "aws::production:my-bucket"
},
"guid": "dc14ffca-bf43-4731-b641-51408c4d892c",
"status": "ACTIVE"
}
]
}
Response example (200)
{
"mutatedEntities": {
"UPDATE": [
{
"typeName": "S3Bucket",
"attributes": {
"popularityScore": 1.17549435e-38,
"sourceCreatedAt": 0,
"s3BucketVersioningEnabled": false,
"viewerUsers": [],
"viewScore": 1.17549435e-38,
"lastSyncRunAt": 0,
"connectionQualifiedName": "default/s3/production",
"adminGroups": [],
"qualifiedName": "default/s3/production/my-bucket",
"awsArn": "aws::production:my-bucket",
"__hasLineage": false,
"s3ObjectCount": 0,
"adminUsers": [],
"ownerGroups\"": [],
"isEditable": true,
"sourceUpdatedAt": 0,
"announcementUpdatedAt": 0,
"name": "my-bucket",
"certificateUpdatedAt": 0,
"connectorName": "s3",
"isDiscoverable": true,
"viewerGroups": [],
"ownerUsers": [],
"awsTags": []
},
"guid": "dc14ffca-bf43-4731-b641-51408c4d892c",
"status": "ACTIVE",
"displayText": "my-bucket",
"classificationNames": [],
"classifications": [],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "service-account-apikey-bea1e1d1-e4e7-465e-8adf-7c61c227a59b",
"updatedBy": "service-account-apikey-bea1e1d1-e4e7-465e-8adf-7c61c227a59b",
"createTime": 1652795647900,
"updateTime": 1652795647900
}
]
},
"guidAssignments": {}
}
Response example (404)
{
"errorCode": "ATLAS-404-00-00A",
"errorMessage": "Referenced entity dc14ffca-bf43-4731-b641-51408c4d892c is not found",
"entityGuid": "dc14ffca-bf43-4731-b641-51408c4d892c"
}