Product Documentation

video_sources

Oct 21, 2015

Get, Set, Add and Delete video sources for video caching

Properties

Name Data Type Read-Only? Description
cachestatus
<String>
No

Video caching enabled or disabled for a video source

Possible values = [Enabled, Disabled]

name
<String>
No

Domain name or IP of video source

Operations

Hinweis

Mandatory parameters are marked in red and placeholder content is marked in <green>.

ADD

Use this operation to add a video source

HTTP Method: POST

URL: https://<cb_ip_address>/cb/nitro/v1/config/video_sources

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Content-Type: application/vnd.com.citrix.cloudbridge.video_sources+json

Request Payload: JSON

{"video_sources":{
"cachestatus": <string_value>,
"name": <string_value>
}}

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.video_sources+json

Response Payload: JSON

{"video_sources":{
"cachestatus": <string_value>,
"name": <string_value>
}}

DELETE

Use this operation to delete a video source

HTTP Method: DELETE

URL: https://<cb_ip_address>/cb/nitro/v1/config/video_sources/<name>

Request Headers:

Authorization: Basic <base64 encoded(username:password)>

Response Payload: EMPTY

GET (ALL)

Use this operation to get one or all video sources configured

HTTP Method: GET

URL: https://<cb_ip_address>/cb/nitro/v1/config/video_sources

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Accept: application/vnd.com.citrix.cloudbridge.video_sources_list+json

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.video_sources_list+json

Response Payload: JSON

{"video_sources": [{
"cachestatus": <string_value>,
"name": <string_value>
}, ...]}

GET

Use this operation to get one or all video sources configured

HTTP Method: GET

URL: https://<cb_ip_address>/cb/nitro/v1/config/video_sources/<name>

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Accept: application/vnd.com.citrix.cloudbridge.video_sources+json

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.video_sources+json

Response Payload: JSON

{"video_sources":{
"cachestatus": <string_value>,
"name": <string_value>
}}

MODIFY

Use this operation to modify a video source

HTTP Method: PUT

URL: https://<cb_ip_address>/cb/nitro/v1/config/video_sources/<name>

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Content-Type: application/vnd.com.citrix.cloudbridge.video_sources+json

Request Payload: JSON

{"video_sources":{
"cachestatus": <string_value>,
"name": <string_value>
}}

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.video_sources+json

Response Payload: JSON

{"video_sources":{
"cachestatus": <string_value>,
"name": <string_value>
}}