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

[Bug]: network account query returned more than one result #471

Open
mwardbopp opened this issue Nov 30, 2023 · 0 comments
Open

[Bug]: network account query returned more than one result #471

mwardbopp opened this issue Nov 30, 2023 · 0 comments
Labels
area/resources/network-edge Issues related to Network Edge APIs bug Something isn't working

Comments

@mwardbopp
Copy link

mwardbopp commented Nov 30, 2023

Terraform Version

1.6.5

Equinix Provider Version

1.20

Effected Terraform Resources

equinix_network_account

Terraform Config Files

data "equinix_network_account" "ny" {
  metro_code = "NY"
  name = "Aviatrix"
}

Debug Output

https://gist.github.com/mwardbopp/2feba86732ed77cd4c1208880b8a4689

Panic Output

No response

Expected Behavior

network account should be identified

Actual Behavior

│ Error: network account query returned more than one result, please try more specific search criteria
│ 
│   with data.equinix_network_account.ny,
│   on equinix.tf line 79, in data "equinix_network_account" "ny":
│   79: data "equinix_network_account" "ny" {

Steps to Reproduce

terraform plan

worked ~30 days ago, tested on provider <1.18.

unsure what the api response was previously but now responds with this below. Not sure if terraform provider needs to provide the ability to filter on projectID?

{
    "accountCreateUrl": null,
    "accounts": [
        {
            "accountName": "Aviatrix",
            "accountNumber": "111111",
            "accountId": "E-111111",
            "accountUcmId": "111111",
            "accountStatus": "Active",
            "portalOrgId": "111111",
            "portalOrgName": "Aviatrix - 111111",
            "siblingCustOrgFlag": false,
            "creditHold": false,
            "projectId": "7defed40",
            "global": false
        },
        {
            "accountName": "Aviatrix",
            "accountNumber": "111111",
            "accountId": "E-111111",
            "accountUcmId": "111111",
            "accountStatus": "Active",
            "portalOrgId": "111111",
            "portalOrgName": "Aviatrix - 111111",
            "siblingCustOrgFlag": false,
            "creditHold": false,
            "projectId": "a981b91e",
            "global": false
        },
        {
            "accountName": "Aviatrix",
            "accountNumber": "111111",
            "accountId": "E-111111",
            "accountUcmId": "9F851BB8-xxxx",
            "accountStatus": "Active",
            "portalOrgId": "111111",
            "portalOrgName": "Aviatrix - 111111",
            "siblingCustOrgFlag": false,
            "creditHold": false,
            "projectId": "e5459aac-xxxxxx",
            "global": false
        },
        {
            "accountName": "Aviatrix",
            "accountNumber": "111111",
            "accountId": "E-111111",
            "accountUcmId": "111111",
            "accountStatus": "Active",
            "portalOrgId": "111111",
            "portalOrgName": "Aviatrix - 111111",
            "siblingCustOrgFlag": false,
            "creditHold": false,
            "projectId": "9c761d05-",
            "global": false
        }
    ],
    "errorMessage": null,
    "errorCode": null
}
@mwardbopp mwardbopp added the bug Something isn't working label Nov 30, 2023
@displague displague added the area/resources/network-edge Issues related to Network Edge APIs label Jan 25, 2024
rling-equinix pushed a commit that referenced this issue Feb 20, 2024
…source (#576)

feat: Include project id in client side filter for get accounts data
source
PR in ne-go: equinix/ne-go#29
Closes the issue :
#471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/resources/network-edge Issues related to Network Edge APIs bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants