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
/cdn/{organization_uuid}/resource
200

List of resources retrieved successfully

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
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

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
/api/v1/cdn/{organization_uuid}/resource
200

Resource created successfully

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
/api/v1/cdn/{organization_uuid}/resource
200

Storage resource created successfully

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
/api/v1/cdn/{organization_uuid}/resource
200

Resource created successfully

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
/api/v1/cdn/{organization_uuid}/resource
200

Streaming resource created successfully

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
/api/v1/cdn/{organization_uuid}/resource
200

Streaming resource created successfully

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
/api/v1/cdn/{organization_uuid}/resource
200

Streaming resource created successfully

Enable/Disable Resource

put
Path parameters
organization_uuidstringRequiredExample: ****-*****-****-****
resource_uuidstringRequiredExample: ****-*****-****-*****
Body
statusbooleanRequiredExample: false
Responses
200

Resource successfully enabled/disabled

application/json
put
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}
200

Resource successfully enabled/disabled

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
/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Last updated

Was this helpful?