<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# Cloud Storage Lifecycle — API Reference

## AWS S3 API

```bash
aws s3api get-bucket-encryption --bucket BUCKET
aws s3api put-bucket-encryption --bucket BUCKET --server-side-encryption-configuration CONF
aws s3api get-public-access-block --bucket BUCKET
aws s3api put-public-access-block --bucket BUCKET --public-access-block-configuration CONF
aws s3api get-bucket-lifecycle-configuration --bucket BUCKET
aws s3api get-bucket-versioning --bucket BUCKET
```

## GCS API

```bash
gsutil lifecycle get gs://BUCKET
gsutil lifecycle set POLICY gs://BUCKET
gsutil encryption get gs://BUCKET
gsutil publicAccessPrevention get gs://BUCKET
```

## Azure Blob API

```bash
az storage account management-policy show --account-name ACCT --resource-group RG
az storage account show --name ACCT --query encryption
az storage account show --name ACCT --query allowBlobPublicAccess
```
