checkDatacenterProxiesStatus
Check datacenter proxies service status
It returns the current status of the service, including the total number of datacenter proxies available and grouped by country.
/v2/datacenter/service_status
Usage and SDK Samples
curl -X GET\
-H "X-RapidAPI-Key: [[apiKey]]"\
-H "Accept: application/json"\
"https://ephemeral-proxies.p.rapidapi.com/v2/datacenter/service_status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DatacenterApi;
import java.io.File;
import java.util.*;
public class DatacenterApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DatacenterApi apiInstance = new DatacenterApi();
try {
ServiceStatus result = apiInstance.checkDatacenterProxiesStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatacenterApi#checkDatacenterProxiesStatus");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DatacenterApi;
public class DatacenterApiExample {
public static void main(String[] args) {
DatacenterApi apiInstance = new DatacenterApi();
try {
ServiceStatus result = apiInstance.checkDatacenterProxiesStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatacenterApi#checkDatacenterProxiesStatus");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-RapidAPI-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-RapidAPI-Key"];
DatacenterApi *apiInstance = [[DatacenterApi alloc] init];
// Check datacenter proxies service status
[apiInstance checkDatacenterProxiesStatusWithCompletionHandler:
^(ServiceStatus output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EphemeralProxies = require('ephemeral_proxies');
var defaultClient = EphemeralProxies.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-RapidAPI-Key'] = "Token"
var api = new EphemeralProxies.DatacenterApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.checkDatacenterProxiesStatus(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class checkDatacenterProxiesStatusExample
{
public void main()
{
// Configure API key authorization: ApiKeyAuth
Configuration.Default.ApiKey.Add("X-RapidAPI-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-RapidAPI-Key", "Bearer");
var apiInstance = new DatacenterApi();
try
{
// Check datacenter proxies service status
ServiceStatus result = apiInstance.checkDatacenterProxiesStatus();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DatacenterApi.checkDatacenterProxiesStatus: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-RapidAPI-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-RapidAPI-Key', 'Bearer');
$api_instance = new Swagger\Client\ApiDatacenterApi();
try {
$result = $api_instance->checkDatacenterProxiesStatus();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DatacenterApi->checkDatacenterProxiesStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DatacenterApi;
# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-RapidAPI-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-RapidAPI-Key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::DatacenterApi->new();
eval {
my $result = $api_instance->checkDatacenterProxiesStatus();
print Dumper($result);
};
if ($@) {
warn "Exception when calling DatacenterApi->checkDatacenterProxiesStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-RapidAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-RapidAPI-Key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.DatacenterApi()
try:
# Check datacenter proxies service status
api_response = api_instance.check_datacenter_proxies_status()
pprint(api_response)
except ApiException as e:
print("Exception when calling DatacenterApi->checkDatacenterProxiesStatus: %s\n" % e)