Aug 05, 2021
12:10 PM
3 Kudos
Hi, It is possible you are using an older version of the fpt tool. You can check the version using fpt -v
fpt v1.3.0 - 2021-03-01 22:14:46 - 9cef5d487030b2a016d20238c8f04bd361a247dc The latest version of the fpt tool does display the account option when using the help fpt --help
usage: fpt [<flags>] <command> [<args> ...]
A command-line application for testing Flexera Policies. fpt contains a number of useful commands to help with development of Policies, including a syntax checker and policy
runner. Run fpt --help <command> for additional command specific help.
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-d, --debug Debug mode
-c, --config="/Users/avinash/.fpt.yml"
Config file path
-a, --account=ACCOUNT Config file account name to use
-v, --version Show application version.
... View more
Jul 29, 2021
03:19 PM
2 Kudos
One other thing I noticed that is incorrect with the config is the API endpoint host. The valid API endpoints are listed in API Docs In your case, the API endpoint host should be governance-4.rightscale.com If you configured multiple accounts in the fpt config file make sure you are specifying the account name to use in the request Ex: fpt -a sbox3 upload test\listinstance.pt
... View more
Jul 29, 2021
12:47 PM
2 Kudos
The error you are seeing happens when the account_id, refresh_token combination you are using is incorrect. Can you please try making a curl request to Flexera Cloud Management API oauth2 endpoint using the refresh token and host in your fpt config to verify the parameters are correct? Ex: curl -i -H X-API-Version:1.5 -X POST https://us-4.rightscale.com/api/oauth2 -d "grant_type=refresh_token" -d "refresh_token=b0aaec366b0fc366df1336622dda366875b3660c"
... View more
Latest posts by abhashyam
Subject | Views | Posted |
---|---|---|
1717 | Aug 05, 2021 12:10 PM | |
1766 | Jul 29, 2021 03:19 PM | |
1777 | Jul 29, 2021 12:47 PM |
Activity Feed
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 06, 2021 04:31 AM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 05, 2021 12:52 PM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 05, 2021 12:52 PM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 05, 2021 12:51 PM
- Posted Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account on Flexera One Forum. Aug 05, 2021 12:10 PM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 05, 2021 12:10 PM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Aug 05, 2021 03:20 AM
- Got a Kudo for Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account. Jul 29, 2021 03:44 PM
- Posted Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account on Flexera One Forum. Jul 29, 2021 03:19 PM
- Posted Re: Flexera Policy Tool - '400 Bad Request' when trying to use configured account on Flexera One Forum. Jul 29, 2021 12:47 PM