Knowledge Base
medianova.comSupportLog in
  • Welcome to the Medianova Knowledge Base
  • Getting Started
    • Concepts
    • Start your Free Trial
  • Products
    • Security
      • DDoS Protection
      • SSL/TLS Encryption
        • How to upload and manage SSL Certificates?
        • How to Extract CRT and KEY Files from a PFX Certificate
        • How can I use Free SSL?
        • FAQ
      • Web Application Firewall (WAF)
        • How to activate WAF?
        • Analytics
      • Rate Limiting
      • Hotlink Protection
      • IP Restriction
      • Geoblocking
      • FAQs
    • Performance / CDN
      • Static Content Delivery
        • Create Small Resource
        • Create Large Resource
        • Integrating Static CDN Resource
        • Configuration Basics
          • Medianova IP Blocks
        • Advanced Configuration
          • Origin Settings
            • Advanced Origin Settings
            • Rewrite Origin URLs
            • Origin SNI Request
            • Redirect Handle From Origin
            • Origin Response Timeout
          • CNAME
          • Caching
            • Edge Cache Expiration
            • Browser Cache Rule
            • Query String Caching
            • Etag Verification
            • Error Status Code Cache Expiration
            • Shared Cache
            • Stale Cache
            • Robots.txt file
            • Range Based Caching
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
            • HTTP Strict Transport (HSTS) Protection
            • X-Frame Options
            • X-XSS Protection
            • X-Content Type Options
          • Purge
          • Prefetch
          • Page Rules
            • Manage Page Rules
            • Page Rules Settings
          • Compression
            • How to Configure Gzip and Brotli
        • Website Framework Integrations
          • Magento CDN Integration
          • Wordpress CDN Integration
          • Phalcon CDN Integration
          • CakePHP CDN Integration
        • Analytics
      • Dynamic Content Acceleration
        • Create Dynamic Resource
        • Integrating Dynamic CDN Resource
        • Aksela Test Steps
        • Advanced Configuration
          • Origin Settings
            • Advanced Origin Settings
            • Rewrite Origin URLs
            • Origin SNI Request
            • Redirect Handle From Origin
            • Origin Response Timeout
          • Caching
            • Edge Cache Expiration
            • Browser Cache Rule
            • Query String Caching
            • Etag Verification
            • Error Status Code Cache Expiration
            • Shared Cache
            • Stale Cache
            • Disallow Cookie Base Cache
            • Cookie Base Cache
            • Header Base Cache
            • Header Value Base Cache
            • MNUID Cookie Base Cache
            • Mobile Redirect
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
            • HTTP Strict Transport (HSTS) Protection
            • X-Frame Options
            • X-XSS Protection
            • X-Content Type Options
          • Purge
          • Prefetch
          • Page Rules
          • Compression
        • Analytics
      • Streaming Content Delivery
        • Create Streaming Resource
        • Advanced Configuration
          • Origin Settings
            • Redirect Handle From Origin
            • Origin Response Timeout
          • Headers
            • CORS Header
            • Custom Header
            • X-CDN Header
            • Origin Host Header
          • Stream Management
        • Analytics
      • API Caching
      • Private CDN
      • Image Optimization and WebP
        • What is Image Optimization and How Does It Work?
        • What is WebP and How Does It Work?
        • How to Activate Image Optimization and WebP?
        • Analytics
      • FAQs
    • Object Storage / Stook
      • What is Stook?
      • How to Create Stook?
      • How to Connect Bucket?
      • Access Key Management
      • Stook Integration and Usage Guides
        • Migrating Data to Stook Using Rclone
        • Data Transfer to Stook with Cyberduck
        • How to use the AWS SDK for Laravel with Stook?
        • How to use the AWS SDK for PHP with Stook?
        • How do I use the AWS SDK for .NET with Stook?
        • Stook Storage User Guide for AWS CLI
        • How to use AWS SDK for JavaScript with Stook?
        • How do I use Stook with the AWS Java SDK?
        • Using Pre-Signed URL PHP with Stook
        • Using Pre-Marked URL NODEJS With Stook
    • Analytics (MN Logz)
      • Real-Time Logpush
      • Raw Logs
  • Account & Billing
    • Managing Account and Organizations
      • Create new organization
      • Invite user
      • Changing Cloud Panel password
      • Access Controls and Authentication
    • Subscription and Billing
      • Packages
        • Free Trial
        • Starter
        • Growth
        • Enterprise
        • Add-ons
      • Policy
      • Upgrade & Downgrade Procedures
      • Changing your subscription package
      • Payment Info
      • Invoices
  • API Documentation
    • Authentication
    • Security
      • Web Application Firewall (WAF)
      • SSL/TLS
      • Always Use HTTPS Settings
      • Origin Basic Authentication
      • Secure Token
      • Bot Protection
      • Hotlink Protection
      • User Agent ACL
      • IP Restriction ACL
      • Geoblocking
    • Performance / CDN
      • Resources
      • Origin Settings
      • CNAME & SSL
      • Caching
      • Headers
      • Image Optimization & WebP
      • Page Rule
      • Purge
      • Prefetch
      • Stream Management
    • Object Storage / Stook
    • Analytics
      • WAF Analytics
  • Support and Troubleshooting
    • Common Issues and Solutions
      • Troubleshooting Common Setup Issues
      • Troubleshooting Performance Problems
    • Contacting Customer Support
  • Glossary
    • Definition of Important CDN Terms
    • Acronyms and Abbreviations
    • Definition of HTTP Status Error Codes
Powered by GitBook
LogoLogo

© 2025 Medianova. All rights reserved.

On this page

Was this helpful?

Export as PDF
  1. API Documentation
  2. Performance / CDN

Resources

PreviousPerformance / CDNNextOrigin Settings

Last updated 2 months ago

Was this helpful?

List resources

get
Path parameters
organization_uuidstringRequired

The unique identifier of the organization

Query parameters
pageintegerOptional

Page number for pagination

Default: 1
sort_fieldstring · enumOptional

Field to sort by

Default: created_atPossible values:
sortstring · enumOptional

Sort direction

Default: descPossible values:
Responses
200
List of resources retrieved successfully
application/json
get
GET /api/v1/cdn/{organization_uuid}/resource HTTP/1.1
Host: cloud.medianova.com
Accept: */*
200

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
  }
}

Show Resource

get

Retrieve detailed information about a specific resource.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Responses
200
Successful response with resource details
application/json
404
Resource not found
application/json
get

Delete Resource

delete

Delete a specific resource.

Path parameters
organization_uuidstringRequired

UUID of the organization

resource_uuidstringRequired

UUID of the resource

Responses
200
Successful response indicating resource was deleted
application/json
404
Resource not found
application/json
delete

Create Dynamic Resource

post
Path parameters
organization_uuidstringRequired

The unique identifier of the organization

Body
resource_namestringRequired

The name of the resource

resource_labelstringOptional

Label for the resource

data_sourcestring · enumRequired

The source of the data

Possible values:
resource_typestring · enumRequired

The type of the resource

Possible values:
origin_typestring · enumRequired

The type of the origin

Possible values:
server_namestringRequired

The name of the server

Example: testtest.com
Responses
200
Resource created successfully
application/json
post
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"
}
200

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
  }
}
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"
  }
}
DELETE /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Accept: */*
{
  "status": true,
  "data": true
}

Create Storage Resource (Small or Large)

post
Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization

Example: 123e4567-e89b-12d3-a456-426614174000
Body
resource_namestringRequiredExample: small-storage
resource_labelstringOptionalExample: labelstorage
data_sourcestringRequiredExample: storage
resource_typestring · enumRequiredExample: smallPossible values:
storage_versionstringRequiredExample: v2
storage_path_uuidstring · uuidRequiredExample: *****-*****-****-*****
storage_path_directorystringRequiredExample: test
Responses
200
Storage resource created successfully
application/json
post
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"
}
200

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
  }
}
  • GETList resources
  • GETShow Resource
  • POSTCreate Small and Large Resource
  • POSTCreate Storage Resource (Small or Large)
  • POSTCreate Dynamic Resource
  • POSTCreate Streaming Resource(Origin)
  • POSTCreate Streaming Resource (RTMP)
  • POSTCreate Streaming Resource (FLV)
  • PUTEnable/Disable Resource
  • DELETEDelete Resource

Create Streaming Resource(Origin)

post
Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization

Example: 123e4567-e89b-12d3-a456-426614174000
Body
resource_namestringRequiredExample: streamopenapi
resource_labelstringOptional
data_sourcestring · enumRequiredExample: originPossible values:
resource_typestring · enumRequiredExample: streamingPossible values:
protocolstring · enumRequiredExample: httpsPossible values:
origin_urlstring · uriRequiredExample: test.com
Responses
200
Streaming resource created successfully
application/json
post
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"
}
200

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
  }
}

Create Small and Large Resource

post
Path parameters
organization_uuidstringRequired

The unique identifier of the organization

Body
resource_namestringRequired

The name of the resource

resource_labelstringOptional

Label for the resource

data_sourcestring · enumRequired

The source of the data

Possible values:
resource_typestring · enumRequired

The type of the resource

Possible values:
origin_typestring · enumRequired

The type of the origin

Possible values:
Responses
200
Resource created successfully
application/json
post
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"
      }
    }
  ]
}
200

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
  }
}

Create Streaming Resource (RTMP)

post
Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization

Example: 123e4567-e89b-12d3-a456-426614174000
Body
resource_namestringRequiredExample: rtmpopenapi
resource_labelstringOptional
data_sourcestringRequiredExample: rtmp_push
resource_typestringRequiredExample: streaming
auth_usernamestringRequiredExample: rtmpuser
auth_passwordstringRequiredExample: hidden
Responses
200
Streaming resource created successfully
application/json
post
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"
}
200

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
  }
}

Enable/Disable Resource

put
Path parameters
organization_uuidstringRequiredExample: ****-*****-****-****
resource_uuidstringRequiredExample: ****-*****-****-*****
Body
statusbooleanRequiredExample: false
Responses
200
Resource successfully enabled/disabled
application/json
put
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
}
200

Resource successfully enabled/disabled

{
  "status": true,
  "data": {}
}

Create Streaming Resource (FLV)

post
Path parameters
organization_uuidstring · uuidRequired

The UUID of the organization

Example: 123e4567-e89b-12d3-a456-426614174000
Body
resource_namestringRequiredExample: streamingflv
resource_labelstringOptionalExample: test-label
data_sourcestringRequiredExample: stream_flv
resource_typestringRequiredExample: streaming
protocolstringRequiredExample: rtmp
stream_flv_media_serverbooleanOptionalExample: false
origin_urlstringRequiredExample: flvtest.com
Responses
200
Streaming resource created successfully
application/json
post
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"
}
200

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
  }
}