v1

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

List Cost Markup Rules

list Markup rules

get/cost/markups_and_discounts/{tenant_id}/list

Path parameters

tenant_idstring required

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

Query parameters

action'list_configured_rules' required

Specify the action to fetch markup data

scope'tenant' | 'cloud_account'

Specify the scope to fetch markup data

Response

Success

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 response

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