import 'package:openapi/api.dart';
All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
subnetCreateObjectV1 | POST /1/object/subnet | Create a new Subnet |
subnetDeleteObjectV1 | DELETE /1/object/subnet/{pkiSubnetID} | Delete an existing Subnet |
subnetEditObjectV1 | PUT /1/object/subnet/{pkiSubnetID} | Edit an existing Subnet |
subnetGetObjectV2 | GET /2/object/subnet/{pkiSubnetID} | Retrieve an existing Subnet |
SubnetCreateObjectV1Response subnetCreateObjectV1(subnetCreateObjectV1Request)
Create a new Subnet
The endpoint allows to create one or many elements at once.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectSubnetApi();
final subnetCreateObjectV1Request = SubnetCreateObjectV1Request(); // SubnetCreateObjectV1Request |
try {
final result = api_instance.subnetCreateObjectV1(subnetCreateObjectV1Request);
print(result);
} catch (e) {
print('Exception when calling ObjectSubnetApi->subnetCreateObjectV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
subnetCreateObjectV1Request | SubnetCreateObjectV1Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubnetDeleteObjectV1Response subnetDeleteObjectV1(pkiSubnetID)
Delete an existing Subnet
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectSubnetApi();
final pkiSubnetID = 56; // int | The unique ID of the Subnet
try {
final result = api_instance.subnetDeleteObjectV1(pkiSubnetID);
print(result);
} catch (e) {
print('Exception when calling ObjectSubnetApi->subnetDeleteObjectV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | int | The unique ID of the Subnet |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubnetEditObjectV1Response subnetEditObjectV1(pkiSubnetID, subnetEditObjectV1Request)
Edit an existing Subnet
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectSubnetApi();
final pkiSubnetID = 56; // int | The unique ID of the Subnet
final subnetEditObjectV1Request = SubnetEditObjectV1Request(); // SubnetEditObjectV1Request |
try {
final result = api_instance.subnetEditObjectV1(pkiSubnetID, subnetEditObjectV1Request);
print(result);
} catch (e) {
print('Exception when calling ObjectSubnetApi->subnetEditObjectV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | int | The unique ID of the Subnet | |
subnetEditObjectV1Request | SubnetEditObjectV1Request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubnetGetObjectV2Response subnetGetObjectV2(pkiSubnetID)
Retrieve an existing Subnet
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectSubnetApi();
final pkiSubnetID = 56; // int | The unique ID of the Subnet
try {
final result = api_instance.subnetGetObjectV2(pkiSubnetID);
print(result);
} catch (e) {
print('Exception when calling ObjectSubnetApi->subnetGetObjectV2: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | int | The unique ID of the Subnet |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]