openapi: 3.0.1 info: title: Equinix API Authentication VLANs API description: 'Equinix APIs use the OAuth 2.0 for authentication and authorization. Equinix supports the resource owner password and the client credentials flow. To begin, obtain OAuth 2.0 client credentials from the Equinix Developer Console under "My Apps". Then your client application requests an access token from the Equinix API Authorization endpoint, extracts the access_token from the response, and sends the Bearer token to the API that you want to access' termsOfService: https://www.equinix.com/about/legal/terms contact: name: Equinix API Support url: https://docs.equinix.com/api-support.htm version: '1.2' servers: - url: https://api.equinix.com tags: - description: 'Manage virtual networks (VLANs). See project endpoints to list and create virtual networks. Check out the product docs to learn more about [VLANs](https://metal.equinix.com/developers/docs/networking/layer2/). ' externalDocs: url: https://metal.equinix.com/developers/docs/networking/layer2/ name: VLANs paths: /projects/{id}/virtual-networks: get: description: Provides a list of virtual networks for a single project. operationId: findVirtualNetworks parameters: - description: Project UUID in: path name: id required: true schema: format: uuid type: string - description: 'Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.' explode: false in: query name: include schema: items: type: string type: array style: form - description: 'Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.' explode: false in: query name: exclude schema: items: type: string type: array style: form - deprecated: true description: Filter by Facility ID (uuid) or Facility Code in: query name: facility schema: type: string - description: Filter by Metro ID (uuid) or Metro Code in: query name: metro schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/VirtualNetworkList' description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found summary: Retrieve all virtual networks tags: - VLANs post: description: Creates an virtual network. operationId: createVirtualNetwork parameters: - description: Project UUID in: path name: id required: true schema: format: uuid type: string - description: 'Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.' explode: false in: query name: include schema: items: type: string type: array style: form - description: 'Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.' explode: false in: query name: exclude schema: items: type: string type: array style: form requestBody: content: application/json: schema: $ref: '#/components/schemas/VirtualNetworkCreateInput' description: Virtual Network to create required: true responses: '201': content: application/json: schema: $ref: '#/components/schemas/VirtualNetwork' description: created '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: unprocessable entity summary: Create a virtual network tags: - VLANs /virtual-networks/{id}: delete: description: Deletes a virtual network. operationId: deleteVirtualNetwork parameters: - description: Virtual Network UUID in: path name: id required: true schema: format: uuid type: string - description: 'Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.' explode: false in: query name: include schema: items: type: string type: array style: form - description: 'Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.' explode: false in: query name: exclude schema: items: type: string type: array style: form responses: '200': content: application/json: schema: $ref: '#/components/schemas/VirtualNetwork' description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: unprocessable entity summary: Delete a virtual network tags: - VLANs get: description: Get a virtual network. operationId: getVirtualNetwork parameters: - description: Virtual Network UUID in: path name: id required: true schema: format: uuid type: string - description: 'Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects.' explode: false in: query name: include schema: items: type: string type: array style: form - description: 'Nested attributes to exclude. Excluded objects will return only the href attribute. Attribute names can be dotted (up to 3 levels) to exclude deeply nested objects.' explode: false in: query name: exclude schema: items: type: string type: array style: form responses: '200': content: application/json: schema: $ref: '#/components/schemas/VirtualNetwork' description: ok '401': content: application/json: schema: $ref: '#/components/schemas/Error' description: unauthorized '403': content: application/json: schema: $ref: '#/components/schemas/Error' description: forbidden '404': content: application/json: schema: $ref: '#/components/schemas/Error' description: not found '422': content: application/json: schema: $ref: '#/components/schemas/Error' description: unprocessable entity summary: Get a virtual network tags: - VLANs components: schemas: VirtualNetworkList: example: virtual_networks: - vxlan: 4 instances: - href: href - href: href description: description created_at: 2000-01-23 04:56:07+00:00 assigned_to_virtual_circuit: true tags: - tags - tags metal_gateways: - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null metro_code: metro_code metro: href: href href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 facility: href: href assigned_to: href: href - vxlan: 4 instances: - href: href - href: href description: description created_at: 2000-01-23 04:56:07+00:00 assigned_to_virtual_circuit: true tags: - tags - tags metal_gateways: - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null metro_code: metro_code metro: href: href href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 facility: href: href assigned_to: href: href properties: virtual_networks: items: $ref: '#/components/schemas/VirtualNetwork' type: array type: object MetalGatewayLite: example: gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null properties: created_at: format: date-time type: string gateway_address: description: The gateway address with subnet CIDR value for this Metal Gateway. For example, a Metal Gateway using an IP reservation with block 10.1.2.0/27 would have a gateway address of 10.1.2.1/27. example: 10.1.2.1/27 type: string href: type: string id: format: uuid type: string state: $ref: '#/components/schemas/MetalGateway_state' updated_at: format: date-time type: string vlan: description: The VLAN id of the Virtual Network record associated to this Metal Gateway. example: 1001 type: integer type: object Error: description: Error responses are included with 4xx and 5xx HTTP responses from the API service. Either "error" or "errors" will be set. properties: error: description: A description of the error that caused the request to fail. type: string errors: description: A list of errors that contributed to the request failing. items: description: An error message that contributed to the request failing. type: string type: array type: object MetalGateway_state: description: The current state of the Metal Gateway. 'Ready' indicates the gateway record has been configured, but is currently not active on the network. 'Active' indicates the gateway has been configured on the network. 'Deleting' is a temporary state used to indicate that the gateway is in the process of being un-configured from the network, after which the gateway record will be deleted. enum: - ready - active - deleting type: string VirtualNetwork: example: vxlan: 4 instances: - href: href - href: href description: description created_at: 2000-01-23 04:56:07+00:00 assigned_to_virtual_circuit: true tags: - tags - tags metal_gateways: - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null - gateway_address: 10.1.2.1/27 updated_at: 2000-01-23 04:56:07+00:00 vlan: 1001 created_at: 2000-01-23 04:56:07+00:00 href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 state: null metro_code: metro_code metro: href: href href: href id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 facility: href: href assigned_to: href: href properties: assigned_to: $ref: '#/components/schemas/Href' assigned_to_virtual_circuit: description: True if the virtual network is attached to a virtual circuit. False if not. type: boolean description: type: string facility: $ref: '#/components/schemas/Href' href: type: string created_at: format: date-time type: string id: format: uuid type: string instances: description: A list of instances with ports currently associated to this Virtual Network. items: $ref: '#/components/schemas/Href' type: array metal_gateways: description: A list of metal gateways currently associated to this Virtual Network. items: $ref: '#/components/schemas/MetalGatewayLite' type: array metro: $ref: '#/components/schemas/Href' metro_code: description: The Metro code of the metro in which this Virtual Network is defined. type: string vxlan: type: integer tags: items: type: string type: array type: object Href: example: href: href properties: href: type: string required: - href type: object VirtualNetworkCreateInput: example: vxlan: 1099 metro: metro description: description facility: facility tags: - tags - tags properties: description: type: string facility: deprecated: true description: The UUID (or facility code) for the Facility in which to create this Virtual network. type: string metro: description: The UUID (or metro code) for the Metro in which to create this Virtual Network. type: string vxlan: description: VLAN ID between 2-3999. Must be unique for the project within the Metro in which this Virtual Network is being created. If no value is specified, the next-available VLAN ID in the range 1000-1999 will be automatically selected. example: 1099 type: integer tags: items: type: string type: array type: object x-eqx-api-linter-skip-rules: - 3 - 38