-
Notifications
You must be signed in to change notification settings - Fork 4
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
packetfabric_cs_azure_hosted_connection: json: cannot unmarshal string into Go struct field #64
Comments
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 Please see this link for reference (https://docs.packetfabric.com/api/v2/redoc/#tag/Cloud-Services-Azure/operation/azure_hosted_connection_post) |
Hey @pontovinte, in the link you shared, the port | required | string The port to connect to Azure. Example: |
@pontovinte I understand the confusion the 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 I actually tried to create a connection using
But the schema does say those are string: |
Signed-off-by: Yrineu Rodrigues <yrineu@pontovinte.com>
Signed-off-by: Yrineu Rodrigues <yrineu@pontovinte.com>
Verified fix in feature/google-service branch |
Signed-off-by: Yrineu Rodrigues <yrineu@pontovinte.com>
Signed-off-by: Yrineu Rodrigues <yrineu@pontovinte.com>
Using:
With those variables: (set your own account_uuid and azure_service_key)
Getting this error:
The text was updated successfully, but these errors were encountered: