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

Implement Fabric API v4 resources #112

Open
8 of 43 tasks
displague opened this issue Mar 21, 2022 · 5 comments
Open
8 of 43 tasks

Implement Fabric API v4 resources #112

displague opened this issue Mar 21, 2022 · 5 comments
Labels
area/resources/fabric Issues related to Fabric and ECX APIs enhancement New feature or request

Comments

@displague
Copy link
Member

displague commented Mar 21, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

Equinix Fabric has a new v4 API with an improved interface for managing connections, ports, gateways, and tokens.

This API replaces many of the v2 and v3 APIs. Details to follow in the comments about which endpoints/resources will need to be modified or deprecated to meet the API timelines.

A Go SDK will be needed to implement the new Terraform resources. ecx-go could be extended, but this is a hand-edited SDK with legacy branding. A new generated SDK (using openapitools/openapi-generator-cli, for example) would be advisable. SwaggerHub provides a downloadable Go client, automated or manual publishing of this client would be helpful.

New or Affected Resource(s)

The following items should be linked to individual issues when they exist.

Proposed New Resources:

  • equinix_fabric_connection
    Fabric v4 - Initial implementation with Connections #209
  • equinix_fabric_connection_action - unclear if this should be a resource or a property
  • equinix_fabric_connection_routing_protocols - unclear if this should be a resource or a property
  • equinix_fabric_connection_bulk_routing_protocols - unclear if this should be a resource or a property
  • equinix_fabric_bulk_connection
  • equinix_fabric_gateway equinix_fabric_cloud_router
  • equinix_fabric_service_profile
  • equinix_fabric_service_tokens

Proposed New Datasources:

  • equinix_fabric_connections (using /search)
  • equinix_fabric_connection (using id or other unique criteria)
  • equinix_fabric_metros (unclear if this is needed over a generic equinix_metros datasource)
  • equinix_fabric_metro (by id, unclear if this is needed over a generic equinix_metro)
  • equinix_fabric_prices (uses /search)
  • equinix_fabric_gateways (using /search)
  • equinix_fabric_gateway equinix_fabric_cloud_router (using id or other unique criteria)
  • equinix_fabric_gateway_packages
  • equinix_fabric_gateway_package (by id)
  • equinix_fabric_service_profiles
  • equinix_fabric_service_profiles (by id)
  • equinix_fabric_service_tokens
  • equinix_fabric_service_token (by id)
  • equinix_fabric_port
    Fabric v4 - Port data schema implementation and Terraform Script - Create Connection example #232
  • equinix_fabric_ports (by id)
  • equinix_fabric_port_stats
  • equinix_fabric_ports_stats
  • equinix_fabric_connection_stats

Affected:

Milestones for this:

Potential Terraform Configuration

# TBD example demonstrating all resources

References

@displague displague added the enhancement New feature or request label Mar 21, 2022
@displague
Copy link
Member Author

A branch has been created to start this work off with an internal/ generated Go SDK for Fabric v4 APIs.
https://github.com/equinix/terraform-provider-equinix/compare/fabric-v4

@displague
Copy link
Member Author

The resources described above are no longer representative of the latest public spec:
https://app.swaggerhub.com/apis/equinix-api/fabric/4.3

@displague displague mentioned this issue Jun 20, 2022
@displague
Copy link
Member Author

updated the lists in the description to add equinix_fabric_service_profiles as introduced by 4.2 or 4.3 spec.

@displague
Copy link
Member Author

This work is now been tracked in the equinix:fabric-v4 branch.

We're awaiting more Fabric resources which will be applied directly to this branch before ultimately being merged into the main branch.

@displague
Copy link
Member Author

Noting that Fabric 4.6 API is now available (not yet in Fabric Go): equinix-labs/fabric-java#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/resources/fabric Issues related to Fabric and ECX APIs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant