Apache CloudStack 4.20.0.0 Root Admin API Reference

quotaTariffCreate

Creates a quota tariff for a resource.

Request parameters

Parameter NameDescriptionRequired
nameQuota tariff's nametrue
usagetypeInteger value for the usage type of the resource.true
valueThe quota tariff value of the resource as per the default unit.true
activationruleQuota tariff's activation rule. It can receive a JS script that results in either a boolean or a numeric value: if it results in a boolean value, the tariff value will be applied according to the result; if it results in a numeric value, the numeric value will be applied; if the result is neither a boolean nor a numeric value, the tariff will not be applied. If the rule is not informed, the tariff value will be applied.false
descriptionQuota tariff's description.false
enddateThe end date of the quota tariff. If not informed, the tariff will be valid indefinitely. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "23:59:59"). If the recommended format is not used, the date will be considered in the server timezone.false
positionPosition in the execution sequence for tariffs of the same typefalse
startdateThe effective start date on/after which the quota tariff is effective. Inform null to use the current date. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "00:00:00"). If the recommended format is not used, the date will be considered in the server timezone.false

Response Tags

Response NameDescription
idthe ID of the tariff
activationRuleactivation rule of the quota tariff
currencycurrency
descriptiondescription
effectiveDatethe start date of the quota tariff
endDatethe end date of the quota tariff
namename
positionposition in the execution sequence for tariffs of the same type
removedwhen the quota tariff was removed
tariffValuetariffValue
usageDiscriminatorusageDiscriminator
usageNameusageName
usageTypeusageType
usageTypeDescriptionusage type description
usageUnitusageUnit