v1

latestOpenAPI 3.0.0CoreStack Inc License2026-07-248001,5071.7 MB
Cost

Create Cost Markup Rule

create Markup rule

put/cost/markups_and_discounts/{tenant_id}/create

Path parameters

tenant_idstring required

Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

Request body

start_datestring date required

Start date of the rule

end_datestring date required

End date for that rule

rule_namestring required

Rule name. Enter an existing Rule name or else a new one will be created

rule_scope'tenant' | 'cloud_account' required

Scope of the rule. This field cannot be updated use the same Rule Scope. If you want to update this create a new Rule

rule_type'discount' | 'markup' | 'RI_discount' | 'RI_markup' | 'Third_Party_License' required

Type of the markup/discount rule

is_activeboolean

States if the rule is active or not

markup_type'fixed_amount' | 'percentage' required

Type of the markup

markup_amountnumber required

Markup/Discount amount depending on the markup type selected

service'AWS' | 'Azure' | 'AzureStack' | 'Azure_CSP' | 'Azure_CSP-Direct' | 'Azure_EA' | 'Azure_MCA' | 'Cloudstack' | 'GCP' | 'MS_VMM' | 'OCI' | 'Openstack' | 'PrivateCloud' | 'Rackspace' | 'VMware' | 'VMware_VCD' | 'vCenter' required

Cloud Provider to select

Example request

{
  "rule_scope": "tenant",
  "rule_type": "discount",
  "markup_type": "fixed_amount",
  "service": "AWS"
}

Response

Success

namestring

Created Rule name