Object Storage API, gRPC: BucketService.GetInventoryConfiguration
Get an inventory configuration with the corresponding ID
gRPC request
rpc GetInventoryConfiguration (GetBucketInventoryConfigurationRequest) returns (InventoryConfiguration)
GetBucketInventoryConfigurationRequest
{
"bucket": "string",
"id": "string"
}
|
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. |
InventoryConfiguration
{
"id": "string",
"destination": {
"bucket_destination": {
"bucket": "string",
"format": "Format",
"prefix": "google.protobuf.StringValue"
}
},
"included_object_versions": "IncludedObjectVersions",
"is_enabled": "bool",
"schedule": {
"frequency": "Frequency"
},
"filter": {
"prefix": "string"
},
"optional_fields": [
"OptionalField"
]
}
|
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. |
|
included_object_versions |
enum IncludedObjectVersions Required field. Object versions to include in the inventory list.
|
|
is_enabled |
bool 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. |
|
optional_fields[] |
enum OptionalField Contains the optional fields that are included in the inventory results.
|
InventoryDestination
|
Field |
Description |
|
bucket_destination |
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 |
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. |