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 classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectSubnetApi()
val subnetCreateObjectV1Request : SubnetCreateObjectV1Request = // SubnetCreateObjectV1Request |
try {
val result : SubnetCreateObjectV1Response = apiInstance.subnetCreateObjectV1(subnetCreateObjectV1Request)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectSubnetApi#subnetCreateObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectSubnetApi#subnetCreateObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
subnetCreateObjectV1Request | SubnetCreateObjectV1Request |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
SubnetDeleteObjectV1Response subnetDeleteObjectV1(pkiSubnetID)
Delete an existing Subnet
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectSubnetApi()
val pkiSubnetID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Subnet
try {
val result : SubnetDeleteObjectV1Response = apiInstance.subnetDeleteObjectV1(pkiSubnetID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectSubnetApi#subnetDeleteObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectSubnetApi#subnetDeleteObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | kotlin.Int | The unique ID of the Subnet |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json
SubnetEditObjectV1Response subnetEditObjectV1(pkiSubnetID, subnetEditObjectV1Request)
Edit an existing Subnet
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectSubnetApi()
val pkiSubnetID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Subnet
val subnetEditObjectV1Request : SubnetEditObjectV1Request = // SubnetEditObjectV1Request |
try {
val result : SubnetEditObjectV1Response = apiInstance.subnetEditObjectV1(pkiSubnetID, subnetEditObjectV1Request)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectSubnetApi#subnetEditObjectV1")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectSubnetApi#subnetEditObjectV1")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | kotlin.Int | The unique ID of the Subnet | |
subnetEditObjectV1Request | SubnetEditObjectV1Request |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: application/json
- Accept: application/json
SubnetGetObjectV2Response subnetGetObjectV2(pkiSubnetID)
Retrieve an existing Subnet
// Import classes:
//import eZmaxApi.infrastructure.*
//import eZmaxApi.models.*
val apiInstance = ObjectSubnetApi()
val pkiSubnetID : kotlin.Int = 56 // kotlin.Int | The unique ID of the Subnet
try {
val result : SubnetGetObjectV2Response = apiInstance.subnetGetObjectV2(pkiSubnetID)
println(result)
} catch (e: ClientException) {
println("4xx response calling ObjectSubnetApi#subnetGetObjectV2")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ObjectSubnetApi#subnetGetObjectV2")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pkiSubnetID | kotlin.Int | The unique ID of the Subnet |
Configure Authorization: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = ""
- Content-Type: Not defined
- Accept: application/json