Comments (5)
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.
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.
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.
@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.
@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:
from terraform-provider-packetfabric.
Verified fix in feature/google-service branch
from terraform-provider-packetfabric.
Related Issues (20)
- [ERROR] setting state: labels: '': source data must be an array or slice, got struct
- Add unit test for CustomizeDiff
- Provide AWS Direct Connect Connection ID from packetfabric_cs_aws_hosted_connection HOT 2
- Support datasources symmetric to resource blocks HOT 1
- Add tags to ACC test
- Port based marketplace services via Cloud Router
- data source: packetfabric_port
- data-source: packetfabric_virtual_circuit
- data-source: packetfabric_point_to_point
- Add a map value "primary" or "secondary" for google_edge_availability_domain HOT 1
- Include speed_burst functionality in packetfabric_backbone_virtual_circuit
- ACC Test for packetfabric_document resource & data-source
- ACC Test for billing update of a resource (e.g. speed, term)
- ACC Test for packetfabric_cloud_provider_credential_<aws/google> resources
- ACC Test for packetfabric_cloud_router_quick_connect resource
- ACC Test for packetfabric_marketplace resource (port and quick-connect types)
- Add is_lag to packetfabric_cs_dedicated_connections data-source
- BGP session state should not block changes HOT 9
- Inconsistent result after apply when configuring BFD for BGP session
- Plan always showing changes when using multiple NAT pool addresses HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-packetfabric.