The account settings page (Manage > Account > Account Settings) lists an account ID and an account name under the "Account" heading. The account ID is easy enough to retrieve using the API, but I've not found a way to get the account name. Is this possible to get using the API?
I've been looking at the IBM Cloud API Docs and at the Softlayer API docs but haven't been able to find something which returns the account name.
The ibmcloud CLI returns the info, but I'd rather not have to use the CLI since this will be used from within a Python app.
You can always use IBMCLOUD_TRACE=true on the CLI to find out what the ibmcloud command is doing. What you see as "account name" is the ID resolved by going to the user management API.
Related
Through google cloud console, we can reset password and can give custom username for VM Instances(windows), But we want to achieve same thing using REST API , but we couldn't find.
As we can create password through GCloud CommandLine, but is there any API's to create.
Kindly help to find the REST API
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.
In many of the APIs for Bluemix, I need to know my "organization id" which I believe to be different from the "name" of my organization. When I login to the Bluemix dashboard, I am unable to find my organization id value. What is the recommended set of steps to determine my own organization id value?
You can use the cf command line tool for this:
$ cf org <org-name> --guid
You can also see it in the Bluemix dashboard browser URL, like for example (I modified mine below for security reasons):
https://console.ng.bluemix.net/?direct=classic/#/resources/cloudOEPaneId=resources&orgGuid=xxxxxxxx-8afc-4b2f-afb5-dc7d77dd0baa&spaceGuid=xxxxxxx-2c29-4d8a-9e97-06aed
I've done an extensive research but I can't find a solution.
How can I enable Service Account Authentication for a project that is linked with Google's private owned Bucket for Double Click Manager data? (more info on the current setup of this project here https://support.google.com/dcm/partner/answer/2941575?hl=en&ref_topic=6107456&rd=1).
Separate user authentication works with gsutil(navigating to browser->get token->paste back in your cmd->issue commands) but when it comes to configuring a service account I keep getting
AccessDeniedException: 403 Forbidden
What am I missing? Since the Google documentation says that this specific bucket can't be listed under Cloud Storage for that project, then the project and the service account should be linked to that bucket by default so I can't see the issue here.
During set-up you should have created a Google Group to control access to your bucket. You should add the service account email address to that group, and it will then be able to access the bucket.
Bluemix provides a CF command line for download to manage applications.
We want to use CF (or any other command line tools ) to manage Organization and Space users. This will allow us to programmatically sync the user list.
Specifically I am looking for
cf enroll-user
cf add-user
cf remove-user
cf unenroll-use
the cf command already lists the users for a given ORG and SPACE.
The simple answer is to read the docs. See "Creating and Managing Users with the cf CLI." It documents commands like create-user, set-org-role, and set-space-role.
For example: Use cf create-user USERNAME PASSWORD to create a new user. The problem is, when you try to do this in Bluemix, you get an error:
>cf create-user jdoe password
Creating user jdoe as bwoolf...
FAILED
Error creating user jdoe.
Server error, status code: 403, error code: access_denied, message: Invalid token does not contain resource id (scim)
You get a similar error when you try to run set-org-role or set-space-role:
FAILED
Server error, status code: 403: Access is denied. You do not have privileges to execute this command.
Why did you get this error? Like #RandalAnders explained, Bluemix currently blocks users from using these user administration commands in the CF CLI. For the time being, you'll need to perform these actions using the Bluemix Dashboard.
Currently, it is not possible within Bluemix to use the CF CLI for certain management commands, as they require administrative privileges. We are exploring expanding the scope of the commands used in the CLI and would be interested in hearing any other use cases you may have.
you can not create a user on bluemix using cf cli since it needs admin privileges. To add a user, you will need to use bluemix cli 'bluemix iam account-user-invite' to invite a user to your account with a org/space role assigned. There are other account/org/space/role management commands under 'bluemix iam'.
Download bluemix CLI here: http://clis.ng.bluemix.net