Secure Token

Configure Secure Token authentication for CDN Resources through the Security API.

Update Secure Token settings for a CDN Resource

put

Use this endpoint to enable or disable Secure Token authentication for a CDN Resource. Secure Token adds a signature-based protection layer to prevent unauthorized access to CDN content. This feature is supported for Small, Large, and Streaming resource types.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organization_uuidstringRequired

Unique identifier of the organization.

Example: 123e4567-e89b-12d3-a456-426614174000
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
Body
resource_uuidstringRequired

Unique identifier of the CDN Resource.

Example: 789e1234-b56c-78d9-a123-526614174111
status_secure_tokenbooleanRequired

Enables or disables Secure Token authentication.

Example: true
secure_tokenstringRequired

The token key used for generating signed URLs or access links.

Example: my_secure_token_key
Responses
200

Secure Token settings updated successfully.

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

{
  "resource_uuid": "789e1234-b56c-78d9-a123-526614174111",
  "status_secure_token": true,
  "secure_token": "my_secure_token_key"
}
200

Secure Token settings updated successfully.

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

Last updated

Was this helpful?