Jun 04, 2020
01:01 PM
Hi @KPBussey , That sounds like it could be really beneficial, I would definitely be interested. Thanks!
... View more
Jun 03, 2020
08:58 AM
Hi @JohnSorensenDK , Fantastic! I'll start digging in to Policy Templates then. Thanks again!
... View more
Jun 02, 2020
01:23 PM
Hi @egonzalez , This certainly looks promising, quick question, are policies available in Optima? I ask because at the moment Optima is all I have access to. Thanks again! Ryan
... View more
Jun 01, 2020
02:18 PM
Hi @egonzalez , Thanks so much for the additional information. It definitely looks like we would have access to the information we're looking for in a Policy Template, the last bit that I'm trying to figure out is how we could export / receive that information when the policy is run. Ideally we'd like to receive a json file daily that has information about each amazon EC2 instance run / running / stopped etc. that day. I see that we can trigger an email and have that email populated via a template, are there other methods of exporting information? Thanks! Ryan
... View more
Jun 01, 2020
01:13 PM
Hi @egonzalez , Ultimately we're trying to retrieve the amount of time that a specific resource has run. Eventually we'll be concerned with how much was charged for a particular resource, but for now we're just looking at getting just the up time for AWS EC2 instances. Thanks, Ryan
... View more
Jun 01, 2020
12:43 PM
Hi @egonzalez , Not sure if I was doing the replies right or not, but I wanted to reach out and see if the information that was previously provided by the `resource_id` dimension is available in some other way? Thanks! Ryan
... View more
May 29, 2020
10:21 AM
Hello, Just wanted to touch bases and see if any progress had been made on whether or not it was still possible to get the information contained in the previously available "resource_id" dimension via some other mechanism or API? Thanks in advance! Ryan
... View more
May 26, 2020
01:52 PM
Hi egonzalez, Ok, so that certainly explains why including the `resource_id` to the dimensions didn't produce the result that it used to. It looks like that's no longer a valid dimension. So previously `resource_id` used to, for AWS EC2 instances, provide an id for a given instance. It looked something like: EC2 Instance: i-[\w\d]{17} # which basically "i-" followed by 17 letters and / or numbers EC2 Volume: vol-[\w\d]{17} # "vol-" followed by 17 letters and / or numbers Would you happen to know where else I could access this information? Thanks! Ryan
... View more
May 26, 2020
12:21 PM
1 Kudo
Hello, I'm running into a small problem when querying the Bill Analysis costs/select end point. I'm specifying the `resource_id` as a dimension to be returned but when looking at the data received from the endpoint, the `resource_id` for each item in the `rows` array is an empty string ( "" ). Is there some request parameter that I need to include to have this value returned? Any help would be much appreciated. Thanks in advance! Ryan
... View more
Apr 06, 2020
03:20 PM
Hi, So that seems to have done it. I am now retrieving information when I make an API call. Now I just need to figure out how to retrieve the data that I'm looking for. You wouldn't happen to know which dimensions I'll need to include to retrieve instance ( AWS EC2 Id's ) level information would you? Thanks again! Ryan
... View more
Apr 06, 2020
01:40 PM
Hello, Ok, so after going over the script again I've updated the URL to: https://optima.rightscale.com/bill-analysis/orgs/<org_id>/costs/select. Updated the Authorization Header to 'Api-Version: 1.0' and wrapped all of the headers / post data in single quotes as opposed to double quotes and I do not have any errors now. Unfortunately I am not receiving any data back from the endpoint either, the endpoint returns the following: `{"rows":[]}`. I also tried increasing the date range to 2020-01 -> 2020-03 but that didn't help either. Thanks again for all your help so far! Ryan
... View more
Apr 03, 2020
06:28 PM
Hi, Here's the error message: "{"id":"81FuN0rz","code":"method_not_allowed","status":405,"detail":"Method POST must be one of GET, HEAD, OPTIONS","meta":{"allowed":"GET, HEAD, OPTIONS","method":"POST"}}" And the code is literally just the curl command I've posted previously, here's the full curl command I'm using minus the authentication token and billing center id: curl --include -L -H "X-API-Version:1.0" -H "Authorization: Bearer <authentication_token>" -H "Content-Type: application/json" --request POST --data "{ "billing_center_ids": [ "<billing_center_id>" ], "dimensions": [ "vendor", "category", "service", "instance_type", "billing_center_id", "usage_unit" ], "end_at": "2020-02", "filter": { "dimension": "vendor", "type": "equal", "value": "aws" }, "granularity": "month", "limit": 1000, "metrics": [ "usage_amount" ], "start_at": "2020-01" }" "https://optima.rightscale.com/orgs/27378/costs/select"
... View more
Apr 03, 2020
04:13 PM
Hello, Thanks! That certainly fixed the 302/301 redirect loop. Now I'm getting an error msg that says it doesn't accept "POST" requests. Do you happen to have updated docs for this endpoint? Thanks, Ryan
... View more
Apr 03, 2020
10:22 AM
Hello, I am currently attempting to utilize the costs api as detailed here: https://reference.rightscale.com/bill_analysis/?url=swagger_adj.json#/ specifically the "select costs" endpoint. When I make an authenticated request ( via OAuth token ) to this endpoint I receive a: 301 Moved Permanently; Location: https://us-4.rightscale.com followed by a: 302 Found; Location: https://us-4.rightscale.com/acct/<acct_id>/dashboard;overview and then a loop of 302's bouncing between https://us-4.rightscale.com & https://us-4.rightscale.com/acct/<acct_id>/dashboard;overview Here's an example curl request that I'm using: curl --include -L \ -H "X-API-Version:1.0" \ -H "Authorization: Bearer <oauth access token>" \ -H "Content-Type: application/json" \ --request POST \ --data "$PAYLOAD" https://us-4.rightscale.com/orgs/<org_id>/costs/select Here's the payload that I'm including: { "billing_center_ids": [ "<billing_center_id>" ], "dimensions": [ "vendor", "category", "service", "instance_type", "billing_center_id", "usage_unit" ], "end_at": "2020-02", "filter": { "dimension": "vendor", "type": "equal", "value": "aws" }, "granularity": "month", "limit": 1000, "metrics": [ "usage_amount" ], "start_at": "2020-01" } Any help you might be able to provide would be greatly appreciated. Thanks! Ryan
... View more
Latest posts by CCRDev
Subject | Views | Posted |
---|---|---|
2788 | Jun 04, 2020 01:01 PM | |
2812 | Jun 03, 2020 08:58 AM | |
2832 | Jun 02, 2020 01:23 PM | |
3091 | Jun 01, 2020 02:18 PM | |
3096 | Jun 01, 2020 01:13 PM | |
3127 | Jun 01, 2020 12:43 PM | |
3179 | May 29, 2020 10:21 AM | |
3218 | May 26, 2020 01:52 PM | |
3281 | May 26, 2020 12:21 PM | |
4028 | Apr 13, 2020 08:22 AM |
Activity Feed
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 04, 2020 01:01 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 03, 2020 08:58 AM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 02, 2020 01:23 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 01, 2020 02:18 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 01, 2020 01:13 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. Jun 01, 2020 12:43 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. May 29, 2020 10:21 AM
- Got a Kudo for Empty resource_id when querying the Bill Analysis API. May 26, 2020 01:53 PM
- Posted Re: Empty resource_id when querying the Bill Analysis API on Flexera One Forum. May 26, 2020 01:52 PM
- Posted Empty resource_id when querying the Bill Analysis API on Flexera One Forum. May 26, 2020 12:21 PM
- Got a Kudo for Re: Bill Analysis API Question. Apr 13, 2020 08:56 AM
- Posted Re: Bill Analysis API Question on Flexera One Forum. Apr 13, 2020 08:22 AM
- Posted Re: Bill Analysis API Question on Flexera One Forum. Apr 06, 2020 03:20 PM
- Posted Re: Bill Analysis API Question on Flexera One Forum. Apr 06, 2020 01:40 PM
- Posted Re: Bill Analysis API Question on Flexera One Forum. Apr 03, 2020 06:28 PM
- Posted Re: Bill Analysis API Question on Flexera One Forum. Apr 03, 2020 04:13 PM
- Posted Bill Analysis API Question on Flexera One Forum. Apr 03, 2020 10:22 AM