forked from jdegre/5GC_APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TS26512_M1_ContentHostingProvisioning.yaml
289 lines (286 loc) · 9.54 KB
/
TS26512_M1_ContentHostingProvisioning.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
openapi: 3.0.0
info:
title: M1_ContentHostingProvisioning
version: 2.0.0
description: |
5GMS AF M1 Content Hosting Provisioning API
© 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.
tags:
- name: M1_ContentHostingProvisioning
description: '5G Media Streaming: Provisioning (M1) APIs: Content Hosting Provisioning'
externalDocs:
description: 'TS 26.512 V17.2.0; 5G Media Streaming (5GMS); Protocols'
url: 'https://www.3gpp.org/ftp/Specs/archive/26_series/26.512/'
servers:
- url: '{apiRoot}/3gpp-m1/v2'
variables:
apiRoot:
default: https://example.com
description: See 3GPP TS 29.512 clause 6.1.
paths:
/provisioning-sessions/{provisioningSessionId}/content-hosting-configuration:
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: createContentHostingConfiguration
summary: 'Create (and optionally upload) the Content Hosting Configuration for the specified Provisioning Session'
requestBody:
description: 'A JSON representation of a Content Hosting Configuration'
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
responses:
'201':
description: 'Content Hosting Configuration Created'
headers:
Location:
description: 'URL of the newly created Content Hosting Configuration (same as request URL).'
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/Url'
get:
operationId: retrieveContentHostingConfiguration
summary: 'Retrieve the Content Hosting Configuration of the specified Provisioning Session'
responses:
'200':
description: 'Success'
content:
application/json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
'404':
description: 'Not Found'
put:
operationId: updateContentHostingConfiguration
summary: 'Update the Content Hosting Configuration for the specified Provisioning Session'
requestBody:
description: 'A JSON representation of a Content Hosting Configuration'
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
responses:
'204':
description: 'Updated Content Hosting Configuration'
'404':
description: 'Not Found'
patch:
operationId: patchContentHostingConfiguration
summary: 'Patch the Content Hosting Configuration for the specified Provisioning Session'
requestBody:
description: 'A JSON representation of a Content Hosting Configuration'
required: true
content:
application/merge-patch+json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
application/json-patch+json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
responses:
'200':
description: 'Patched Content Hosting Configuration'
content:
application/json:
schema:
$ref: '#/components/schemas/ContentHostingConfiguration'
'404':
description: 'Not Found'
delete:
operationId: destroyContentHostingConfiguration
summary: 'Destroy the current Content Hosting Configuration of the specified Provisioning Session'
responses:
'204':
description: 'Destroyed Content Hosting Configuration'
'404':
description: 'Not Found'
/provisioning-sessions/{provisioningSessionId}/content-hosting-configuration/purge:
parameters:
- name: provisioningSessionId
in: path
required: true
schema:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
description: A unique identifier of the Provisioning
post:
operationId: purgeContentHostingCache
summary: 'Purge the content of the cache for the Content Hosting Configuration of the specified Provisioning Session'
requestBody:
description: 'The regular expression pattern for resources to purge from the cache'
required: true
content:
application/x-www-form-urlencoded:
schema:
properties:
pattern:
description: 'Keyword'
type: string
value:
description: 'The regular expression'
type: string
responses:
'200':
description: 'Content Purged'
components:
schemas:
IngestConfiguration:
type: object
description: 'A configuration for content ingest.'
properties:
path:
type: string
pull:
type: boolean
protocol:
$ref: 'TS29571_CommonData.yaml#/components/schemas/Uri'
entryPoint:
$ref: 'TS26512_CommonData.yaml#/components/schemas/Url'
PathRewriteRule:
type: object
description: 'A rule to manipulate URL paths.'
required:
- requestPattern
- mappedPath
properties:
requestPattern:
type: string
mappedPath:
type: string
CachingConfiguration:
type: object
description: 'A content caching configuration.'
required:
- urlPatternFilter
properties:
urlPatternFilter:
type: string
cachingDirectives:
type: object
required:
- noCache
properties:
statusCodeFilters:
type: array
items:
type: integer
noCache:
type: boolean
maxAge:
type: integer
format: int32
DistributionConfiguration:
type: object
description: 'A content distribution configuration.'
required:
- canonicalDomainName
- domainNameAlias
properties:
contentPreparationTemplateId:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
canonicalDomainName:
type: string
domainNameAlias:
type: string
pathRewriteRules:
type: array
items:
$ref: '#/components/schemas/PathRewriteRule'
cachingConfigurations:
type: array
items:
$ref: '#/components/schemas/CachingConfiguration'
geoFencing:
type: object
required:
- locatorType
- locators
properties:
locatorType:
$ref: 'TS29571_CommonData.yaml#/components/schemas/Uri'
locators:
type: array
items:
type: string
description: 'Format of individual locators depends on the locatorType.'
minItems: 1
urlSignature:
type: object
required:
- urlPattern
- tokenName
- passphraseName
- passphrase
- tokenExpiryName
- useIPAddress
properties:
urlPattern:
type: string
tokenName:
type: string
passphraseName:
type: string
passphrase:
type: string
tokenExpiryName:
type: string
useIPAddress:
type: boolean
ipAddressName:
type: string
certificateId:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
supplementaryDistributionNetworks:
type: object
properties:
default:
$ref: '#/components/schemas/DistributionNetworkType'
required:
- default
additionalProperties:
$ref: '#/components/schemas/DistributionMode'
# Schema for the resource itself
ContentHostingConfiguration:
type: object
description: "A representation of a Content Hosting Configuration resource."
required:
- name
- ingestConfiguration
- distributionConfigurations
properties:
name:
type: string
ingestConfiguration:
$ref: '#/components/schemas/IngestConfiguration'
distributionConfigurations:
type: array
items:
$ref: '#/components/schemas/DistributionConfiguration'
DistributionNetworkType:
description: "Type of distribution network."
anyOf:
- type: string
enum: [NETWORK_EMBMS]
- type: string
description: >
This string provides forward-compatibility with future
extensions to the enumeration but is not used to encode
content defined in the present version of this API.
DistributionMode:
description: "Mode of content distribution."
anyOf:
- type: string
enum: [MODE_EXCLUSIVE, MODE_HYBRID, MODE_DYNAMIC]
- type: string
description: >
This string provides forward-compatibility with future
extensions to the enumeration but is not used to encode
content defined in the present version of this API.