コンテンツにスキップ

Record storage destination usage

POST
/api/admin/storage-destinations/{id}/usage
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/storage-destinations/example/usage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "feature": "audit_archive", "resource_type": "audit_log", "resource_id": "audit_123", "metadata": { "reason": "archive_write" } }'

Record usage of a storage destination by a tenant-scoped feature resource.

id
required
string

Record storage destination usage.

Media type application/json
object
feature
required
string
resource_type
required
string
resource_id
required
string
metadata
object
key
additional properties
Example
{
"feature": "audit_archive",
"resource_type": "audit_log",
"resource_id": "audit_123",
"metadata": {
"reason": "archive_write"
}
}

Storage destination usage record.

Media type application/json
object
item
required
object
key
additional properties
audit_id
One of:
string
version
integer
key
additional properties
Example
{
"item": {
"id": "sdu_123",
"destination_id": "sd_123",
"feature": "audit_archive",
"resource_type": "audit_log",
"resource_id": "audit_123",
"tenant_id": "tenant_123",
"metadata": {
"reason": "archive_write"
},
"created_by": "admin_123",
"created_at": 1770000000000
}
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}