Resources
The unique identifier of the organization
Page number for pagination
1Field to sort by
created_atPossible values: Sort direction
descPossible values: List of resources retrieved successfully
GET /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Accept: */*
List of resources retrieved successfully
{
  "status": true,
  "data": [
    {
      "resource_uuid": "****-****-****-*****",
      "resource_type": "small",
      "resource_name": "test-resource.sm",
      "cdn_url": "test-resource.sm.mncdn.org",
      "resource_label": "label",
      "ssl_certificate": "shared_ssl",
      "created_at": "2024-12-26T18:19:08.000000Z",
      "data_source": "origin",
      "gzip_text": false,
      "gzip_image": false,
      "brotli": false,
      "image_optimization": false,
      "webp": true,
      "avif": null,
      "http2": true,
      "status_qs": false,
      "status_secure_token": false
    }
  ],
  "meta": {
    "current_page": 1,
    "total": 10,
    "per_page": 15
  }
}Retrieve detailed information about a specific resource.
UUID of the organization
UUID of the resource
Successful response with resource details
Resource not found
GET /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Accept: */*
{
  "status": true,
  "data": {
    "resource_uuid": "***-***-****-****",
    "resource_name": "test1.sm",
    "resource_type": "small",
    "resource_platform_type": "cache",
    "cdn_url": "test1.sm.mncdn.com",
    "protocol": "https",
    "origin_url": "test.com",
    "status": "active",
    "updating_status": "up_to_date",
    "created_at": "2024-09-12T09:23:26.000000Z",
    "updated_at": "2024-09-16T10:41:41.000000Z"
  }
}The unique identifier of the organization
The name of the resource
Label for the resource
The source of the data
The type of the resource
The type of the origin
Resource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 459
{
  "resource_name": "test-openapismall",
  "resource_label": "label",
  "data_source": "origin",
  "resource_type": "small",
  "origin_type": "mainstream",
  "origin_settings": [
    {
      "protocol": "http",
      "origin_url": "test.com",
      "host_header": "hostheader.com",
      "http_port": 80,
      "https_port": 443,
      "is_delete": false,
      "status_origin_s3_presign": true,
      "weight": 50,
      "priority": "primary",
      "origin_s3_header": {
        "access_key": "originaccess",
        "secret_key": "originsecret",
        "region": "tr",
        "bucket": "bucket-sim"
      }
    }
  ]
}Resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "****-****-****-*****",
    "resource_type": "small",
    "resource_name": "test-openapismall.sm",
    "cdn_url": "test-openapismall.sm.mncdn.org",
    "resource_label": "label",
    "ssl_certificate": "shared_ssl",
    "created_at": "2024-12-26T18:19:08.000000Z",
    "data_source": "origin",
    "gzip_text": false,
    "gzip_image": false,
    "brotli": false,
    "image_optimization": false,
    "webp": true,
    "avif": null,
    "http2": true,
    "status_qs": false,
    "status_secure_token": false
  }
}The UUID of the organization
123e4567-e89b-12d3-a456-426614174000small-storagelabelstoragestoragesmallPossible values: v2*****-*****-****-*****testStorage resource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 213
{
  "resource_name": "small-storage",
  "resource_label": "labelstorage",
  "data_source": "storage",
  "resource_type": "small",
  "storage_version": "v2",
  "storage_path_uuid": "*****-*****-****-*****",
  "storage_path_directory": "test"
}Storage resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "*****-*****-*****-***",
    "resource_type": "small",
    "resource_name": "small-storage.sm",
    "cdn_url": "small-storage.sm.mncdn.org",
    "resource_label": "labelstorage",
    "ssl_certificate": "shared_ssl",
    "created_at": "2024-12-27T10:41:47.000000Z",
    "storage_version": "v2",
    "storage_path_uuid": "***-****-*****-*****",
    "storage_path_directory": "test",
    "data_source": "storage",
    "gzip_text": false,
    "gzip_image": false,
    "brotli": false,
    "image_optimization": false,
    "webp": true,
    "avif": null,
    "http2": true,
    "status_qs": false,
    "status_secure_token": false
  }
}The unique identifier of the organization
The name of the resource
Label for the resource
The source of the data
The type of the resource
The type of the origin
The name of the server
testtest.comResource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 358
{
  "resource_name": "test",
  "resource_label": "",
  "data_source": "origin",
  "resource_type": "dynamic",
  "origin_type": "mainstream",
  "origin_settings": [
    {
      "protocol": "https",
      "origin_url": "dynamic.com",
      "host_header": "host.com",
      "http_port": 80,
      "https_port": 443,
      "is_delete": false,
      "status_origin_s3_presign": false,
      "weight": 50,
      "priority": "primary"
    }
  ],
  "server_name": "testtest.com"
}Resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "***-****-****-***",
    "resource_type": "dynamic",
    "resource_name": "test.sm",
    "cdn_url": "test.sm.mncdn.org",
    "resource_label": null,
    "ssl_certificate": "sni",
    "created_at": "2024-12-27T08:35:16.000000Z",
    "data_source": "origin",
    "server_name": "testtest.com",
    "gzip_text": false,
    "gzip_image": false,
    "brotli": false,
    "image_optimization": false,
    "webp": true,
    "avif": null,
    "http2": true,
    "status_qs": false,
    "status_secure_token": false
  }
}The UUID of the organization
123e4567-e89b-12d3-a456-426614174000streamopenapioriginPossible values: streamingPossible values: httpsPossible values: test.comStreaming resource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 147
{
  "resource_name": "streamopenapi",
  "resource_label": "",
  "data_source": "origin",
  "resource_type": "streaming",
  "protocol": "https",
  "origin_url": "test.com"
}Streaming resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "***-****-****-****",
    "resource_type": "streaming",
    "resource_name": "bistreamopenapi",
    "cdn_url": "streamopenapi.mncdn.com",
    "resource_label": null,
    "ssl_certificate": "shared_ssl",
    "created_at": "2024-12-27T09:30:39.000000Z",
    "data_source": "origin",
    "protocol": "https",
    "origin_url": "test.com",
    "gzip_text": false
  }
}The UUID of the organization
123e4567-e89b-12d3-a456-426614174000rtmpopenapirtmp_pushstreamingrtmpuserhiddenStreaming resource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 157
{
  "resource_name": "rtmpopenapi",
  "resource_label": "",
  "data_source": "rtmp_push",
  "resource_type": "streaming",
  "auth_username": "rtmpuser",
  "auth_password": "hidden"
}Streaming resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "****-****-****-*******",
    "resource_type": "streaming",
    "resource_name": "rtmpopenapi",
    "cdn_url": "rtmpopenapi.mncdn.com",
    "resource_label": null,
    "ssl_certificate": "shared_ssl",
    "created_at": "2024-12-27T09:32:36.000000Z",
    "data_source": "rtmp_push",
    "auth_status": true,
    "auth_username": "rtmpuser",
    "gzip_text": false
  }
}The UUID of the organization
123e4567-e89b-12d3-a456-426614174000streamingflvtest-labelstream_flvstreamingrtmpfalseflvtest.comStreaming resource created successfully
POST /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 194
{
  "resource_name": "streamingflv",
  "resource_label": "test-label",
  "data_source": "stream_flv",
  "resource_type": "streaming",
  "protocol": "rtmp",
  "stream_flv_media_server": false,
  "origin_url": "flvtest.com"
}Streaming resource created successfully
{
  "status": true,
  "data": {
    "resource_uuid": "***-****-****-****",
    "resource_type": "streaming",
    "resource_name": "streamingflv",
    "cdn_url": "streamingflv.mncdn.com",
    "resource_label": "test-label",
    "ssl_certificate": "shared_ssl",
    "created_at": "2024-12-27T10:27:34.000000Z",
    "data_source": "stream_flv",
    "protocol": "rtmp",
    "origin_url": "flvtest.com",
    "gzip_text": false
  }
}****-*****-****-********-*****-****-*****falseResource successfully enabled/disabled
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 16
{
  "status": false
}Resource successfully enabled/disabled
{
  "status": true,
  "data": {}
}Delete a specific resource.
UUID of the organization
UUID of the resource
Successful response indicating resource was deleted
Resource not found
DELETE /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Accept: */*
{
  "status": true,
  "data": true
}Last updated
Was this helpful?