EMnify Rest API
- API version: 1.3
Rest API resources of the EMnify System.
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.emnify.sdk</groupId>
<artifactId>emnify-api</artifactId>
<version>1.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
compile "com.emnify.sdk:emnify-api:1.1.0-SNAPSHOT"At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/emnify-api-1.1.0-SNAPSHOT.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
// Import classes:
import com.emnify.sdk.ApiClient;
import com.emnify.sdk.ApiException;
import com.emnify.sdk.Configuration;
import com.emnify.sdk.models.*;
import com.emnify.sdk.api.AuthenticationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://cdn.emnify.net");
AuthenticationApi apiInstance = new AuthenticationApi(defaultClient);
Authentication authentication = new Authentication(); // Authentication | Authentication using Application Tokens or user/password combination
try {
AuthenticationResponse result = apiInstance.authenticate(authentication);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authenticate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to https://cdn.emnify.net
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthenticationApi | authenticate | POST /api/v1/authenticate | Retrieve Authentication Token |
| EndpointApi | createEndpoint | POST /api/v1/endpoint | Create Endpoint |
| EndpointApi | deleteEndpointDataQuotaById | DELETE /api/v1/endpoint/{endpoint_id}/quota/data | Remove Data Quota |
| EndpointApi | endpointQuotaDataByEndpointIdGet | GET /api/v1/endpoint/{endpoint_id}/quota/data | Retrieve Data Quota details |
| EndpointApi | endpointQuotaDataByEndpointIdPost | POST /api/v1/endpoint/{endpoint_id}/quota/data | Set Data Quota |
| EndpointApi | getEndpoints | GET /api/v1/endpoint | List Endpoints |
- ActionOnExhaustion
- Authentication
- AuthenticationResponse
- ChangePassword422response
- ChangeQuota422Response
- Endpoint
- EndpointQuota
- EndpointStatus
- InlineResponse404
- IpAddressSpace
- Model40xResponse
- QuotaStatus
- ServiceProfile
- Sim
- TariffProfile
Authentication schemes defined for the API:
- Type: HTTP basic authentication
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.