Follow these steps to use this API:
-
Create a new origin and select features such as multi-account and multi-CDN.
-
Create a stream, using the live origin you created.
-
Get all of the origins from the List live origins operation and provide the CP code associated with the origin in the stream creation request. The encoder zone should also match the origin location.
or
Create a stream with a new live origin along with the stream settings. Get an
unused
CP code from List CP codes and provide it in the stream creation request. -
Create the Adaptive Media Delivery (AMD) property with the Origin Type as Media Services Live in the Origin Server Behavior section.
You can retrieve these fields to create a stream:
-
Run List CP codes List CP codes] to get the value of the
CP code
. -
Run List contracts to get the value of the
contractId
. -
Run Generate a key to obtain the
key
. -
Run List CDNs to obtain the CDN
code
.
To disable the multi-account and multi-CDN features, make a PUT call
with an empty object in the request body.
These endpoints are deprecated. Do not use them:
/msl-origin/origins/{id}/versions
/msl-origin/origins/{id}/versions/{version}/activate