Giter Club home page Giter Club logo

Comments (5)

pontovinte avatar pontovinte commented on May 22, 2024

Hi @rjouhann, I believe there's a discrepancy between docs and the API. Since we're relying on docs as our source of truth, it shows both ifd_port_circuit_id_cust and ifd_port_circuit_id_pf with int values.

image

Please see this link for reference (https://docs.packetfabric.com/api/v2/redoc/#tag/Cloud-Services-Azure/operation/azure_hosted_connection_post)

from terraform-provider-packetfabric.

rjouhann avatar rjouhann commented on May 22, 2024

Hey @pontovinte, in the link you shared, the port is a string, not an int.

port | required | string The port to connect to Azure.

Example: "port": "PF-AP-LAX1-1002",

from terraform-provider-packetfabric.

pontovinte avatar pontovinte commented on May 22, 2024

@rjouhann, either port is string (here) and ifd_port_circuit_id_cust is int (here). The issue above was complaining about ifd_port_circuit_id_cust not being parsed correctly. But I'm confused if there's any discrepancy between API doc and the actual API as I explained here

from terraform-provider-packetfabric.

rjouhann avatar rjouhann commented on May 22, 2024

@pontovinte I understand the confusion the ifd_port_circuit_id_cust and ifd_port_circuit_id_pf are part of the API response, not the body of the request.

To my knowledge and understanding, ports which is part of the body of the request is always a string because there is always a prefix and PoP name like PF-AP-LAX-1234 and sometime a suffix like PF-AP-LAX-1234-PF.

I actually tried to create a connection using /services/cloud/hosted/azure and look what I am getting in the response:

    "components": {
        "ifd_port_circuit_id_cust": "PF-AP-LAX2-1729130",

ifd_port_circuit_id_cust is a string. I will follow up with PF dev team and get the API schema example updated so it uses a string, not an int for ifd_port_circuit_id_cust and ifd_port_circuit_id_pf response examples.

But the schema does say those are string:

Screen Shot 2022-08-22 at 19 40 40

from terraform-provider-packetfabric.

rjouhann avatar rjouhann commented on May 22, 2024

Verified fix in feature/google-service branch

from terraform-provider-packetfabric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.