-
Notifications
You must be signed in to change notification settings - Fork 253
/
TS26512_M1_ContentHostingProvisioning.yaml
346 lines (337 loc) · 11.6 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
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
openapi: 3.0.0
info:
title: M1_ContentHostingProvisioning
version: 2.2.3
description: |
5GMS AF M1 Content Hosting Provisioning API
© 2023, 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.7.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/AbsoluteUrl'
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: 'The regular expression'
type: string
responses:
'200':
# OK
description: 'Content Purged'
content:
application/json:
schema:
description: 'The aggregate number of cache entries purged in all 5GMSd AS instances distributing content for the requested Provisioning Session.'
type: integer
minimum: 1
'204':
# No Content
description: 'No Content Purged'
'400':
# Bad Request (e.g. syntactically invalid regular expression in request body)
$ref: 'TS29571_CommonData.yaml#/components/responses/400'
'404':
# Not Found
$ref: 'TS29571_CommonData.yaml#/components/responses/404'
'413':
# Payload Too Large
$ref: 'TS29571_CommonData.yaml#/components/responses/413'
'414':
# URI Too Long
$ref: 'TS29571_CommonData.yaml#/components/responses/414'
'415':
# Unsupported Media Type
$ref: 'TS29571_CommonData.yaml#/components/responses/415'
'500':
# Internal Server Error
$ref: 'TS29571_CommonData.yaml#/components/responses/500'
'503':
# Service Unavailable
$ref: 'TS29571_CommonData.yaml#/components/responses/503'
default:
$ref: 'TS29571_CommonData.yaml#/components/responses/default'
components:
schemas:
IngestConfiguration:
type: object
description: 'A configuration for content ingest.'
properties:
pull:
type: boolean
protocol:
$ref: 'TS29571_CommonData.yaml#/components/schemas/Uri'
baseURL:
$ref: 'TS26512_CommonData.yaml#/components/schemas/AbsoluteUrl'
M1MediaEntryPoint:
description: "A typed entry point for downlink or uplink media streaming."
type: object
required:
- relativePath
- contentType
properties:
relativePath:
$ref: 'TS26512_CommonData.yaml#/components/schemas/RelativeUrl'
contentType:
type: string
profiles:
type: array
items:
$ref: 'TS29571_CommonData.yaml#/components/schemas/Uri'
minItems: 1
PathRewriteRule:
type: object
description: 'A rule to manipulate URL paths.'
required:
- requestPathPattern
- mappedPath
properties:
requestPathPattern:
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.'
properties:
entryPoint:
$ref: '#/components/schemas/M1MediaEntryPoint'
contentPreparationTemplateId:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
edgeResourcesConfigurationId:
$ref: 'TS26512_CommonData.yaml#/components/schemas/ResourceId'
canonicalDomainName:
type: string
domainNameAlias:
type: string
baseURL:
$ref: 'TS26512_CommonData.yaml#/components/schemas/AbsoluteUrl'
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: array
items:
type: object
description: "A duple tying a type of supplementary distribution network to its distribution mode."
required:
- distributionNetworkType
- distributionMode
properties:
distributionNetworkType:
$ref: '#/components/schemas/DistributionNetworkType'
distributionMode:
$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.