Managing account information, container options and domains, creating log exports, and more.
Returns general account information and containers statistics.
{- "bytes_used": 123321,
- "containers_count": 123321,
- "object_count": 123321,
- "quota_bytes": 123321,
- "status": "string",
- "storage_policies_stats": {
- "policy-0": {
- "bytes_used": 123,
- "containers_count": 123,
- "object_count": 123
}
}
}
Sets up account quotas of bytes.
Set up account quotas
quota_bytes | integer <uint64> Setting storage account max bytes used quota in bytes, null value means quota does not exist |
{- "quota_bytes": 1024
}
{- "quota_bytes": 123321
}
Deletes specified domains bound to container.
Container Domains
domains | Array of strings |
{- "domains": [
- "some.domain.com",
- "another.domain.com"
]
}
{- "code": "string",
- "message": "error description"
}
Adds specified domain to container.
Container Domains
domain_name | string |
{- "domain_name": "some.domain.com"
}
{- "code": "string",
- "message": "error description"
}
Retrieves domains and their certificates bound to container.
{- "domains": [
- "test-domain.com",
- "another-domain.com"
]
}
Returns actual container options.
container_name required | string Container name |
{- "general": {
- "cache_control": "no-cache",
- "default_delete_after": 3600,
- "type": "private"
}, - "quota": {
- "max_bytes_used": 1024,
- "max_object_count": 10
}, - "web": {
- "error": "error.html",
- "error_status_code": 200,
- "index": "index.html",
- "listing_css": "style.css",
- "listing_enabled": true
}
}
Sets container options.
container_name required | string Container name |
Container options
object (ContainerGeneralOptionsBodySwagger) | |
object (ContainerQuotaOptionsBodySwagger) | |
object (ContainerWebOptionsBodySwagger) |
{- "general": {
- "cache_control": "max-age=604800",
- "default_delete_after": 3600,
- "type": "private"
}, - "quota": {
- "max_bytes_used": 1024,
- "max_object_count": 10
}, - "web": {
- "error": "error.html",
- "error_status_code": 200,
- "index": "index.html",
- "listing_css": "style.css",
- "listing_enabled": true
}
}
{- "general": {
- "cache_control": "no-cache",
- "default_delete_after": 3600,
- "type": "private"
}, - "quota": {
- "max_bytes_used": 1024,
- "max_object_count": 10
}, - "web": {
- "error": "error.html",
- "error_status_code": 200,
- "index": "index.html",
- "listing_css": "style.css",
- "listing_enabled": true
}
}
Returns a list of log tasks. A task is an asynchronous entity, its processing progress should be tracked.
limit | integer <uint64> Limit |
offset | integer <uint64> Offset |
order_by | string OrderBy |
{- "tasks": [
- {
- "task": {
- "created": "2019-05-14T06:00:00",
- "data": {
- "container": "target_container",
- "delete_after": 3600,
- "fields": [
- "string"
], - "filters": {
- "property1": null,
- "property2": null
}, - "provider": "storage_access",
- "since": "2019-05-14T06:00:00",
- "till": "2019-05-14T06:00:00"
}, - "finished": "2019-05-14T06:00:00",
- "id": "string",
- "response": {
- "objects": [
- "3c9d2cf2-56f0-4ccb-9433-d47209739828/storage_access_20240919T00:00:00-20240926T19:30:00.log.zip",
- "4c0d3cf3-67f1-5ccb-0544-d58310840939/storage_access_20240926T00:00:00-20240930T20:40:00.log.zip"
]
}, - "type": "string",
- "updated": "2019-05-14T06:00:00"
}
}
]
}
Creates new task and returns it. Task is async entity, and you need track processing progress.
Log task body
object | |
type | string |
{- "data": {
- "container": "string",
- "delete_after": 0,
- "fields": [
- "string"
], - "filters": {
- "property1": null,
- "property2": null
}, - "provider": "string",
- "since": "2019-05-14T06:00:00",
- "till": "2019-05-14T06:00:00"
}, - "type": "string"
}
{- "task": {
- "created": "2019-05-14T06:00:00",
- "data": {
- "container": "target_container",
- "delete_after": 3600,
- "fields": [
- "string"
], - "filters": {
- "property1": null,
- "property2": null
}, - "provider": "storage_access",
- "since": "2019-05-14T06:00:00",
- "till": "2019-05-14T06:00:00"
}, - "finished": "2019-05-14T06:00:00",
- "id": "string",
- "response": {
- "objects": [
- "3c9d2cf2-56f0-4ccb-9433-d47209739828/storage_access_20240919T00:00:00-20240926T19:30:00.log.zip",
- "4c0d3cf3-67f1-5ccb-0544-d58310840939/storage_access_20240926T00:00:00-20240930T20:40:00.log.zip"
]
}, - "type": "string",
- "updated": "2019-05-14T06:00:00"
}
}
Returns existing log export task by its ID.
task_id required | string Task ID |
{- "task": {
- "created": "2019-05-14T06:00:00",
- "data": {
- "container": "target_container",
- "delete_after": 3600,
- "fields": [
- "string"
], - "filters": {
- "property1": null,
- "property2": null
}, - "provider": "storage_access",
- "since": "2019-05-14T06:00:00",
- "till": "2019-05-14T06:00:00"
}, - "finished": "2019-05-14T06:00:00",
- "id": "string",
- "response": {
- "objects": [
- "3c9d2cf2-56f0-4ccb-9433-d47209739828/storage_access_20240919T00:00:00-20240926T19:30:00.log.zip",
- "4c0d3cf3-67f1-5ccb-0544-d58310840939/storage_access_20240926T00:00:00-20240930T20:40:00.log.zip"
]
}, - "type": "string",
- "updated": "2019-05-14T06:00:00"
}
}
Cancels existing log export task by its id.
{- "task": {
- "created": "2019-05-14T06:00:00",
- "data": {
- "container": "target_container",
- "delete_after": 3600,
- "fields": [
- "string"
], - "filters": {
- "property1": null,
- "property2": null
}, - "provider": "storage_access",
- "since": "2019-05-14T06:00:00",
- "till": "2019-05-14T06:00:00"
}, - "finished": "2019-05-14T06:00:00",
- "id": "string",
- "response": {
- "objects": [
- "3c9d2cf2-56f0-4ccb-9433-d47209739828/storage_access_20240919T00:00:00-20240926T19:30:00.log.zip",
- "4c0d3cf3-67f1-5ccb-0544-d58310840939/storage_access_20240926T00:00:00-20240930T20:40:00.log.zip"
]
}, - "type": "string",
- "updated": "2019-05-14T06:00:00"
}
}