Create Streaming CDN Resource
Method | URL |
---|---|
POST | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_type | It is the type of the resource created in Medianova Cloud Panel. It can be “small, large, dynamic, vod, streaming” values. | String | Yes |
resource_name | It is the name given to the resource created in the Medianova cloud panel. It must be unique. | String | Yes |
resource_label | Specifies the Resource. There is no character limit and special characters can be written. | String | No |
data_source | Determines the source of the resource. It can take “origin” and “rtmp” values. | String | Yes |
protocol | It determines the protocol of the entered origin_url. It can take “http” or “https” values. | String | Yes |
origin_url | It is the URL information of the resource created in the Medianova Cloud panel. | String, URL | Yes |
Payload
{
"resource_type": "streaming",
"resource_name": "streamingtest",
"resource_label": "",
"data_source": "origin",
"origin_url": "test.com",
"protocol": "https"
}
Response
{
"status": true,
"data": {
"resource_uuid": "****-****-****-****",
"resource_type": "streaming",
"resource_name": "streamingtest",
"cdn_url": "streaming.mncdn.com",
"resource_label": null,
"ssl_certificate": "shared_ssl",
"created_at": "2023-12-11T10:34:28.000000Z",
"data_source": "origin",
"protocol": "https",
"origin_url": "test.com",
"gzip_text": false
}
}