is it possible to retrieve the app/service usage information ( the fee/the money) via api? - ibm-cloud

Is it possible to retrieve the app/service usage information ( the fee/the money) via api?
I noticed that my current cf command 's version is 2.40.0
API endpoint: https://api.ng.bluemix.net (API version: 2.40.0)
I checked the api list and cannot find any useful information about my request.

Billing information for Bluemix services and application usage is not available through an API; it is only available through the Bluemix console. However, feel free to submit the request on the IBM Bluemix Ideas site for future consideration. Bluemix Project Management reviews the ideas regularly.

Using CF CLI you could use:
cf curl /v2/organizations/ORG_GUID/summary
to retrieve the org guid you can use
cf org <orgName> --guid
This provides you information about the number of services and applications, and the memory usage.

Related

How to auth google cloud API from Java in the same way I authenticated with gcloud CLI

Using gcloud command line I can do the following operation
gcloud builds describe 74f859e9-d621-4632-b6dd-XXXXXXXX
However I wish to use the Google Cloud API from Java, now as I understand the GCloud CLI is not using a service account, it is using a user account. How can I use the same authentication from Google Cloud Java API to do this same operation to describe a build?
Google provides decent documentation that explains how to use its SDKs (Client Libraries) with all of its services.
Here's the Cloud Build client libraries documentation. Pick your preferred language and go.
If you can't use one of Google's SDKs, then you can write code directly against the underlying API. Google's APIs Explorer is an excellent tool for navigating all Google's services. Here's Cloud Build and projects.builds.get which I think (!?) maps to gcloud build describe. You can confirm that by running gcloud builds describe --log-http to see which underlying calls are made.
Code that doesn't access user data (data owned by a user account), should run as a Service Account. Code that accesses user data or operates on behalf of a user, should use the OAuth flow for the user and use an OAuth Client ID. This is what gcloud does. As a program operating on behalf of users, it authenticates you the user using a regular OAuth flow but it operates using an OAuth Client ID against a hidden backing project. Your code should probably just run as a service account.

AWS Billing Service not included in Golang AWS SDK

I see that the AWS Billing service was not included into the Golang SDK
We need to make a Lambda to connect with this service and collect the monthly billing to make a dashboard.
How can we do that ?
Regards
The go sdk's cost explorer package gives access to the aws cost explorer api:
You can use the Cost Explorer API to programmatically query your cost and usage data

API for creating Service credentials in IBM COS

I am using IBM COS for various bucket operations. While I could find various ways of programmatically performing various bucket operations, I was wondering if there are any ways of programmatically(any sdk or rest apis) creating Service credentials as well as editing the policy for a service id?
Yes, there are APIs available to access and manage Cloud IAM
Go to the following API docs to review the available APIs:
IAM Identity Services API
IAM Access Groups API
IAM Policy Management API
Gaurav,
See this doc page to provision an instance of IBM Cloud Object Storage
https://cloud.ibm.com/docs/services/cloud-object-storage/basics/developers.html#provision-an-instance-of-ibm-cloud-object-storage

Where to get the Alchemyapi API key?

I'm doing the, Getting Started with AlchemyAPI Using Ruby, Ruby tutorial. But I cannot seem to find my API key.
Source: http://www.alchemyapi.com/developers/getting-started-guide/using-alchemyapi-with-ruby
At step 3:
3) Configure the Ruby SDK to use your API Key Now that you have the
Ruby SDK code on your computer, you need to do configure it to use
your API key. In the alchemyapi_ruby directory, run:
ruby alchemyapi.rb YOUR_API_KEY
Where YOUR_API_KEY is the 40 character API key you received in your
e-mail when you registered. If everything goes okay, you should see
the following output:
But I didn't get an API Key in an email...
The tutorial sent me to IBM Bluemix to register, which I have.
This is the email from signing up.
Hi XXX,
Thank you for signing up for Bluemix! During your trial, you'll have
access to Bluemix to build apps, with 2 GB of runtime and container
memory, as well as up to 10 provisioned Bluemix services. And, you
won't need to provide any form of payment for this trial.
Confirm your account to start your 30-day trial.
If you have any problems logging in, let us know at IBM Bluemix
Support.
Welcome to Bluemix!
--IBM Bluemix Team
After confirming - still no API Key. I've logged into the Bluemix site and have been searching around but also don't see it.
I apologize in advance if I've missed something obvious. But I'm wasting a lot of time here and would really appreciate any help :)
Has anyone signed up for this service recently and been able to get their API key. Can you tell me where it came from?
Login to Bluemix, go to Services & APIs. In Watson section chose AlchemyAPI and create one. After AlchemyAPI is created go to the dashboard and select created instance.
Under Service Credentials you can find the apikey:
After the acquisition of AlchemyApi by IBM the endpoints have changed hence the old legacy code in GitHub will not be able to use the key which you get from ibm bluemix.
Click on the watson --> then on the previously created credentials --> again click create. Then highlight the 'service credentials' to see the json format details.

Google Cloud Platform system status page

Is there a system status page for Google Cloud Platform services? When experiencing issues where can we look for system status information?
For example, i changed the tier for a Google Cloud SQL instance and it went inaccessible for 12h. The next day the same operation took a couple of minutes as expected.
I found https://code.google.com/status/appengine but not for other products (e.g. Google Cloud SQL).
The Cloud Status Dashboard is the canonical resource for Google Cloud Platform service status, and it does provide information for Cloud SQL.
there is an experimental status page at [1] but actually is provided for test purposes only.
I suggest you to subscribe to Google Groups as they are updated with issues reports, Cloud SQL announce group is available at [2].
Regards
Paolo
Link:
[1] - https://status.cloud.google.com/
[2] - https://groups.google.com/forum/#!topic/google-cloud-sql-announce/