CNAME & SSL

CNAME

put

This endpoint updates the settings of a CDN resource. Available for small and large resource types.

Path parameters
organization_uuidstringRequired

The UUID of the organization.

resource_uuidstringRequired

The ID of the resource to update.

Body
resource_uuidstringRequired

The UUID of the resource.

cnamestring[]Required

A list of CNAMES for the resource.

Responses
200
Successful response with updated resource details.
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: 60

{
  "resource_uuid": "*****-****-***-****",
  "cname": [
    "test.com"
  ]
}
200

Successful response with updated resource details.

{
  "status": true,
  "data": {
    "resource_uuid": "****-****-****-*****-*****",
    "resource_name": "test",
    "resource_type": "small",
    "resource_label": "test",
    "resource_platform_type": "cache",
    "cdn_url": "test.mncdn.org",
    "protocol": "",
    "origin_url": null,
    "origin_type": "mainstream",
    "origin_settings": [
      {
        "protocol": "http",
        "origin_url": "****.com.tr",
        "host_header": null,
        "weight": 50,
        "http_port": 80,
        "https_port": 443,
        "priority": "primary",
        "id": 1
      }
    ],
    "advanced_origin_settings": [],
    "status": "active",
    "updating_status": "pending",
    "created_at": "2024-06-28T09:45:23.000000Z",
    "updated_at": "2024-12-29T10:44:25.000000Z",
    "ssl_status": true,
    "ssl_type": "shared_ssl",
    "ssl_uuid": "****-****-****-****-****",
    "ssl_name": null,
    "status_geo_blocking": false,
    "geo_blocking_details": {
      "type": "allow",
      "status": true,
      "label": "",
      "geo_block_403_url": "",
      "method": "default",
      "whitelist_ip": [],
      "blacklist_ip": [],
      "whitelist_countries": [],
      "blacklist_countries": [],
      "start_date": "",
      "end_date": "",
      "pull_from_origin_header": false
    },
    "status_ip_restriction_acl": 0,
    "ip_restriction_acl": [],
    "data_source": "origin",
    "origin_response_timeout": 30,
    "tls_version": [
      "tlsv1.1",
      "tlsv1.2",
      "tlsv1.3"
    ],
    "origin_sni_request_status": false,
    "origin_sni_request_domain": null,
    "status_http3_support": true,
    "server_name": null,
    "http2": true,
    "cname": [
      "test.com"
    ]
  }
}

Update CDN SSL Configuration

put

This endpoint allows updating the SSL and DNS settings for a specific CDN resource.

Path parameters
organization_uuidstringRequired

The UUID of the organization.

resource_uuidstringRequired

The ID of the resource to update.

Body
ssl_statusbooleanRequired

Whether SSL is enabled for the resource. If true, additional parameters may be required.

ssl_typestring · enumOptional

Type of SSL configuration. Mandatory if ssl_status is true.

Possible values:
ssl_uuidstringOptional

The UUID of the SSL. Required if ssl_type is 'sni'.

put
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 76

{
  "ssl_status": true,
  "ssl_type": "sni",
  "ssl_uuid": "***-*****-****-*****-*****"
}

Last updated

Was this helpful?