-
Notifications
You must be signed in to change notification settings - Fork 5
/
metal_openapi.fixed.yaml
19920 lines (19246 loc) · 563 KB
/
metal_openapi.fixed.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
parameters:
DeviceSearch:
description: Search by hostname, description, short_id, reservation short_id,
tags, plan name, plan slug, facility code, facility name, operating system
name, operating system slug, IP addresses.
in: query
name: search
schema:
type: string
Exclude:
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
Include:
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
Page:
description: Page to return
in: query
name: page
schema:
default: 1
format: int32
maximum: 100000
minimum: 1
type: integer
PerPage:
description: Items returned per page
in: query
name: per_page
schema:
default: 10
format: int32
maximum: 1000
minimum: 1
type: integer
ProjectName:
description: Filter results by name.
in: query
name: name
schema:
type: string
requestBodies:
InterconnectionCreateInput:
content:
application/json:
schema:
$ref: '#/components/schemas/createOrganizationInterconnection_request'
description: 'Dedicated port or shared interconnection (also known as Fabric
VC) creation request.
Shared interconnections can be created with the following request types:
* `VlanCSPConnectionCreateInput` creates a layer 2 interconnection directly
to your Cloud Service Provider.
* `SharedPortVCVlanCreateInput` creates a layer 2 interconnection that you
can finish configuration in Fabric. For new connections, this type is preferred
to `VlanFabricVCCreateInput`.
* `VlanFabricVCCreateInput` creates a layer 2 interconnection that you can
connect through Fabric with a service token.
* `VrfFabricVCCreateInput` creates a layer 3 interconnection that you can
connect through Fabric with a service token. '
required: true
InvitationInput:
content:
application/json:
schema:
$ref: '#/components/schemas/InvitationInput'
description: Invitation to create
required: true
PortAssignInput:
content:
application/json:
schema:
$ref: '#/components/schemas/PortAssignInput'
description: 'Virtual Network ID. May be the UUID of the Virtual Network record,
or the VLAN value itself (ex: ''1001'').'
required: true
SSHKeyCreateInput:
content:
application/json:
schema:
$ref: '#/components/schemas/SSHKeyCreateInput'
description: ssh key to create
required: true
responses:
Error:
description: Error responses are included with 4xx and 5xx HTTP responses from
the API service. Either "error" or "errors" will be set.
schemas:
AWSFabricProvider:
properties:
account_id:
description: AWS Account ID
example: '123412341234'
pattern: ^\d{12}$
type: string
href:
format: uri
type: string
location:
example: us-west-1
type: string
type:
enum:
- CSP_AWS
type: string
required:
- account_id
- type
type: object
Address:
properties:
address:
type: string
address2:
type: string
city:
type: string
coordinates:
$ref: '#/components/schemas/Coordinates'
country:
type: string
href:
format: uri
type: string
state:
type: string
zip_code:
type: string
type: object
Attribute:
properties:
created_at:
description: Datetime when the block was created.
format: date-time
readOnly: true
type: string
data:
$ref: '#/components/schemas/AttributeData'
href:
format: uri
type: string
namespace:
description: Attribute namespace
readOnly: true
type: string
updated_at:
description: Datetime when the block was updated.
format: date-time
readOnly: true
type: string
type: object
AttributeData:
properties:
href:
format: uri
type: string
latest:
description: Boolean flag to know if the firmware set is the latest for
the model and vendor
readOnly: true
type: boolean
model:
description: Model on which this firmware set can be applied
readOnly: true
type: string
plan:
description: Plan where the firmware set can be applied
readOnly: true
type: string
vendor:
description: Vendor on which this firmware set can be applied
readOnly: true
type: string
type: object
AuthToken:
properties:
created_at:
format: date-time
type: string
description:
description: Available only for API keys
type: string
href:
format: uri
type: string
id:
format: uuid
type: string
project:
$ref: '#/components/schemas/AuthToken_project'
read_only:
type: boolean
token:
type: string
updated_at:
format: date-time
type: string
user:
$ref: '#/components/schemas/AuthToken_user'
type: object
AuthTokenInput:
properties:
description:
type: string
href:
format: uri
type: string
read_only:
type: boolean
type: object
AuthTokenList:
properties:
api_keys:
items:
$ref: '#/components/schemas/AuthToken'
type: array
href:
format: uri
type: string
type: object
AuthToken_project:
allOf:
- $ref: '#/components/schemas/Project'
- description: Available only for project tokens
type: object
AuthToken_user:
allOf:
- $ref: '#/components/schemas/User'
- description: Available only for user tokens
type: object
BGPSessionInput:
properties:
address_family:
description: Address family for BGP session.
enum:
- ipv4
- ipv6
example: ipv4
type: string
default_route:
default: false
description: Set the default route policy.
type: boolean
href:
format: uri
type: string
type: object
Batch:
properties:
created_at:
format: date-time
type: string
devices:
items:
$ref: '#/components/schemas/Href'
type: array
error_messages:
items:
type: string
type: array
href:
format: uri
type: string
id:
format: uuid
type: string
project:
$ref: '#/components/schemas/Href'
quantity:
type: integer
state:
type: string
updated_at:
format: date-time
type: string
type: object
BatchesList:
properties:
batches:
items:
$ref: '#/components/schemas/Batch'
type: array
href:
format: uri
type: string
type: object
BgpConfig:
properties:
asn:
description: Autonomous System Number. ASN is required with Global BGP.
With Local BGP the private ASN, 65000, is assigned.
example: 65000
format: int64
maximum: 4294967295
minimum: 0
type: integer
created_at:
format: date-time
type: string
deployment_type:
description: 'In a Local BGP deployment, a customer uses an internal ASN
to control routes within a single Equinix Metal datacenter. This means
that the routes are never advertised to the global Internet. Global BGP,
on the other hand, requires a customer to have a registered ASN and IP
space.
'
enum:
- global
- local
example: local
type: string
href:
type: string
id:
format: uuid
type: string
max_prefix:
default: 10
description: The maximum number of route filters allowed per server
type: integer
md5:
description: (Optional) Password for BGP session in plaintext (not a checksum)
nullable: true
type: string
project:
$ref: '#/components/schemas/Href'
ranges:
description: The IP block ranges associated to the ASN (Populated in Global
BGP only)
items:
$ref: '#/components/schemas/GlobalBgpRange'
type: array
requested_at:
format: date-time
type: string
route_object:
description: Specifies AS-MACRO (aka AS-SET) to use when building client
route filters
type: string
sessions:
description: The direct connections between neighboring routers that want
to exchange routing information.
items:
$ref: '#/components/schemas/BgpSession'
type: array
status:
description: Status of the BGP Config. Status "requested" is valid only
with the "global" deployment_type.
enum:
- requested
- enabled
- disabled
type: string
type: object
BgpConfigRequestInput:
properties:
asn:
description: Autonomous System Number for local BGP deployment.
example: 65000
format: int64
maximum: 4294967295
minimum: 0
type: integer
deployment_type:
description: Wether the BGP deployment is local or global. Local deployments
are configured immediately. Global deployments will need to be reviewed
by Equinix Metal engineers.
enum:
- local
- global
example: local
type: string
href:
format: uri
type: string
md5:
description: 'The plaintext password to share between BGP neighbors as an
MD5 checksum:
* must be 10-20 characters long
* may not include punctuation
* must be a combination of numbers and letters
* must contain at least one lowercase, uppercase, and digit character
'
pattern: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{10,20}$
type: string
use_case:
description: A use case explanation (necessary for global BGP request review).
type: string
required:
- asn
- deployment_type
type: object
BgpDynamicNeighbor:
properties:
bgp_neighbor_asn:
description: The ASN of the dynamic BGP neighbor
example: 12345
format: int64
maximum: 4294967295
minimum: 0
type: integer
bgp_neighbor_range:
description: Network range of the dynamic BGP neighbor in CIDR format
example: 192.168.1.0/25
type: string
created_at:
format: date-time
readOnly: true
type: string
created_by:
$ref: '#/components/schemas/UserLimited'
href:
example: /bgp-dynamic-neighbors/aea82f16-57ec-412c-9523-b7f2b27635b2
readOnly: true
type: string
id:
description: The unique identifier for the resource
example: aea82f16-57ec-412c-9523-b7f2b27635b2
format: uuid
readOnly: true
type: string
metal_gateway:
$ref: '#/components/schemas/VrfMetalGateway'
state:
enum:
- active
- deleting
- pending
- ready
readOnly: true
type: string
tags:
items:
type: string
type: array
updated_at:
format: date-time
readOnly: true
type: string
type: object
BgpDynamicNeighborCreateInput:
properties:
bgp_neighbor_asn:
description: The ASN of the dynamic BGP neighbor
example: 12345
format: int64
maximum: 4294967295
minimum: 0
type: integer
bgp_neighbor_range:
description: Network range of the dynamic BGP neighbor in CIDR format
example: 192.168.1.0/25
type: string
href:
format: uri
type: string
tags:
items:
type: string
type: array
required:
- bgp_neighbor_asn
- bgp_neighbor_range
type: object
BgpDynamicNeighborList:
properties:
bgp_dynamic_neighbors:
items:
$ref: '#/components/schemas/BgpDynamicNeighbor'
type: array
href:
format: uri
type: string
meta:
$ref: '#/components/schemas/Meta'
type: object
BgpNeighborData:
properties:
address_family:
description: Address Family for IP Address. Accepted values are 4 or 6
example: 4
format: int32
type: integer
customer_as:
description: The customer's ASN. In a local BGP deployment, this will be
an internal ASN used to route within the data center. For a global BGP
deployment, this will be the your own ASN, configured when you set up
BGP for your project.
example: 65000
format: int32
type: integer
customer_ip:
description: The device's IP address. For an IPv4 BGP session, this is typically
the private bond0 address for the device.
example: 10.32.16.1 (IPv4) or 2604:1380:4111:2700::1 (IPv6)
type: string
href:
format: uri
type: string
md5_enabled:
description: True if an MD5 password is configured for the project.
type: boolean
md5_password:
description: The MD5 password configured for the project, if set.
type: string
multihop:
description: True when the BGP session should be configured as multihop.
type: boolean
peer_as:
description: The Peer ASN to use when configuring BGP on your device.
example: 65530
format: int32
type: integer
peer_ips:
description: A list of one or more IP addresses to use for the Peer IP section
of your BGP configuration. For non-multihop sessions, this will typically
be a single gateway address for the device. For multihop sessions, it
will be a list of IPs.
example:
- 169.254.255.1
- 169.254.255.2
items:
type: string
type: array
routes_in:
description: A list of project subnets
example:
- exact: true
route: 10.32.16.0/31
items:
$ref: '#/components/schemas/BgpRoute'
type: array
routes_out:
description: A list of outgoing routes. Only populated if the BGP session
has default route enabled.
example:
- exact: true
route: 0.0.0.0/0
items:
$ref: '#/components/schemas/BgpRoute'
type: array
type: object
BgpRoute:
properties:
exact:
type: boolean
href:
format: uri
type: string
route:
example: 10.32.16.0/31
type: string
type: object
BgpSession:
properties:
address_family:
enum:
- ipv4
- ipv6
type: string
created_at:
format: date-time
type: string
default_route:
type: boolean
device:
$ref: '#/components/schemas/Href'
href:
type: string
id:
format: uuid
type: string
learned_routes:
items:
description: IPv4 or IPv6 range
example: 10.32.16.0/31
type: string
type: array
status:
description: ' The status of the BGP Session. Multiple status values may
be reported when the device is connected to multiple switches, one value
per switch. Each status will start with "unknown" and progress to "up"
or "down" depending on the connected device. Subsequent "unknown" values
indicate a problem acquiring status from the switch. '
example: up,down
type: string
updated_at:
format: date-time
type: string
required:
- address_family
type: object
BgpSessionList:
properties:
bgp_sessions:
items:
$ref: '#/components/schemas/BgpSession'
type: array
href:
format: uri
type: string
type: object
BgpSessionNeighbors:
properties:
bgp_neighbors:
description: A list of BGP session neighbor data
items:
$ref: '#/components/schemas/BgpNeighborData'
type: array
href:
format: uri
type: string
type: object
BondPortData:
properties:
href:
format: uri
type: string
id:
description: ID of the bonding port
format: uuid
type: string
name:
description: Name of the port interface for the bond ("bond0")
type: string
type: object
CapacityCheckPerFacilityInfo:
properties:
available:
type: boolean
facility:
type: string
href:
format: uri
type: string
plan:
type: string
quantity:
type: string
type: object
CapacityCheckPerFacilityList:
properties:
href:
format: uri
type: string
servers:
items:
$ref: '#/components/schemas/CapacityCheckPerFacilityInfo'
type: array
type: object
CapacityCheckPerMetroInfo:
properties:
available:
description: Returns true if there is enough capacity in the metro to fulfill
the quantity set. Returns false if there is not enough.
type: boolean
href:
format: uri
type: string
metro:
description: The metro ID or code sent to check capacity.
type: string
plan:
description: The plan ID or slug sent to check capacity.
type: string
quantity:
description: The number of servers sent to check capacity.
type: string
type: object
CapacityCheckPerMetroList:
properties:
href:
format: uri
type: string
servers:
items:
$ref: '#/components/schemas/CapacityCheckPerMetroInfo'
type: array
type: object
CapacityInput:
properties:
href:
format: uri
type: string
servers:
items:
$ref: '#/components/schemas/ServerInfo'
type: array
type: object
CapacityLevelPerBaremetal:
properties:
href:
format: uri
type: string
level:
type: string
type: object
CapacityList:
properties:
capacity:
additionalProperties:
additionalProperties:
$ref: '#/components/schemas/CapacityLevelPerBaremetal'
type: object
type: object
href:
format: uri
type: string
type: object
CapacityReport:
additionalProperties:
additionalProperties:
$ref: '#/components/schemas/CapacityLevelPerBaremetal'
type: object
type: object
Component:
properties:
checksum:
description: File checksum
readOnly: true
type: string
component:
description: Component type
example: bmc
readOnly: true
type: string
created_at:
description: Datetime when the block was created.
format: date-time
readOnly: true
type: string
filename:
description: name of the file
readOnly: true
type: string
href:
format: uri
type: string
model:
description: List of models where this component version can be applied
items:
example: romed8hm3
type: string
readOnly: true
type: array
repository_url:
description: Location of the file in the repository
readOnly: true
type: string
updated_at:
description: Datetime when the block was updated.
format: date-time
readOnly: true
type: string
upstream_url:
description: Location of the file
readOnly: true
type: string
uuid:
description: Component UUID
example: 0516463a-47ee-4809-9a66-ece8c740eed9
format: uuid
readOnly: true
type: string
vendor:
description: Component vendor
example: equinix
readOnly: true
type: string
version:
description: Version of the component
example: 1.5.0
readOnly: true
type: string
type: object
Coordinates:
properties:
href:
format: uri
type: string
latitude:
type: string
longitude:
type: string
type: object
CreateEmailInput:
properties:
address:
type: string
href:
format: uri
type: string
required:
- address
type: object
CreateSelfServiceReservationRequest:
properties:
href:
format: uri
type: string
item:
items:
$ref: '#/components/schemas/SelfServiceReservationItemRequest'
type: array
notes:
type: string
period:
$ref: '#/components/schemas/CreateSelfServiceReservationRequest_period'
start_date:
format: date-time
type: string
type: object
CreateSelfServiceReservationRequest_period:
properties:
count:
enum:
- 12
- 36
type: integer
href:
format: uri
type: string
unit:
enum:
- monthly
type: string
type: object
DedicatedPortCreateInput:
properties:
billing_account_name:
description: The billing account name of the Equinix Fabric account.
type: string
contact_email:
description: The preferred email used for communication and notifications
about the Equinix Fabric interconnection. Optional and defaults to the
primary user email address when using a User API key or the organization
owner email address when using a Project API key.
format: email
type: string
description:
type: string
facility_id:
type: string
x-deprecated: true
href:
format: uri
type: string
metro:
description: A Metro ID or code. For interconnections with Dedicated Ports,
this will be the location of the issued Dedicated Ports.
type: string
mode:
description: "The mode of the interconnection (only relevant to Dedicated\
\ Ports). Fabric VCs won't have this field. Can be either 'standard' or\
\ 'tunnel'.\n The default mode of an interconnection on a Dedicated Port\
\ is 'standard'. The mode can only be changed when there are no associated\
\ virtual circuits on the interconnection.\n In tunnel mode, an 802.1q\
\ tunnel is added to a port to send/receive double tagged packets from\
\ server instances."
enum:
- standard
- tunnel
example: standard
type: string
name:
type: string
project:
type: string
redundancy:
description: Either 'primary' or 'redundant'.
type: string
speed:
description: A interconnection speed, in bps, mbps, or gbps. For Dedicated
Ports, this can be 10Gbps or 100Gbps.
example: '10000000000'
type: string
tags:
items:
type: string
type: array
type:
description: When requesting for a dedicated port, the value of this field
should be 'dedicated'.
enum:
- dedicated
type: string
use_case:
description: The intended use case of the dedicated port.
type: string
required:
- metro
- name
- redundancy
- type
type: object
Device:
properties:
actions:
description: Actions supported by the device instance.
items:
$ref: '#/components/schemas/Device_actions_inner'
type: array
always_pxe:
type: boolean
billing_cycle:
type: string
bonding_mode:
type: integer
created_at:
format: date-time
type: string
created_by:
$ref: '#/components/schemas/Device_created_by'
customdata:
additionalProperties: true
default: {}
type: object
description:
type: string
facility:
$ref: '#/components/schemas/Facility'
firmware_set_id:
description: The UUID of the firmware set to associate with the device.
format: uuid
type: string
hardware_reservation:
$ref: '#/components/schemas/HardwareReservation'
hostname:
type: string
href:
type: string
id:
format: uuid
type: string
image_url:
type: string
ip_addresses:
items:
$ref: '#/components/schemas/IPAssignment'
type: array
ipxe_script_url:
type: string
iqn:
type: string
locked:
description: Prevents accidental deletion of this resource when set to true.
type: boolean
metro:
$ref: '#/components/schemas/Device_metro'
network_frozen:
description: Whether network mode changes such as converting to/from Layer2
or Layer3 networking, bonding or disbonding network interfaces are permitted
for the device.
type: boolean
network_ports:
description: "By default, servers at Equinix Metal are configured in a \u201C\
bonded\u201D mode using LACP (Link Aggregation Control Protocol). Each\
\ 2-NIC server is configured with a single bond (namely bond0) with both\
\ interfaces eth0 and eth1 as members of the bond in a default Layer 3\
\ mode. Some device plans may have a different number of ports and bonds\
\ available."
items:
$ref: '#/components/schemas/Port'
type: array