osc placement resource-provider inventory set
Replace the inventory record of the {resource_class} for the resource provider identified by {uuid}.
Normal Response Codes: 200
Error response codes: badRequest(400), itemNotFound(404), conflict(409)
Usage: osc placement resource-provider inventory set [OPTIONS] --resource-provider-generation <RESOURCE_PROVIDER_GENERATION> --total <TOTAL> <RESOURCE_CLASS> <UUID>
Arguments:
<RESOURCE_CLASS>— resource_class parameter for /resource_providers/{uuid}/inventories/{resource_class} API<UUID>— uuid parameter for /resource_providers/{uuid}/inventories/{resource_class} API
Options:
-
--allocation-ratio <ALLOCATION_RATIO>— It is used in determining whether consumption of the resource of the provider can exceed physical constraints.For example, for a vCPU resource with:
text allocation_ratio = 16.0 total = 8Overall capacity is equal to 128 vCPUs.
-
--max-unit <MAX_UNIT>— A maximum amount any single allocation against an inventory can have -
--min-unit <MIN_UNIT>— A minimum amount any single allocation against an inventory can have -
--reserved <RESERVED>— The amount of the resource a provider has reserved for its own use -
--resource-provider-generation <RESOURCE_PROVIDER_GENERATION>— A consistent view marker that assists with the management of concurrent resource provider updates -
--step-size <STEP_SIZE>— A representation of the divisible amount of the resource that may be requested. For example, step_size = 5 means that only values divisible by 5 (5, 10, 15, etc.) can be requested -
--total <TOTAL>— The actual amount of the resource that the provider can accommodate