Object Storage API, REST: Bucket.GetInventoryConfiguration
Get an inventory configuration with the corresponding ID
HTTP request
GET https://storage.api.yandexcloud.kz/storage/v1/buckets/{bucket}/{id}:getInventoryConfiguration
Path parameters
|
Field |
Description |
|
bucket |
string Required field. Name of the bucket to get the inventory configuration for. |
|
id |
string Required field. ID of the inventory configuration to get. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"destination": {
"bucketDestination": {
"bucket": "string",
"format": "string",
"prefix": "string"
}
},
"includedObjectVersions": "string",
"isEnabled": "boolean",
"schedule": {
"frequency": "string"
},
"filter": {
"prefix": "string"
},
"optionalFields": [
"string"
]
}
|
Field |
Description |
|
id |
string Required field. The ID used to identify the inventory configuration. |
|
destination |
Required field. Contains information about where to publish the inventory results. |
|
includedObjectVersions |
enum (IncludedObjectVersions) Required field. Object versions to include in the inventory list.
|
|
isEnabled |
boolean Specifies whether the inventory is enabled. |
|
schedule |
Required field. Specifies the schedule for generating inventory results. |
|
filter |
Specifies the filter for objects to include in the inventory. |
|
optionalFields[] |
enum (OptionalField) Contains the optional fields that are included in the inventory results.
|
InventoryDestination
|
Field |
Description |
|
bucketDestination |
Required field. Destination bucket settings |
InventoryBucketDestination
|
Field |
Description |
|
bucket |
string Required field. Bucket where inventory results will be published. |
|
format |
enum (Format) Required field. Specifies the output format of the inventory results.
|
|
prefix |
string The prefix that is prepended to all inventory results. |
InventorySchedule
|
Field |
Description |
|
frequency |
enum (Frequency) Required field. Specifies how frequently inventory results are produced.
|
InventoryFilter
|
Field |
Description |
|
prefix |
string Required field. The prefix that an object must have to be included in the inventory results. |