Resources

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

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

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

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

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

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": {}
}

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
delete
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?