Skip to content

ankuratudemy/IBM-Billing-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask API for IBM Billing Data

This repository contains a Flask application that provides an API for fetching IBM billing data. The API supports retrieving both resource group usage and resource instance usage data for specified regions and account ID. It also includes a simple HTML page to display the fetched data in a table format.

Installation and Usage

  1. Clone the Repository:

    git clone https://github.com:ankuratudemy/IBM-Billing-API.git
    cd your_repository
    
  2. run app.py as api locally:

    python app.py
    
    curl --location 'http://127.0.0.1:5000/billing' \
    --header 'Content-Type: application/json' \
    --data '{
    "resourceInstanceUsage": true,
    "apiKey": "<apiKey>",
    "regionCodes": ["ca-tor","us-south"],
    "accountId": "<account-id>",
    "billMonth": "2024-01"
    }'
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages