CoreStack Cost API

Cost Pillar

Operations 36

PUT /cost/cost_savings/accounts/visibility/{tenant_id} List Cost Saving Recommendation #
GET /cost/cost_savings/accounts/visibility/{tenant_id}/recommendations/{recommendation_id}/view View Cost Saving Recommendation #
GET /cost/cost_savings/cost_saved_recommendation List Cost Saving Recommendations #
PUT /cost/cost_savings/tenants/visibility/{tenant_id} List Cost Saving Recommendation by Tenant #
POST /cost/cost_savings/{tenant_id}/resolve_recommendation/{recommendation_id} Resolve Cost Savings Recommendations #
POST /cost/costoptimizer/optimizerate/license_benefit/hub_discounts License Benefit Hub Discounts #
POST /cost/costoptimizer/optimizerate/license_benefit/saving_summary License Benefit Cost Savings Summary #
GET /cost/costoptimizer/optimizeusage/tenant Tenant Details #
POST /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_account_summary Overall Cloud Account Summary #
POST /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_account_type Cloud Account Details #
GET /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_accounts View Cloud Account_ID and Cloud Account Name #
GET /cost/costoptimizer/optimizeusage/{tenant_id}/filter View Tenant Wise Currency's Or Cloud Account Type #
GET /cost/costoptimizer/optimizeusage/{tenant_id}/summary Tenant Wise Cost Summary #
GET /cost/costoptimizer/optimizeusage/{tenant_id}/top_recommendations View Resource Wise Cost Details Under Cloud Account ID #
POST /cost/costoptimizer/optimizeusage/{tenant_id}/view_recommendations Resource Wise Recommendation(Savings) Data #
POST /cost/executive_dashboard/budget_drift Get Actual or Forecast Budget Drift #
POST /cost/executive_dashboard/cost_anomalies_by_cloud Get Cost Spend By Cloud and Resource Category #
POST /cost/executive_dashboard/cost_optimization_by_optimization_types cost optimization by optimization type #
POST /cost/executive_dashboard/cost_optimization_trend Get cost optimization trend #
POST /cost/executive_dashboard/geo_coordinates_for_regions geo coordinates for regions #
POST /cost/executive_dashboard/tagged_and_untagged_resources Get Tagged and Untagged Resources Cost By Product Category #
POST /cost/executive_dashboard/top_budgets Get Top Budget By Tenant #
PUT /cost/markups_and_discounts/{tenant_id}/create Create Cost Markup Rule #
DELETE /cost/markups_and_discounts/{tenant_id}/delete Delete Cost Markup Rule #
GET /cost/markups_and_discounts/{tenant_id}/list List Cost Markup Rules #
PUT /cost/markups_and_discounts/{tenant_id}/update Update Cost Markup Rule #
POST /cost/ri/recommendation List Recommendations #
GET /cost/ri/utilization/reservations List Cost Reservations & Utilization #
POST /cost/ri/utilization/reservations List Cost Reservations & Utilization (multi-tenant) #
GET /cost/ri/utilization/{cloud_account_id}/reservations/{reservation_id} List Cost Reservations & Utilization by Cloud Account #
POST /v1/cost/costoptimizer/optimizerate/long_term_savings/recommended_reservations/savings_summary Saving Summary for Recommended Reservations #
POST /v1/cost/finops_assessment_trigger/{tenant_id}/{cloud_account_id} Finops Assessment Trigger #
GET /v1/cost/finops_assessment_trigger_history/{cloud_account_id} Finops Assessment Trigger History #
GET /v1/cost/finops_assessment_trigger_status/{assessment_run_id} Finops Assessment Trigger Status #
POST /v1/cost/tags/batch Returns a batch of CostTag #
POST /v1/cost/tags/list Returns a list of CostTag ids #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/corestack-cost-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

corestack-cost-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CoreStack External Cost API
  version: 1.0.0
  termsOfService: http://corestack.io/
  license:
    name: CoreStack Inc License
    url: http://corestack.io/licenses/LICENSE-2.0.html
  description: Cost Pillar
servers:
- url: /
tags:
- name: Cost
  description: Cost Pillar
paths:
  /cost/cost_savings/accounts/visibility/{tenant_id}:
    put:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRecommendationsResponse'
      summary: List Cost Saving Recommendation
      description: list recommendation
      operationId: CostSavingListRecommendation
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListRecommendationsRequest'
        required: true
  /cost/cost_savings/accounts/visibility/{tenant_id}/recommendations/{recommendation_id}/view:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRecommendationsViewResponse'
      summary: View Cost Saving Recommendation
      description: view recommendation
      operationId: CostSavingViewRecommendation
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - name: recommendation_id
        in: path
        required: true
        description: Recommendation Id.Can be fetched from '/cost/cost_savings/accounts/visibility/{tenant_id}' or '/cost/cost_savings/tenants/visibility/{tenant_id}' api
        schema:
          type: string
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/cost_savings/cost_saved_recommendation:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostSavingsRecommendationsResponse'
      summary: List Cost Saving Recommendations
      description: view cost saving recommendation
      operationId: ListCostSavingRecommendations
      parameters:
      - description: Currency to fetch the data
        in: query
        x-cs-enum-type: Currency
        required: false
        name: currency
        schema:
          type: string
          enum:
          - AED
          - ALL
          - ARS
          - AUD
          - BAM
          - BDT
          - BGN
          - BHD
          - BRL
          - CAD
          - CHF
          - CLP
          - CNY
          - COP
          - CRC
          - CZK
          - DKK
          - EGP
          - EUR
          - GBP
          - HKD
          - HRK
          - HUF
          - IDR
          - ILS
          - INR
          - ISK
          - JPY
          - KES
          - KRW
          - KWD
          - KZT
          - MOP
          - MVR
          - MXN
          - MYR
          - NOK
          - NZD
          - OMR
          - PEN
          - PHP
          - PKR
          - PLN
          - QAR
          - RON
          - RSD
          - RUB
          - SAR
          - SEK
          - SGD
          - THB
          - TRY
          - TWD
          - USD
          - VND
          - ZAR
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/cost_savings/tenants/visibility/{tenant_id}:
    put:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRecommendationsTenantResponse'
      summary: List Cost Saving Recommendation by Tenant
      description: list recommendation tenant
      operationId: CostSavingListRecommendationTenant
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListRecommendationsTenantRequest'
        required: true
  /cost/cost_savings/{tenant_id}/resolve_recommendation/{recommendation_id}:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Resolved
          content:
            application/json:
              schema:
                type: boolean
      summary: Resolve Cost Savings Recommendations
      description: Resolve cost savings recommendation
      operationId: ResolveCostSavingsRecommendation
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - name: recommendation_id
        in: path
        required: true
        description: Recommendation Id.Can be fetched from '/cost/cost_savings/accounts/visibility/{tenant_id}' or '/cost/cost_savings/tenants/visibility/{tenant_id}' api
        schema:
          type: string
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveCostSavingsRecommendationsRequest'
        required: true
  /cost/costoptimizer/optimizerate/license_benefit/hub_discounts:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseBenefitHubDiscountsResponse'
      summary: License Benefit Hub Discounts
      description: License Benefit
      operationId: LicenseBenefitHubDiscounts
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseBenefitHubDiscountsRequest'
        required: true
  /cost/costoptimizer/optimizerate/license_benefit/saving_summary:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseBenefitSavingResponse'
      summary: License Benefit Cost Savings Summary
      description: License Benefit
      operationId: LicenseBenefitSavingSummary
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseBenefitSavingRequest'
        required: true
  /cost/costoptimizer/optimizeusage/tenant:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostOptimizationTenResponse'
      summary: Tenant Details
      description: Under cost optimization Tenant ID and Tenant details
      operationId: TenantDetails
      parameters:
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_account_summary:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostOptimizationCloudAccountSummaryResponse'
      summary: Overall Cloud Account Summary
      description: cost optimization overall cloud account summary
      operationId: costOptimizationCloudAccountSummary
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostOptimizationCloudAccountSummaryRequest'
        required: true
  /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_account_type:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostOptimizationCloudAccTypeResponse'
      summary: Cloud Account Details
      description: fetch cloud account details
      operationId: CostOptimizationCloudAccountType
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostOptimizationCloudAccountTypeRequest'
        required: true
  /cost/costoptimizer/optimizeusage/{tenant_id}/cloud_accounts:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudAccounts'
      summary: View Cloud Account_ID and Cloud Account Name
      description: fetch cloud account_id and cloud account name
      operationId: CostOptimizationCloudAccounts
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: select mode of currency
        in: query
        x-cs-enum-type: Currency
        required: true
        name: currency
        schema:
          type: string
          enum:
          - AED
          - ALL
          - ARS
          - AUD
          - BAM
          - BDT
          - BGN
          - BHD
          - BRL
          - CAD
          - CHF
          - CLP
          - CNY
          - COP
          - CRC
          - CZK
          - DKK
          - EGP
          - EUR
          - GBP
          - HKD
          - HRK
          - HUF
          - IDR
          - ILS
          - INR
          - ISK
          - JPY
          - KES
          - KRW
          - KWD
          - KZT
          - MOP
          - MVR
          - MXN
          - MYR
          - NOK
          - NZD
          - OMR
          - PEN
          - PHP
          - PKR
          - PLN
          - QAR
          - RON
          - RSD
          - RUB
          - SAR
          - SEK
          - SGD
          - THB
          - TRY
          - TWD
          - USD
          - VND
          - ZAR
      - description: select cloud account type
        in: query
        x-cs-enum-type: CloudServiceName
        required: true
        name: service_name
        schema:
          type: string
          enum:
          - AWS
          - Azure
          - AzureStack
          - Azure_CSP
          - Azure_CSP-Direct
          - Azure_EA
          - Azure_MCA
          - Cloudstack
          - GCP
          - MS_VMM
          - OCI
          - Openstack
          - PrivateCloud
          - Rackspace
          - VMware
          - VMware_VCD
          - vCenter
          default: AWS
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/costoptimizer/optimizeusage/{tenant_id}/filter:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterServices'
      summary: View Tenant Wise Currency's Or Cloud Account Type
      description: view tenant wise currency or cloud account type
      operationId: TenantServicesFilter
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: view cloud account type
        in: query
        required: false
        name: services
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
      - description: view currency
        in: query
        required: false
        name: currency
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
      - description: select the cloud type
        in: query
        x-cs-enum-type: CloudServiceName
        required: false
        name: service_name
        schema:
          type: string
          enum:
          - AWS
          - Azure
          - AzureStack
          - Azure_CSP
          - Azure_CSP-Direct
          - Azure_EA
          - Azure_MCA
          - Cloudstack
          - GCP
          - MS_VMM
          - OCI
          - Openstack
          - PrivateCloud
          - Rackspace
          - VMware
          - VMware_VCD
          - vCenter
          default: AWS
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/costoptimizer/optimizeusage/{tenant_id}/summary:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptimizationSummary'
      summary: Tenant Wise Cost Summary
      description: under cost optimization tenant wise summary
      operationId: TenantCostSummary
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: select the cloud account type
        in: query
        x-cs-enum-type: CloudServiceName
        required: false
        name: service_name
        schema:
          type: string
          enum:
          - AWS
          - Azure
          - AzureStack
          - Azure_CSP
          - Azure_CSP-Direct
          - Azure_EA
          - Azure_MCA
          - Cloudstack
          - GCP
          - MS_VMM
          - OCI
          - Openstack
          - PrivateCloud
          - Rackspace
          - VMware
          - VMware_VCD
          - vCenter
          default: AWS
      - description: select the mode of currency
        in: query
        x-cs-enum-type: Currency
        required: true
        name: currency
        schema:
          type: string
          enum:
          - AED
          - ALL
          - ARS
          - AUD
          - BAM
          - BDT
          - BGN
          - BHD
          - BRL
          - CAD
          - CHF
          - CLP
          - CNY
          - COP
          - CRC
          - CZK
          - DKK
          - EGP
          - EUR
          - GBP
          - HKD
          - HRK
          - HUF
          - IDR
          - ILS
          - INR
          - ISK
          - JPY
          - KES
          - KRW
          - KWD
          - KZT
          - MOP
          - MVR
          - MXN
          - MYR
          - NOK
          - NZD
          - OMR
          - PEN
          - PHP
          - PKR
          - PLN
          - QAR
          - RON
          - RSD
          - RUB
          - SAR
          - SEK
          - SGD
          - THB
          - TRY
          - TWD
          - USD
          - VND
          - ZAR
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/costoptimizer/optimizeusage/{tenant_id}/top_recommendations:
    get:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopRecommendations'
      summary: View Resource Wise Cost Details Under Cloud Account ID
      description: Fetch Cost Optimization Top Recommendation as per resource IDs
      operationId: CostOptimizationTopRecommendations
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: provide recommendation_id
        name: recommendation_id
        in: query
        schema:
          type: string
      - description: provide resource_id
        name: resource_id
        in: query
        schema:
          type: string
      - description: provide cloud_account_id
        name: cloud_account_id
        in: query
        schema:
          type: string
      - description: select mode of currency
        name: currency
        in: query
        schema:
          type: string
      - description: provide resource_type
        name: resource_type
        in: query
        schema:
          type: string
      security:
      - auth_token: []
      tags:
      - Cost
  /cost/costoptimizer/optimizeusage/{tenant_id}/view_recommendations:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CostOptimizationViewRecommendationResponse'
      summary: Resource Wise Recommendation(Savings) Data
      description: Cost Optimization Resource wise Recommendation(saving) data
      operationId: CostOptimizationViewRecommendations
      parameters:
      - name: tenant_id
        in: path
        required: true
        description: Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.
        schema:
          type: string
      - description: resource status
        in: query
        required: false
        name: resource_status
        schema:
          type: string
          enum:
          - open
          - close
      - description: select the request type
        in: query
        required: true
        name: request_type
        schema:
          type: string
          enum:
          - right_size
          - orphaned
          - idle
          - config
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostOptimizationViewRecommendationRequest'
        required: true
  /cost/executive_dashboard/budget_drift:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BudgetDrift'
      summary: Get Actual or Forecast Budget Drift
      description: View Current or Forecast budget drift.
      operationId: BudgetDrift
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BudgetDriftRequest'
        required: true
  /cost/executive_dashboard/cost_anomalies_by_cloud:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CostAnomalyByCloud'
      summary: Get Cost Spend By Cloud and Resource Category
      description: View Cost Anomalies By Cloud.
      operationId: CostAnomaliesByCloud
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostAnomalyByCloudRequest'
        required: true
  /cost/executive_dashboard/cost_optimization_by_optimization_types:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CostOptimizationByOptimizationTypes'
      summary: cost optimization by optimization type
      description: View Cost Optimization By Optimization Types.
      operationId: CostOptimizationByOptimizationTypes
      security:
      - auth_token: []
      tags:
      - Cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CostOptimizationByOptimizationTypesRequest'
        required: true
  /cost/executive_dashboard/cost_optimization_trend:
    post:
      responses:
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
   

# --- truncated at 32 KB (152 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/corestack/refs/heads/main/openapi/corestack-cost-api-openapi.yml