All URIs are relative to https://api.telnyx.com/v2
Method | HTTP request | Description |
---|---|---|
createGlobalIp | POST /global_ips | Create a Global IP |
createGlobalIpAssignment | POST /global_ip_assignments | Create a Global IP assignment |
createGlobalIpHealthCheck | POST /global_ip_health_checks | Create a Global IP health check |
deleteGlobalIp | DELETE /global_ips/{id} | Delete a Global IP |
deleteGlobalIpAssignment | DELETE /global_ip_assignments/{id} | Delete a Global IP assignment |
deleteGlobalIpHealthCheck | DELETE /global_ip_health_checks/{id} | Delete a Global IP health check |
getGlobalIp | GET /global_ips/{id} | Retrieve a Global IP |
getGlobalIpAssignment | GET /global_ip_assignments/{id} | Retrieve a Global IP |
getGlobalIpAssignmentHealth | GET /global_ip_assignment_health | |
getGlobalIpAssignmentUsage | GET /global_ip_assignments_usage | |
getGlobalIpHealthCheck | GET /global_ip_health_checks/{id} | Retrieve a Global IP health check |
getGlobalIpLatency | GET /global_ip_latency | |
getGlobalIpUsage | GET /global_ip_usage | |
listGlobalIpAllowedPorts | GET /global_ip_allowed_ports | List all Global IP Allowed Ports |
listGlobalIpAssignments | GET /global_ip_assignments | List all Global IP assignments |
listGlobalIpHealthCheckTypes | GET /global_ip_health_check_types | List all Global IP Health check types |
listGlobalIpHealthChecks | GET /global_ip_health_checks | List all Global IP health checks |
listGlobalIpProtocols | GET /global_ip_protocols | List all Global IP Protocols |
listGlobalIps | GET /global_ips | List all Global IPs |
updateGlobalIpAssignment | PATCH /global_ip_assignments/{id} | Update a Global IP assignment |
CreateGlobalIp202Response createGlobalIp(globalIP)
Create a Global IP
Create a Global IP.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
GlobalIP globalIP = new GlobalIP(); // GlobalIP |
try {
CreateGlobalIp202Response result = apiInstance.createGlobalIp(globalIP);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#createGlobalIp");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
globalIP | GlobalIP |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | Successful response | - |
422 | Unprocessable entity. Check the 'detail' field in response for details. | - |
0 | Unexpected error | - |
CreateGlobalIpAssignment202Response createGlobalIpAssignment(globalIpAssignment)
Create a Global IP assignment
Create a Global IP assignment.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
GlobalIpAssignment globalIpAssignment = new GlobalIpAssignment(); // GlobalIpAssignment |
try {
CreateGlobalIpAssignment202Response result = apiInstance.createGlobalIpAssignment(globalIpAssignment);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#createGlobalIpAssignment");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
globalIpAssignment | GlobalIpAssignment |
CreateGlobalIpAssignment202Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | Successful response | - |
422 | Unprocessable entity. Check the 'detail' field in response for details. | - |
0 | Unexpected error | - |
CreateGlobalIpHealthCheck202Response createGlobalIpHealthCheck(globalIPHealthCheck)
Create a Global IP health check
Create a Global IP health check.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
GlobalIPHealthCheck globalIPHealthCheck = new GlobalIPHealthCheck(); // GlobalIPHealthCheck |
try {
CreateGlobalIpHealthCheck202Response result = apiInstance.createGlobalIpHealthCheck(globalIPHealthCheck);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#createGlobalIpHealthCheck");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
globalIPHealthCheck | GlobalIPHealthCheck |
CreateGlobalIpHealthCheck202Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | Successful response | - |
422 | Unprocessable entity. Check the 'detail' field in response for details. | - |
0 | Unexpected error | - |
CreateGlobalIp202Response deleteGlobalIp(id)
Delete a Global IP
Delete a Global IP.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIp202Response result = apiInstance.deleteGlobalIp(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#deleteGlobalIp");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIpAssignment202Response deleteGlobalIpAssignment(id)
Delete a Global IP assignment
Delete a Global IP assignment.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIpAssignment202Response result = apiInstance.deleteGlobalIpAssignment(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#deleteGlobalIpAssignment");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateGlobalIpAssignment202Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIpHealthCheck202Response deleteGlobalIpHealthCheck(id)
Delete a Global IP health check
Delete a Global IP health check.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIpHealthCheck202Response result = apiInstance.deleteGlobalIpHealthCheck(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#deleteGlobalIpHealthCheck");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateGlobalIpHealthCheck202Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIp202Response getGlobalIp(id)
Retrieve a Global IP
Retrieve a Global IP.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIp202Response result = apiInstance.getGlobalIp(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIp");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIpAssignment202Response getGlobalIpAssignment(id)
Retrieve a Global IP
Retrieve a Global IP assignment.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIpAssignment202Response result = apiInstance.getGlobalIpAssignment(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpAssignment");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateGlobalIpAssignment202Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
GetGlobalIpAssignmentHealth200Response getGlobalIpAssignmentHealth(filterGlobalIpIdIn, filterGlobalIpAssignmentIdIn, filterTimestampGt, filterTimestampLt)
import java.time.OffsetDateTime;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
String filterGlobalIpIdIn = "filterGlobalIpIdIn_example"; // String | Filter by Global IP ID(s) separated by commas
String filterGlobalIpAssignmentIdIn = "filterGlobalIpAssignmentIdIn_example"; // String | Filter by Global IP Assignment ID(s) separated by commas
OffsetDateTime filterTimestampGt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp greater than
OffsetDateTime filterTimestampLt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp less than
try {
GetGlobalIpAssignmentHealth200Response result = apiInstance.getGlobalIpAssignmentHealth(filterGlobalIpIdIn, filterGlobalIpAssignmentIdIn, filterTimestampGt, filterTimestampLt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpAssignmentHealth");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filterGlobalIpIdIn | String | Filter by Global IP ID(s) separated by commas | [optional] |
filterGlobalIpAssignmentIdIn | String | Filter by Global IP Assignment ID(s) separated by commas | [optional] |
filterTimestampGt | OffsetDateTime | Filter by timestamp greater than | [optional] |
filterTimestampLt | OffsetDateTime | Filter by timestamp less than | [optional] |
GetGlobalIpAssignmentHealth200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
GetGlobalIpAssignmentUsage200Response getGlobalIpAssignmentUsage(filterGlobalIpAssignmentIdIn, filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt)
import java.time.OffsetDateTime;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
String filterGlobalIpAssignmentIdIn = "filterGlobalIpAssignmentIdIn_example"; // String | Filter by Global IP Assignment ID(s) separated by commas
String filterGlobalIpIdIn = "filterGlobalIpIdIn_example"; // String | Filter by Global IP ID(s), separated by commas
OffsetDateTime filterTimestampGt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp greater than
OffsetDateTime filterTimestampLt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp less than
try {
GetGlobalIpAssignmentUsage200Response result = apiInstance.getGlobalIpAssignmentUsage(filterGlobalIpAssignmentIdIn, filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpAssignmentUsage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filterGlobalIpAssignmentIdIn | String | Filter by Global IP Assignment ID(s) separated by commas | [optional] |
filterGlobalIpIdIn | String | Filter by Global IP ID(s), separated by commas | [optional] |
filterTimestampGt | OffsetDateTime | Filter by timestamp greater than | [optional] |
filterTimestampLt | OffsetDateTime | Filter by timestamp less than | [optional] |
GetGlobalIpAssignmentUsage200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIpHealthCheck202Response getGlobalIpHealthCheck(id)
Retrieve a Global IP health check
Retrieve a Global IP health check.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateGlobalIpHealthCheck202Response result = apiInstance.getGlobalIpHealthCheck(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpHealthCheck");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateGlobalIpHealthCheck202Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
GetGlobalIpLatency200Response getGlobalIpLatency(filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt)
import java.time.OffsetDateTime;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
String filterGlobalIpIdIn = "filterGlobalIpIdIn_example"; // String | Filter by Global IP ID(s) separated by commas
OffsetDateTime filterTimestampGt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp greater than
OffsetDateTime filterTimestampLt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp less than
try {
GetGlobalIpLatency200Response result = apiInstance.getGlobalIpLatency(filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpLatency");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filterGlobalIpIdIn | String | Filter by Global IP ID(s) separated by commas | [optional] |
filterTimestampGt | OffsetDateTime | Filter by timestamp greater than | [optional] |
filterTimestampLt | OffsetDateTime | Filter by timestamp less than | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
GetGlobalIpUsage200Response getGlobalIpUsage(filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt)
import java.time.OffsetDateTime;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
String filterGlobalIpIdIn = "filterGlobalIpIdIn_example"; // String | Filter by Global IP ID(s) separated by commas
OffsetDateTime filterTimestampGt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp greater than
OffsetDateTime filterTimestampLt = OffsetDateTime.parse("2019-01-01T00:00Z"); // OffsetDateTime | Filter by timestamp less than
try {
GetGlobalIpUsage200Response result = apiInstance.getGlobalIpUsage(filterGlobalIpIdIn, filterTimestampGt, filterTimestampLt);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#getGlobalIpUsage");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filterGlobalIpIdIn | String | Filter by Global IP ID(s) separated by commas | [optional] |
filterTimestampGt | OffsetDateTime | Filter by timestamp greater than | [optional] |
filterTimestampLt | OffsetDateTime | Filter by timestamp less than | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIpAllowedPorts200Response listGlobalIpAllowedPorts()
List all Global IP Allowed Ports
List all Global IP Allowed Ports
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
try {
ListGlobalIpAllowedPorts200Response result = apiInstance.listGlobalIpAllowedPorts();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIpAllowedPorts");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
ListGlobalIpAllowedPorts200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIpAssignments200Response listGlobalIpAssignments(pageNumber, pageSize)
List all Global IP assignments
List all Global IP assignments.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
try {
ListGlobalIpAssignments200Response result = apiInstance.listGlobalIpAssignments(pageNumber, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIpAssignments");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
ListGlobalIpAssignments200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIpHealthCheckTypes200Response listGlobalIpHealthCheckTypes()
List all Global IP Health check types
List all Global IP Health check types.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
try {
ListGlobalIpHealthCheckTypes200Response result = apiInstance.listGlobalIpHealthCheckTypes();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIpHealthCheckTypes");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
ListGlobalIpHealthCheckTypes200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIpHealthChecks200Response listGlobalIpHealthChecks(pageNumber, pageSize)
List all Global IP health checks
List all Global IP health checks.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
try {
ListGlobalIpHealthChecks200Response result = apiInstance.listGlobalIpHealthChecks(pageNumber, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIpHealthChecks");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
ListGlobalIpHealthChecks200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIpProtocols200Response listGlobalIpProtocols()
List all Global IP Protocols
List all Global IP Protocols
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
try {
ListGlobalIpProtocols200Response result = apiInstance.listGlobalIpProtocols();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIpProtocols");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
ListGlobalIpProtocols200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
ListGlobalIps200Response listGlobalIps(pageNumber, pageSize)
List all Global IPs
List all Global IPs.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
try {
ListGlobalIps200Response result = apiInstance.listGlobalIps(pageNumber, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#listGlobalIps");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |
CreateGlobalIpAssignment202Response updateGlobalIpAssignment(id, globalIpAssignmentUpdate)
Update a Global IP assignment
Update a Global IP assignment.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.GlobalIpsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
GlobalIpsApi apiInstance = new GlobalIpsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
GlobalIpAssignmentUpdate globalIpAssignmentUpdate = new GlobalIpAssignmentUpdate(); // GlobalIpAssignmentUpdate |
try {
CreateGlobalIpAssignment202Response result = apiInstance.updateGlobalIpAssignment(id, globalIpAssignmentUpdate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GlobalIpsApi#updateGlobalIpAssignment");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. | |
globalIpAssignmentUpdate | GlobalIpAssignmentUpdate |
CreateGlobalIpAssignment202Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
0 | Unexpected error | - |