localbreakoutsLBOIdDelete
Delete an existing LocalBreakout
/localbreakouts/{LBO_id}
Usage and SDK Samples
curl -X DELETE\
-H "apikey: [[apiKey]]"\
-H "Accept: application/json"\
"https://demo-eu05-prod.apigee.net/localbreakout/v1/localbreakouts/{LBO_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LocalBreakoutAPIDeleteOperationApi;
import java.io.File;
import java.util.*;
public class LocalBreakoutAPIDeleteOperationApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKey
ApiKeyAuth ApiKey = (ApiKeyAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.setApiKeyPrefix("Token");
LocalBreakoutAPIDeleteOperationApi apiInstance = new LocalBreakoutAPIDeleteOperationApi();
String lBOId = lBOId_example; // String | Identifier of the specific LBO to be retrieved or deleted
try {
ErrResponse result = apiInstance.localbreakoutsLBOIdDelete(lBOId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocalBreakoutAPIDeleteOperationApi#localbreakoutsLBOIdDelete");
e.printStackTrace();
}
}
}
import io.swagger.client.api.LocalBreakoutAPIDeleteOperationApi;
public class LocalBreakoutAPIDeleteOperationApiExample {
public static void main(String[] args) {
LocalBreakoutAPIDeleteOperationApi apiInstance = new LocalBreakoutAPIDeleteOperationApi();
String lBOId = lBOId_example; // String | Identifier of the specific LBO to be retrieved or deleted
try {
ErrResponse result = apiInstance.localbreakoutsLBOIdDelete(lBOId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocalBreakoutAPIDeleteOperationApi#localbreakoutsLBOIdDelete");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apikey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apikey"];
String *lBOId = lBOId_example; // Identifier of the specific LBO to be retrieved or deleted
LocalBreakoutAPIDeleteOperationApi *apiInstance = [[LocalBreakoutAPIDeleteOperationApi alloc] init];
// Delete an existing LocalBreakout
[apiInstance localbreakoutsLBOIdDeleteWith:lBOId
completionHandler: ^(ErrResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Tim5GEdgeCloudAcceleration = require('tim_5_g_edge_cloud_acceleration');
var defaultClient = Tim5GEdgeCloudAcceleration.ApiClient.instance;
// Configure API key authorization: ApiKey
var ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix['apikey'] = "Token"
var api = new Tim5GEdgeCloudAcceleration.LocalBreakoutAPIDeleteOperationApi()
var lBOId = lBOId_example; // {{String}} Identifier of the specific LBO to be retrieved or deleted
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.localbreakoutsLBOIdDelete(lBOId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class localbreakoutsLBOIdDeleteExample
{
public void main()
{
// Configure API key authorization: ApiKey
Configuration.Default.ApiKey.Add("apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("apikey", "Bearer");
var apiInstance = new LocalBreakoutAPIDeleteOperationApi();
var lBOId = lBOId_example; // String | Identifier of the specific LBO to be retrieved or deleted
try
{
// Delete an existing LocalBreakout
ErrResponse result = apiInstance.localbreakoutsLBOIdDelete(lBOId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling LocalBreakoutAPIDeleteOperationApi.localbreakoutsLBOIdDelete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apikey', 'Bearer');
$api_instance = new Swagger\Client\ApiLocalBreakoutAPIDeleteOperationApi();
$lBOId = lBOId_example; // String | Identifier of the specific LBO to be retrieved or deleted
try {
$result = $api_instance->localbreakoutsLBOIdDelete($lBOId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LocalBreakoutAPIDeleteOperationApi->localbreakoutsLBOIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LocalBreakoutAPIDeleteOperationApi;
# Configure API key authorization: ApiKey
$WWW::SwaggerClient::Configuration::api_key->{'apikey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apikey'} = "Bearer";
my $api_instance = WWW::SwaggerClient::LocalBreakoutAPIDeleteOperationApi->new();
my $lBOId = lBOId_example; # String | Identifier of the specific LBO to be retrieved or deleted
eval {
my $result = $api_instance->localbreakoutsLBOIdDelete(lBOId => $lBOId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling LocalBreakoutAPIDeleteOperationApi->localbreakoutsLBOIdDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKey
swagger_client.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apikey'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.LocalBreakoutAPIDeleteOperationApi()
lBOId = lBOId_example # String | Identifier of the specific LBO to be retrieved or deleted
try:
# Delete an existing LocalBreakout
api_response = api_instance.localbreakouts_lbo_id_delete(lBOId)
pprint(api_response)
except ApiException as e:
print("Exception when calling LocalBreakoutAPIDeleteOperationApi->localbreakoutsLBOIdDelete: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| LBO_id* |
String
Identifier of the specific LBO to be retrieved or deleted
Required
|
Responses
Status: 200 - The resource has been successfully deleted
{"status":"OK","message":"Deleted"}
Status: 404 - The specified resource was not found
{"status":"ERROR","message":"Resource not found"}
Status: 504 - Connection timeout towards backend service has occurred
{"status":"ERROR","message":"Backend connection timeout"}
