deleteConfigurationOverrides
delete all configuration overrides for a given device from a given source
/configurationOverrides/{serialNumber}
Usage and SDK Samples
curl -X DELETE \
-H "X-API-KEY: [[apiKey]]" \
-H "Authorization: Bearer [[accessToken]]" \
"https://localhost:16005/api/v1/configurationOverrides/{serialNumber}?source=source_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConfigurationOverridesApi;
import java.io.File;
import java.util.*;
public class ConfigurationOverridesApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
// Configure Bearer (JWT) access token for authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
ConfigurationOverridesApi apiInstance = new ConfigurationOverridesApi();
String serialNumber = serialNumber_example; // String |
String source = source_example; // String |
try {
apiInstance.deleteConfigurationOverrides(serialNumber, source);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationOverridesApi#deleteConfigurationOverrides");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.ConfigurationOverridesApi;
public class ConfigurationOverridesApiExample {
public static void main(String[] args) {
ConfigurationOverridesApi apiInstance = new ConfigurationOverridesApi();
String serialNumber = serialNumber_example; // String |
String source = source_example; // String |
try {
apiInstance.deleteConfigurationOverrides(serialNumber, source);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationOverridesApi#deleteConfigurationOverrides");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
// Configure Bearer (JWT) access token for authorization: bearerAuth
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
ConfigurationOverridesApi *apiInstance = [[ConfigurationOverridesApi alloc] init];
String *serialNumber = serialNumber_example; // (default to null)
String *source = source_example; // (default to null)
// delete all configuration overrides for a given device from a given source
[apiInstance deleteConfigurationOverridesWith:serialNumber
source:source
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenWiFiProvisioningModel = require('open_wi_fi_provisioning_model');
var defaultClient = OpenWiFiProvisioningModel.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token";
// Configure Bearer (JWT) access token for authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new OpenWiFiProvisioningModel.ConfigurationOverridesApi()
var serialNumber = serialNumber_example; // {String}
var source = source_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteConfigurationOverrides(serialNumber, source, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class deleteConfigurationOverridesExample
{
public void main()
{
// Configure API key authorization: ApiKeyAuth
Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
// Configure Bearer (JWT) access token for authorization: bearerAuth
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new ConfigurationOverridesApi();
var serialNumber = serialNumber_example; // String | (default to null)
var source = source_example; // String | (default to null)
try {
// delete all configuration overrides for a given device from a given source
apiInstance.deleteConfigurationOverrides(serialNumber, source);
} catch (Exception e) {
Debug.Print("Exception when calling ConfigurationOverridesApi.deleteConfigurationOverrides: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// Configure Bearer (JWT) access token for authorization: bearerAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConfigurationOverridesApi();
$serialNumber = serialNumber_example; // String |
$source = source_example; // String |
try {
$api_instance->deleteConfigurationOverrides($serialNumber, $source);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationOverridesApi->deleteConfigurationOverrides: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConfigurationOverridesApi;
# Configure API key authorization: ApiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
# Configure Bearer (JWT) access token for authorization: bearerAuth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConfigurationOverridesApi->new();
my $serialNumber = serialNumber_example; # String |
my $source = source_example; # String |
eval {
$api_instance->deleteConfigurationOverrides(serialNumber => $serialNumber, source => $source);
};
if ($@) {
warn "Exception when calling ConfigurationOverridesApi->deleteConfigurationOverrides: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyAuth
openapi_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
# Configure Bearer (JWT) access token for authorization: bearerAuth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.ConfigurationOverridesApi()
serialNumber = serialNumber_example # String | (default to null)
source = source_example # String | (default to null)
try:
# delete all configuration overrides for a given device from a given source
api_instance.delete_configuration_overrides(serialNumber, source)
except ApiException as e:
print("Exception when calling ConfigurationOverridesApi->deleteConfigurationOverrides: %s\n" % e)
extern crate ConfigurationOverridesApi;
pub fn main() {
let serialNumber = serialNumber_example; // String
let source = source_example; // String
let mut context = ConfigurationOverridesApi::Context::default();
let result = client.deleteConfigurationOverrides(serialNumber, source, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
serialNumber* |
String
Required
|
Name | Description |
---|---|
source* |
String
Required
|