Skip to main content
Skip table of contents

Checking the availability of the media server

Checking the availability of the media server

This request checks whether the media server is accessible over the network at the specified address with the port provided in the request. It is used in the process of Create a media server

POST /api/admin/v1/servers/check

Method parameters

string type, server type


string internal_domain, address


int internal, internal port


sting token, media server token (required for servers with the type media_server_v2)


string schema, URL schema

200 OK

Successful response or error

JSON
{
    "status": "ok | error"
}

401 Unauthorized

Authorization token is not provided or is invalid. Obtaining a token

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/servers/check' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "type": "string",
    "internal_domain": "string",
    "internal": 0,
    "token": "sting",
    "schema": "string"
}'
PHP
PHP
$data = array (
  'type' => 'string',
  'internal_domain' => 'string',
  'internal' => 0,
  'token' => 'sting',
  'schema' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/servers/check', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.