Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Authentication with Terraform #3

Closed
arj22 opened this issue Jul 11, 2017 · 4 comments
Closed

API Authentication with Terraform #3

arj22 opened this issue Jul 11, 2017 · 4 comments

Comments

@arj22
Copy link

arj22 commented Jul 11, 2017

Hi ,

Terraform Version

v0.9.11

Provider version

tf-v0.9.3-ibm-provider-v0.2.1

Affected Resource(s)

  • ibm_infra_vlan

I exported the SL_USERNAME, SL_API_KEY variables and set 'skip_service_configuration=bluemix'

terraform import ibmcloud_infra_vlan.999 999

Expected Behavior

Terraform should have imported the state

Actual Behavior

import ibmcloud_infra_vlan.999 result: 999: ibmcloud_infra_vlan.999: Error communicating with the API: SoftLayer_Exception_Public: Access Denied. (HTTP 401)

Thanks,
Anudeep

@ashishth09
Copy link
Collaborator

Hi @AnudeepReddyJ21,
I am not able to reproduce the problem. Could you please re-check once if you passed the right credentials?
Thanks

@arj22
Copy link
Author

arj22 commented Jul 12, 2017

Hi @ashishth09

The description of SL_USERNAME is vague. I have tried using API Username and Primary username for the account. Both of them don't seem to work. I created another user, which I guess worked. UI shows username as email id but the actual username is something else. Things are really inconsistent on the UI.

Now I have another error. I don't see anything as VLAN ID on the UI and I cannot import using VLAN number. Where do I find the VLAN ID?

import ibmcloud_infra_vlan.999 result: 999: import ibmcloud_infra_vlan.999 (id: 999): Terraform detected a resource with this ID doesn't
exist. Please verify the ID is correct. You cannot import non-existent
resources using Terraform import

Thanks,
Anudeep

@ashishth09
Copy link
Collaborator

ashishth09 commented Jul 12, 2017

Hi @AnudeepReddyJ21 ,

When you click on any vlan on the UI , it will take to your another page where URL changes to
https://control.softlayer.com/network/vlans/<vlan-id> in the browser URL. Please use that as the id.

Thanks

@arj22
Copy link
Author

arj22 commented Jul 12, 2017

Thank you @ashishth09

I didn't notice that. I wish that was in web page too :)

@arj22 arj22 closed this as completed Jul 12, 2017
utsav-r pushed a commit to utsav-r/terraform-provider-ibm that referenced this issue Jan 19, 2019
Fix ipv6_enabled and privateNetworkOnly dependency issue.
hkantare pushed a commit that referenced this issue Sep 20, 2021
* Cloudshell account settings ter (#1)

Cloud Shell account settings resource and datasource

* code review changes (#3)

* Code review changes (#4)

* code review changes

* fix import doc

* Code review changes (#5)

* code review changes

* fix import doc

* add staging env var
yussufsh referenced this issue in yussufsh/terraform-provider-ibm Oct 20, 2021
chore(deps): Use terraform-provider-sdk v1.16.0
hkantare pushed a commit that referenced this issue Jun 20, 2022
* add initial code for tekton pipeline

* more code

* more

* properties and workers mostly done in _backup. do others

* cache backup ones

* more backup

* Port to new provider structure

* everything is here

* add more to backup

* fix trigger

* more changes to trigger endpoint

* to generated version

* more

* more changes to currency

* currency fix

* currency fixes

* more fixes

* add more code

* make most of the tuff working

* handle secure value

* handle secure

* save old raw files

* more

* delete backup

* change update handler

* use DIff correctly

* update hmac secret

* more

* update hash

* add APPCONFIG

* Latest toolchain providers

* more fixes

* use correct version

* Latest toolchain providers

* check name

* More toolchain prodivers

* pipeline tf (#1)

* Merge with pipeline provider code

* fix referrence

* Move toolchain init

* Multi region support

* Git provider work

* Toolchain v2 provider code

* Latest v2 api changes

* Improved code formatting

* Add delay for pipeline provision

* Remove parameters_references

* Round tripping of toolchain secrets

* fix generic trigger secure value and trigger secure property

* Generic parameter handling functions

* Added SCC toolchain integration

* Private worker service integration

* Auto generated tool integration providers

* Add delay after pipeline create

* doc updates

* Pipeline TF Update (#3)

* add initial code for tekton pipeline

* more code

* more

* properties and workers mostly done in _backup. do others

* cache backup ones

* more backup

* everything is here

* add more to backup

* fix trigger

* more changes to trigger endpoint

* to generated version

* more

* more changes to currency

* currency fix

* currency fixes

* more fixes

* add more code

* make most of the tuff working

* handle secure value

* handle secure

* save old raw files

* more

* delete backup

* change update handler

* use DIff correctly

* update hmac secret

* more

* update hash

* add APPCONFIG

* more fixes

* use correct version

* check name

* fix referrence

* fix generic trigger secure value and trigger secure property

* more

* more

* add missing tag/pattern support

* add missing tag/pattern support (#4)

* Integration unneeded and computed fields

* Latest build from swagger update

* Add toolchain datasources

* Sum update

* Property rename

* Directory change

* Removed unneeded files

* more code for new name

* more changes

* delete old folder

* more changes to make it clean

* Rename

* Consume new SDK location

* fix more issues

* Fmt changes

* Removed unused files

* update name

* Removed unused files

* Minor tweaks

* add more fixes

* Rename of integration to tool in toolchain SDK

* Upgrade to latest SDK

* change required optional flags

* add enum to data sources

* Prepare for beta release

* Set errors on bad init

* New secrets baseline

* Reorder resources

* Toolchain git "id" fix

* Remove id from toolchain datasource

* Add beta tag to doc

* A lot of rename and fixes

* New secrets baseline

* New secrets baseline

Co-authored-by: Sidney Jiang <xinyij@ca.ibm.com>
Co-authored-by: SidneyJiang <46690334+SidneyJiang@users.noreply.github.com>
hkantare pushed a commit that referenced this issue Jun 14, 2023
* ODF Worker Replace

secrets added

secrets.baseline modified

Example/Openshift-Data_Foundation Updated

input.tfvars updated

Dev note added

docs reverted

deployment fix

docs updated

mod and sum updated

doc updated

naming convention

WaitFor functions added

doc updated

Review Comments added

secrets and struct updated

Further updates (#3)

* Updates

* file renamed

* Return error

validate function added

review comments added

comments removed

optional field added for sds

pods from kube-system

secrets baseline updated

sds schema updated

schema updated

* schema updated
omaraibrahim pushed a commit to omaraibrahim/terraform-provider-ibm that referenced this issue Jul 20, 2023
* ODF Worker Replace

secrets added

secrets.baseline modified

Example/Openshift-Data_Foundation Updated

input.tfvars updated

Dev note added

docs reverted

deployment fix

docs updated

mod and sum updated

doc updated

naming convention

WaitFor functions added

doc updated

Review Comments added

secrets and struct updated

Further updates (IBM-Cloud#3)

* Updates

* file renamed

* Return error

validate function added

review comments added

comments removed

optional field added for sds

pods from kube-system

secrets baseline updated

sds schema updated

schema updated

* schema updated
hkantare pushed a commit that referenced this issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants