-
Notifications
You must be signed in to change notification settings - Fork 2
/
programmable-network.yaml
executable file
·2020 lines (2011 loc) · 59.4 KB
/
programmable-network.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
openapi: 3.0.0
info:
title: Telstra Programmable Network API
description: >-
Telstra Programmable Network is a self-provisioning platform that allows its
users to create on-demand connectivity services between multiple end-points
and add various network functions to those services. Programmable Network
enables to connectivity to a global ecosystem of networking services as well
as public and private cloud services. Once you are connected to the platform
on one or more POPs (points of presence), you can start creating those
services based on the use case that you want to accomplish. The Programmable
Network API is available to all customers who have registered to use the
Programmable Network.
To register, please contact your account representative.
version: 2.3.1
contact:
name: Telstra Corporation - Programmable Network API
url: 'https://dev.telstra.com/content/programmable-network-api'
email: pnapi-support@team.telstra.com
servers:
- url: 'https://penapi.pacnetconnect.com'
description: Production Public API
components:
securitySchemes:
oAuth2:
type: oauth2
description: OAuth 2 with password grant flow
flows:
password:
tokenUrl: https://penapi.pacnetconnect.com/1.0.0/auth/generatetoken
scopes: {}
schemas:
Error:
type: object
properties:
ns:
type: string
xml:
name: 'xmlns:ams'
attribute: true
error-code:
type: integer
example: 1010099
xml:
name: 'ams:error-code'
error-message:
type: string
xml:
name: 'ams:error-message'
error-auxiliary:
type: string
xml:
name: 'ams:error-auxiliary'
xml:
name: 'ams:error'
success-fragment:
type: object
properties:
success-auxiliary:
type: string
example: "success"
success-code:
type: integer
example: 20000
success-message:
type: string
example: "vport created successfully"
endpoint-port:
type: object
properties:
cabletype:
type: string
example: "SMF"
connectortype:
type: string
example: "LC"
cfa:
type: string
example: "10GBase-LR SMF/LC"
endpointuuid:
type: string
example: "8843fd24-4ef6-4a7d-8241-aed3778d6f07"
interfacespeed:
type: string
example: "100"
interfacetype:
type: string
example: "10GBase-LR"
vport:
type: array
items:
$ref: '#/components/schemas/vport'
vport:
type: object
properties:
status:
type: string
example: "deployed"
bandwidth:
type: integer
example: 0
interfacesequence:
type: integer
example: 0
vporttype:
type: string
example: "vlan"
vportuuid:
type: string
example: "e62716f5-cc68-40e7-b97e-f1e3d1bda9a8"
vportvalue:
type: object
properties:
vlan:
$ref: '#/components/schemas/vlan'
connections:
type: array
minItems: 2
maxItems: 2
example:
- "5134d2ba-ce81-4b1c-9242-d2f30896c3a0"
- "e2f182ee-8c06-410d-b0fe-e21c9e7ee7bd"
items:
type: string
description: "two vport uuids identified the endpoints of the link"
billing:
type: object
properties:
billingid:
type: string
example: "dae2cb75-89f2-4b5b-be99-5cf3ae3faa20"
billing-account:
type: string
example: "60012345"
role:
type: object
properties:
role-name:
type: string
example: "customer-admin"
permissions:
type: array
items:
type: string
example: "delete-user"
vnf-tag:
type: object
properties:
description:
type: string
example: "UNIX"
id:
type: integer
example: 2
name:
type: string
example: "UNIX"
vlan:
required:
- id
- mac
type: object
properties:
id:
type: string
example: "101"
mac:
type: string
example: ""
topology:
type: object
properties:
uuid:
type: string
example: "2056dbc6-fcad-4374-9dda-3bde3507b3b3"
name:
type: string
example: "Production WAN"
description:
type: string
example: "Main topology for WAN"
status:
type: string
example: "active"
customer_uuid:
type: string
example: "536b8cca-6594-46b9-8e62-1638e42deb6e"
nsd_uuid:
description: "no longer used"
type: string
example: null
guid_topology_id:
type: string
example: null
created_by:
type: string
example: "7a53ecf9-644a-4c92-8c63-eabc1ffe131f"
creation_date:
type: integer
example: 1508307028000
deletion_date:
type: integer
example: 0
link:
type: object
properties:
description:
type: string
example: "Main link from Melbourne to Sydney"
latency:
$ref: '#/components/schemas/latency'
linkid:
$ref: '#/components/schemas/linkid'
contracts:
type: array
items:
$ref: '#/components/schemas/contract'
tag:
type: string
example: "prod"
connections:
$ref: '#/components/schemas/connections'
type:
type: string
example: "0"
linkStatus:
type: integer
example: 1
billing-id:
type: string
example: "b41c4ec8-1825-404b-b740-feaeba96681d"
duration.mins:
description: "Duration of contract in minutes"
type: integer
example: 3600
minimum: 3600
duration.hrs:
description: "Duration of contract in hours (not minutes)"
type: integer
example: 1
minimum: 1
bandwidth.kbs:
description: "Bandwidth in kB/s"
type: integer
example: 1000
minimum: 1000
maximum: 10000000
bandwidth.mbs:
description: "Bandwidth in MB/s (not kB/s)"
type: integer
example: 1
minimum: 1
maximum: 10000
renewal-option:
type: integer
description: >-
"Renewal Option: 0=Auto Disconnect, 1=Auto Renew, 2=Pay per hour"
example: 0
linkid:
type: string
description: "Identifier of a link"
example: "f070660600c1c45f"
contractid:
type: string
description: "Identifier of a contract"
example: "f070660600c1c45f.2"
latency:
description: "Latency: 0=Low, 1=Standard, 2=Best Effort"
type: integer
example: 0
pattern: "[012]"
price:
type: integer
example: 259
contractStatus:
type: integer
example: 8
version:
type: integer
example: 20431
deletedtimestamp:
type: integer
example: 0
currencyCode:
type: string
example: "USD"
currencyID:
type: string
example: "1"
contract-start-time:
type: integer
example: 1508589922000
contract-end-time:
type: integer
example: 1508593521000
contract:
type: object
properties:
contractid:
$ref: '#/components/schemas/contractid'
duration:
$ref: '#/components/schemas/duration.mins'
bandwidth:
$ref: '#/components/schemas/bandwidth.kbs'
price:
$ref: '#/components/schemas/price'
contractStatus:
$ref: '#/components/schemas/contractStatus'
version:
$ref: '#/components/schemas/version'
deletedtimestamp:
$ref: '#/components/schemas/deletedtimestamp'
currencyCode:
$ref: '#/components/schemas/currencyCode'
currencyID:
$ref: '#/components/schemas/currencyID'
renewal-option:
$ref: '#/components/schemas/renewal-option'
contract-start-time:
$ref: '#/components/schemas/contract-start-time'
contract-end-time:
$ref: '#/components/schemas/contract-end-time'
image:
type: object
properties:
brief_description:
type: string
example: "Quagga for general use"
buyers:
type: string
classifications:
type: array
items:
type: object
properties:
description:
type: string
example: "Router"
id:
type: integer
example: 4
name:
type: string
example: "Router"
comments:
type: string
create_at:
type: integer
example: 1456314043
creator:
type: string
example: "1f10c671-cd71-4467-b605-d150113629b9"
description:
type: string
example: "Quagga router image with version 0.99.22.1"
eos:
type: string
flavors:
type: array
items:
$ref: '#/components/schemas/flavor'
flavors_price:
type: string
glance_comments:
type: string
glance_image:
type: object
properties:
create_at:
type: string
id:
type: integer
example: 7
name:
type: string
example: "quagga-0.99.22.1"
owner:
type: string
example: "9222433f-727d-4679-b807-3ce39b9f8ef2"
status:
type: string
glance_name:
type: string
example: "c9b2444c-239a-475b-af54-db9deccefca3"
glance_properties:
type: string
id:
type: integer
example: 6
image_format:
type: string
example: "qcow2"
license_required:
type: boolean
logo:
type: string
example: >-
"https://marketplace-ms-production.s3.amazonaws.com/logos/cloud-8.jpg"
max_ports:
type: integer
example: 8
md5:
type: string
min_ports:
type: integer
example: 1
name:
type: string
example: "CSR1000v"
os_version:
type: string
example: "Ubuntu 16.04"
owner:
type: string
example: "d486321a-9a91-4879-8d7c-2fcf4506e33e"
product:
type: object
properties:
id:
type: integer
example: 7
publish_date:
type: string
restrict_vnc_console:
type: boolean
status:
type: string
example: "Published"
support_hot_plug:
type: boolean
tags:
type: array
items:
$ref: '#/components/schemas/vnf-tag'
upload_at:
type: integer
example: 1456315518
vendor_name:
type: string
example: "Cisco"
zero_day_config_spec:
type: string
meta:
type: object
properties:
limit:
type: integer
next:
type: integer
offset:
type: integer
previous:
type: integer
total_count:
type: integer
flavor:
type: object
properties:
currency:
type: string
example: "USD"
description:
type: string
example: "Flavor for CSP image"
disk:
type: integer
example: 0
ephemeral:
type: integer
example: 0
id:
type: integer
example: 3
name:
type: string
example: "Medium-CSP"
price:
type: number
example: 0.4
ram:
type: integer
example: 0
specific_customer:
type: string
swap:
type: integer
example: 0
vcpus:
type: integer
example: 2
user:
type: object
required:
- useruuid
- status
- username
properties:
title:
type: string
example: "Ms"
useruuid:
type: string
example: "Ms"
usercountry:
type: string
example: "USA"
emailaddress:
type: string
example: "test@dummy.com"
jobtitle:
type: string
example: null
firstname:
type: string
example: "Person"
middlename:
type: string
example: null
lastname:
type: string
example: "Pacman"
phonenumber:
type: string
example: "7026661954"
phoneext:
type: string
example: null
phonetype:
type: string
example: "mobile"
status:
type: string
example: "1"
parameters:
customeruuid:
in: path
name: customeruuid
description: Unique identifier representing a specific customer
schema:
type: string
required: true
endpointuuid:
in: path
name: endpointuuid
description: Unique identifier representing a specific endpoint
schema:
type: string
required: true
linkid:
in: path
name: linkid
description: Unique identifier representing a specific link
schema:
type: string
required: true
contractid:
in: path
name: contractid
description: Unique identifier representing a specific contract
schema:
type: string
required: true
vportuuid:
in: path
name: vportuuid
description: Unique identifier representing a specific virtual port
schema:
type: string
required: true
imageid:
in: path
name: imageid
description: Identifier representing a specific VNF image
schema:
type: integer
required: true
vnfuuid:
in: path
name: vnfuuid
description: >-
Unique identifier representing a specific virtual network function
schema:
type: string
required: true
exrequuid:
in: path
name: exrequuid
description: Unique identifier representing a specific exchange request
schema:
type: string
required: true
visitcarduuid:
in: path
name: visitcarduuid
description: >-
Unique identifier representing a specific exchange visit card (provider
description)
schema:
type: string
required: true
taguuid:
in: path
name: taguuid
description: Unique identifier representing a specific customer tag
schema:
type: string
required: true
topotaguuid:
in: path
name: topotaguuid
description: Unique identifier representing a specific topology tag
schema:
type: string
required: true
useruuid:
in: path
name: useruuid
description: Unique identifier representing a specific user
schema:
type: string
required: true
startdate:
in: path
name: startdate
description: Start date for statistics query
schema:
type: string
required: true
enddate:
in: path
name: enddate
description: End date for statistics query
schema:
type: string
required: true
backupuuid:
in: path
name: backupuuid
description: Unique identifier representing a specific VNF backup
schema:
type: string
required: true
service_uuid:
in: path
name: service_uuid
description: >-
Unique identifier representing a specific IPVPN or Next IP service (?)
schema:
type: string
required: true
customer_id:
in: path
name: customer_id
description: Should this be customeruuid?
schema:
type: string
required: true
responses:
unauthenticated:
description: Missing Token
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: error
error-code:
type: integer
example: 1060052
error_description:
type: string
example: Payload required.
application/xml:
schema:
$ref: '#/components/schemas/Error'
forbidden:
description: Authorization Failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
methodnotallowed:
description: Method Not Allowed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
internalerror:
description: Backend Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
invalidrequest:
description: Request is not correctly formatted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
objectnotfound:
description: Specified object cannot be found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
statusconflict:
description: Status onflict
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
validationerror:
description: Request is invalid
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
application/xml:
schema:
$ref: '#/components/schemas/Error'
security:
- oAuth2: []
paths:
/1.0.0/inventory/datacenters:
get:
summary: Get list of all the data centers
tags:
- datacentres
responses:
'200':
description: array of data center objects
content:
application/json:
schema:
type: object
properties:
datacenters:
type: array
items:
type: object
properties:
cityname:
type: string
example: "Melbourne"
countryname:
type: string
example: "Australia"
datacentername:
type: string
example: "Melbourne (NextDC)"
datacentercode:
type: string
example: "amls"
datacenteruuid:
type: string
example: "61f6522f-83e4-4c71-b638-63808240ef88"
interfacetypes:
type: array
items:
type: string
operatorname:
type: string
'400':
$ref: '#/components/responses/invalidrequest'
'401':
$ref: '#/components/responses/unauthenticated'
'403':
$ref: '#/components/responses/forbidden'
'404':
$ref: '#/components/responses/objectnotfound'
'405':
$ref: '#/components/responses/methodnotallowed'
'409':
$ref: '#/components/responses/statusconflict'
'422':
$ref: '#/components/responses/validationerror'
'500':
$ref: '#/components/responses/internalerror'
'/1.0.0/inventory/endpoints/customeruuid/{customeruuid}':
parameters:
- $ref: '#/components/parameters/customeruuid'
get:
summary: Get list of endpoints for a customer
tags:
- endpoints
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
endpointlist:
type: array
items:
type: object
properties:
datacenteruuid:
type: string
example: "7d89a3e0-ea82-4970-82f3-359d15d364b2"
endpointuuid:
type: string
example: "ebe5a688-2a87-40ba-8303-049b1855271c"
'/1.0.0/inventory/endpoint/{endpointuuid}':
parameters:
- $ref: '#/components/parameters/endpointuuid'
get:
summary: Get information about the specified endpoint
tags:
- endpoints
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
datacenter:
type: array
items:
type: object
properties:
datacenteruuid:
type: string
example: "fb089004-53c9-476e-b7b2-3cc91829e0d1"
port:
type: array
items:
$ref: '#/components/schemas/endpoint-port'
/1.0.0/inventory/vnfendpoint:
post:
summary: Instantiate Virtual Network Function
tags:
- endpoints
- vnfs
requestBody:
content:
application/json:
schema:
required:
- customeruuid
- imageuuid
- flavoruuid
- datacenteruuid
- config
type: object
properties:
customeruuid:
type: string
example: "e66546d2-eb85-442f-a4d4-a4f6f4cee6bc"
imageuuid:
type: integer
example: 21
flavoruuid:
type: integer
example: 22
datacenteruuid:
type: string
example: "2e5ff2d1-da1b-4e5d-81a8-58f1780b1031"
config:
description: "Boot configuration for VNF, base64 encoded"
type: string
topology_tag_uuid:
type: string
example: "f6c14b31-f29f-4be2-919b-5b7f463e4a3c"
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/success-fragment'
- type: object
properties:
customeruuid:
type: string
example: "9a6c0b09-6864-4f1b-bc03-842268ca1061"
vnfuuid:
type: string
example: "37449aab-0aa2-44ae-929b-7616549ee20e"
/1.0.0/inventory/regularendpoint:
post:
summary: Create Physical (Port) Endpoint
tags:
- endpoints
requestBody:
content:
application/json:
schema:
type: object
properties:
customeruuid:
type: string
example: "6a607f5f-25c9-45a1-a960-a34245509208"
datacenteruuid:
type: string
example: "dc8f4a57-4621-4b17-87bd-e5a7e508bf7a"
interfacetype:
type: string
example: "1000Base-TX"
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/success-fragment'
- type: object
properties:
endpointuuid:
type: string
example: "c6b5c04f-c968-432e-a70f-b929437ea6e4"
'/eis/1.0.0/endpoints/{endpointuuid}/assign_topology_tag':
parameters:
- $ref: '#/components/parameters/endpointuuid'
post:
summary: Assign an Endpoint to a Topology
tags:
- endpoints
- topologies
requestBody:
content:
application/json:
schema:
type: object
properties:
topology_tag:
type: string
example: "38d17228-0179-491f-9e84-36ddd078b8e6"
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/success-fragment'
'/eis/1.0.0/endpoints/topology_tag_uuid/{topotaguuid}/endpoint/{endpointuuid}':
parameters:
- $ref: '#/components/parameters/topotaguuid'
- $ref: '#/components/parameters/endpointuuid'
delete:
summary: Remove Endpoint from a Topology
tags:
- endpoints
- topologies
responses:
'204':
description: No Content
'/eis/1.0.0/endpoint/endpointuuid/{endpointuuid}':
parameters:
- $ref: '#/components/parameters/endpointuuid'
put:
summary: Update Endpoint name
tags:
- endpoints
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
example: "My Endpoint"
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/success-fragment'
'400':
$ref: '#/components/responses/invalidrequest'