getPorts
List of all Webex service portocol, port, and IP prefix
List of all Webex service portocol, port, and IP prefix rules. This does not include URLs.
/ports
Usage and SDK Samples
curl -X GET "https://info.net.infra.webex.com/v1/ports"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PortsApi;
import java.io.File;
import java.util.*;
public class PortsApiExample {
public static void main(String[] args) {
PortsApi apiInstance = new PortsApi();
try {
SchemaRules result = apiInstance.getPorts();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PortsApi#getPorts");
e.printStackTrace();
}
}
}
import io.swagger.client.api.PortsApi;
public class PortsApiExample {
public static void main(String[] args) {
PortsApi apiInstance = new PortsApi();
try {
SchemaRules result = apiInstance.getPorts();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PortsApi#getPorts");
e.printStackTrace();
}
}
}
PortsApi *apiInstance = [[PortsApi alloc] init];
// List of all Webex service portocol, port, and IP prefix
[apiInstance getPortsWithCompletionHandler:
^(SchemaRules output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WebexNetworkInformation = require('webex_network_information');
var api = new WebexNetworkInformation.PortsApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getPorts(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getPortsExample
{
public void main()
{
var apiInstance = new PortsApi();
try
{
// List of all Webex service portocol, port, and IP prefix
SchemaRules result = apiInstance.getPorts();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling PortsApi.getPorts: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\PortsApi();
try {
$result = $api_instance->getPorts();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PortsApi->getPorts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PortsApi;
my $api_instance = WWW::SwaggerClient::PortsApi->new();
eval {
my $result = $api_instance->getPorts();
print Dumper($result);
};
if ($@) {
warn "Exception when calling PortsApi->getPorts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.PortsApi()
try:
# List of all Webex service portocol, port, and IP prefix
api_response = api_instance.get_ports()
pprint(api_response)
except ApiException as e:
print("Exception when calling PortsApi->getPorts: %s\n" % e)