Forum Discussion

API_User's avatar
API_User
Equinix Employee
3 years ago
Solved

Getting "Non-Deprovisioned" Connections

I created the following query filter to use with the https://api.equinix.com/fabric/v4/connections/search API to retrieve all "non-deprovisioned" connections:

{
    "filter": {
        "AND": [
            {
                "property": "/operation/equinixStatus",
                "operator": "=",
                "values": [
                    "PENDING_APPROVAL",
                    "PROVISIONING",
                    "PROVISIONED",
                    "NOT_PROVISIONED",
                    "REJECTED",
                    "PENDING_BGP_PEERING"
                ]
            },
            {
                "property": "/aSide/accessPoint/location/metroCode",
                "operator": "=",
                "values": [
                    "SV"
                ]
            }
        ]
    },
    "pagination": {
        "limit": 3000,
        "offset": 0
    },
    "sort": [
        {
            "property": "/name",
            "direction": "DESC"
        }
    ]
}

The results of the above query returned multiple connections that had an equinixStatus of DEPROVISIONED.

Is there an error in the above query filter as I can't see why there would be any connections returned with an equinixStatus of a value other than one in the above list of values specified in the filter?

I even simplified the values array to only include PROVISIONED and still got results containing DEPROVISIONED.

  • Thanks for reaching out. Could you please try with lowercase "and" in the filter as suggested in the documentation and let us know the result while we are investigating your case?

    Thanks,
    Equinix Fabric Engineering Team

3 Replies

Featured Places

  • Node avatar for Discussions

    Discussions

    Engage with industry experts, share insights, ask questions, and grow your network.
  • Node avatar for Ideas

    Ideas

    We're listening! Submit your ideas to shape the future of Equinix!
  • Node avatar for Groups

    Groups

    Ready to collaborate? Join a Group or upcoming beta program.
  • Node avatar for What's New

    What's New

    Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.
  • Node avatar for Events

    Events

    Your Guide to Upcoming Events - Online, Hybrid, and In-Person!