forked from jdegre/5GC_APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TS26512_M1_ServerCertificatesProvisioning.yaml
99 lines (98 loc) · 3.67 KB
/
TS26512_M1_ServerCertificatesProvisioning.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
openapi: 3.0.0
info:
title: M1_ServerCertificatesProvisioning
version: 1.0.0
description: |
5GMS AF M1 Server Certificates Provisioning API
© 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.
tags:
- name: M1_ServerCertificatesProvisioning
description: '5G Media Streaming: Provisioning (M1) APIs: Server Certificates Provisioning'
externalDocs:
description: 'TS 26.512 V16.2.0; 5G Media Streaming (5GMS); Protocols'
url: 'https://www.3gpp.org/ftp/Specs/archive/26_series/26.512/'
servers:
- url: '{apiRoot}/3gpp-m1/v1'
variables:
apiRoot:
default: https://example.com
description: See 3GPP TS 29.512 clause 6.1.
paths:
/provisioning-sessions/{provisioningSessionId}/certificates:
parameters:
- name: provisioningSessionId
in: path
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
description: The resource identifier of an existing Provisioning Session.'
post:
operationId: createOrReserveServerCertificate
summary: 'Create or reserve a Service Certificate resource'
description: 'Without the optional csr query parameter, an X.509 certificate is generated and this is returned. If the csr query parameter is present, a Certificate Signing Request is instead generated and returned, allowing the X.509 certificate to be generated by the invoker and later uploaded.'
parameters:
- in: query
name: csr
schema:
type: string
description: 'When present, return a Certificate Signing Request instead of generating an X.509 certificate'
responses:
'200':
description: 'Server Certificate Created'
headers:
Location:
description: 'URL of the newly created Server Certificate resource'
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/Url'
content:
'application/x-pem-file':
schema:
type: string
/provisioning-sessions/{provisioningSessionId}/certificates/{certificateId}:
parameters:
- name: provisioningSessionId
in: path
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
description: The resource identifier of an existing Provisioning Session.'
- name: certificateId
in: path
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
description: 'The resource identifier of an existing Server Certificate'
put:
operationId: uploadServerCertificate
summary: "Upload the X.509 certificate for a previously reserved Server Certificate resource"
requestBody:
required: true
content:
application/x-pem-file:
schema:
type: string
responses:
'204':
description: 'Server Certificate Updated'
get:
operationId: retrieveServerCertificate
summary: 'Retrieve the X.509 certificate representation of the specified Server Certificate resource'
responses:
'200':
description: 'Success'
content:
'application/x-pem-file':
schema:
type: string
'204':
description: 'Awaiting Upload'
'404':
description: 'Not Found'
delete:
operationId: destroyServerCertificate
summary: 'Destroy an existing Server Certificate resource'
responses:
'204':
description: 'Server Certificate Destroyed'