curl -X POST\
-H "x-api-key: [[apiKey]]"\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"https://api.secberus.io//violations/bin?tag=&policy_id=&status=¬_before=&datasource_type=&category_id=&resource_data=&compliance_id=&datasource_id=&suppressed=&resource_id=&category_name=&severity=¬_after="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
// Configure API key authorization: users
ApiKeyAuth users = (ApiKeyAuth) defaultClient.getAuthentication("users");
users.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//users.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
String tag = tag_example; // String |
String policyId = policyId_example; // String |
String status = status_example; // String |
String notBefore = notBefore_example; // String |
String datasourceType = datasourceType_example; // String |
String categoryId = categoryId_example; // String |
String resourceData = resourceData_example; // String |
String complianceId = complianceId_example; // String |
String datasourceId = datasourceId_example; // String |
String suppressed = suppressed_example; // String |
String resourceId = resourceId_example; // String |
String categoryName = categoryName_example; // String |
String severity = severity_example; // String |
String notAfter = notAfter_example; // String |
try {
Empty result = apiInstance.binViolations(tag, policyId, status, notBefore, datasourceType, categoryId, resourceData, complianceId, datasourceId, suppressed, resourceId, categoryName, severity, notAfter);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#binViolations");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String tag = tag_example; // String |
String policyId = policyId_example; // String |
String status = status_example; // String |
String notBefore = notBefore_example; // String |
String datasourceType = datasourceType_example; // String |
String categoryId = categoryId_example; // String |
String resourceData = resourceData_example; // String |
String complianceId = complianceId_example; // String |
String datasourceId = datasourceId_example; // String |
String suppressed = suppressed_example; // String |
String resourceId = resourceId_example; // String |
String categoryName = categoryName_example; // String |
String severity = severity_example; // String |
String notAfter = notAfter_example; // String |
try {
Empty result = apiInstance.binViolations(tag, policyId, status, notBefore, datasourceType, categoryId, resourceData, complianceId, datasourceId, suppressed, resourceId, categoryName, severity, notAfter);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#binViolations");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[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 API key authorization: (authentication scheme: users)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *tag = tag_example; // (optional)
String *policyId = policyId_example; // (optional)
String *status = status_example; // (optional)
String *notBefore = notBefore_example; // (optional)
String *datasourceType = datasourceType_example; // (optional)
String *categoryId = categoryId_example; // (optional)
String *resourceData = resourceData_example; // (optional)
String *complianceId = complianceId_example; // (optional)
String *datasourceId = datasourceId_example; // (optional)
String *suppressed = suppressed_example; // (optional)
String *resourceId = resourceId_example; // (optional)
String *categoryName = categoryName_example; // (optional)
String *severity = severity_example; // (optional)
String *notAfter = notAfter_example; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance binViolationsWith:tag
policyId:policyId
status:status
notBefore:notBefore
datasourceType:datasourceType
categoryId:categoryId
resourceData:resourceData
complianceId:complianceId
datasourceId:datasourceId
suppressed:suppressed
resourceId:resourceId
categoryName:categoryName
severity:severity
notAfter:notAfter
completionHandler: ^(Empty output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SecberusApiGw = require('secberus_api_gw');
var defaultClient = SecberusApiGw.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['x-api-key'] = "Token"
// Configure API key authorization: users
var users = defaultClient.authentications['users'];
users.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//users.apiKeyPrefix['Authorization'] = "Token"
var api = new SecberusApiGw.DefaultApi()
var opts = {
'tag': tag_example, // {{String}}
'policyId': policyId_example, // {{String}}
'status': status_example, // {{String}}
'notBefore': notBefore_example, // {{String}}
'datasourceType': datasourceType_example, // {{String}}
'categoryId': categoryId_example, // {{String}}
'resourceData': resourceData_example, // {{String}}
'complianceId': complianceId_example, // {{String}}
'datasourceId': datasourceId_example, // {{String}}
'suppressed': suppressed_example, // {{String}}
'resourceId': resourceId_example, // {{String}}
'categoryName': categoryName_example, // {{String}}
'severity': severity_example, // {{String}}
'notAfter': notAfter_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.binViolations(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class binViolationsExample
{
public void main()
{
// Configure API key authorization: api_key
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 API key authorization: users
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new DefaultApi();
var tag = tag_example; // String | (optional)
var policyId = policyId_example; // String | (optional)
var status = status_example; // String | (optional)
var notBefore = notBefore_example; // String | (optional)
var datasourceType = datasourceType_example; // String | (optional)
var categoryId = categoryId_example; // String | (optional)
var resourceData = resourceData_example; // String | (optional)
var complianceId = complianceId_example; // String | (optional)
var datasourceId = datasourceId_example; // String | (optional)
var suppressed = suppressed_example; // String | (optional)
var resourceId = resourceId_example; // String | (optional)
var categoryName = categoryName_example; // String | (optional)
var severity = severity_example; // String | (optional)
var notAfter = notAfter_example; // String | (optional)
try
{
Empty result = apiInstance.binViolations(tag, policyId, status, notBefore, datasourceType, categoryId, resourceData, complianceId, datasourceId, suppressed, resourceId, categoryName, severity, notAfter);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.binViolations: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure API key authorization: users
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\ApiDefaultApi();
$tag = tag_example; // String |
$policyId = policyId_example; // String |
$status = status_example; // String |
$notBefore = notBefore_example; // String |
$datasourceType = datasourceType_example; // String |
$categoryId = categoryId_example; // String |
$resourceData = resourceData_example; // String |
$complianceId = complianceId_example; // String |
$datasourceId = datasourceId_example; // String |
$suppressed = suppressed_example; // String |
$resourceId = resourceId_example; // String |
$categoryName = categoryName_example; // String |
$severity = severity_example; // String |
$notAfter = notAfter_example; // String |
try {
$result = $api_instance->binViolations($tag, $policyId, $status, $notBefore, $datasourceType, $categoryId, $resourceData, $complianceId, $datasourceId, $suppressed, $resourceId, $categoryName, $severity, $notAfter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->binViolations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'x-api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-api-key'} = "Bearer";
# Configure API key authorization: users
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $tag = tag_example; # String |
my $policyId = policyId_example; # String |
my $status = status_example; # String |
my $notBefore = notBefore_example; # String |
my $datasourceType = datasourceType_example; # String |
my $categoryId = categoryId_example; # String |
my $resourceData = resourceData_example; # String |
my $complianceId = complianceId_example; # String |
my $datasourceId = datasourceId_example; # String |
my $suppressed = suppressed_example; # String |
my $resourceId = resourceId_example; # String |
my $categoryName = categoryName_example; # String |
my $severity = severity_example; # String |
my $notAfter = notAfter_example; # String |
eval {
my $result = $api_instance->binViolations(tag => $tag, policyId => $policyId, status => $status, notBefore => $notBefore, datasourceType => $datasourceType, categoryId => $categoryId, resourceData => $resourceData, complianceId => $complianceId, datasourceId => $datasourceId, suppressed => $suppressed, resourceId => $resourceId, categoryName => $categoryName, severity => $severity, notAfter => $notAfter);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->binViolations: $@\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: api_key
swagger_client.configuration.api_key['x-api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Configure API key authorization: users
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
tag = tag_example # String | (optional)
policyId = policyId_example # String | (optional)
status = status_example # String | (optional)
notBefore = notBefore_example # String | (optional)
datasourceType = datasourceType_example # String | (optional)
categoryId = categoryId_example # String | (optional)
resourceData = resourceData_example # String | (optional)
complianceId = complianceId_example # String | (optional)
datasourceId = datasourceId_example # String | (optional)
suppressed = suppressed_example # String | (optional)
resourceId = resourceId_example # String | (optional)
categoryName = categoryName_example # String | (optional)
severity = severity_example # String | (optional)
notAfter = notAfter_example # String | (optional)
try:
api_response = api_instance.bin_violations(tag=tag, policyId=policyId, status=status, notBefore=notBefore, datasourceType=datasourceType, categoryId=categoryId, resourceData=resourceData, complianceId=complianceId, datasourceId=datasourceId, suppressed=suppressed, resourceId=resourceId, categoryName=categoryName, severity=severity, notAfter=notAfter)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->binViolations: %s\n" % e)