apiAtlasV2NotificationTopicTopicNamePost
Ingest
/api/atlas/v2/notification/topic/{topicName}
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"http://localhost/api/atlas/v2/notification/topic/{topicName}" \
-d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AtlasRESTIngestionApi;
import java.io.File;
import java.util.*;
public class AtlasRESTIngestionApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AtlasRESTIngestionApi apiInstance = new AtlasRESTIngestionApi();
String topicName = topicName_example; // String |
String body = body_example; // String |
try {
oas_any_type_not_mapped result = apiInstance.apiAtlasV2NotificationTopicTopicNamePost(topicName, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AtlasRESTIngestionApi#apiAtlasV2NotificationTopicTopicNamePost");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String topicName = new String(); // String |
final String body = new String(); // String |
try {
final result = await api_instance.apiAtlasV2NotificationTopicTopicNamePost(topicName, body);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->apiAtlasV2NotificationTopicTopicNamePost: $e\n');
}
import org.openapitools.client.api.AtlasRESTIngestionApi;
public class AtlasRESTIngestionApiExample {
public static void main(String[] args) {
AtlasRESTIngestionApi apiInstance = new AtlasRESTIngestionApi();
String topicName = topicName_example; // String |
String body = body_example; // String |
try {
oas_any_type_not_mapped result = apiInstance.apiAtlasV2NotificationTopicTopicNamePost(topicName, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AtlasRESTIngestionApi#apiAtlasV2NotificationTopicTopicNamePost");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AtlasRESTIngestionApi *apiInstance = [[AtlasRESTIngestionApi alloc] init];
String *topicName = topicName_example; // (default to null)
String *body = body_example; //
// Ingest
[apiInstance apiAtlasV2NotificationTopicTopicNamePostWith:topicName
body:body
completionHandler: ^(oas_any_type_not_mapped output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var UdfMetadataRegistryApi = require('udf_metadata_registry_api');
// Create an instance of the API class
var api = new UdfMetadataRegistryApi.AtlasRESTIngestionApi()
var topicName = topicName_example; // {String}
var body = body_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiAtlasV2NotificationTopicTopicNamePost(topicName, body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class apiAtlasV2NotificationTopicTopicNamePostExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AtlasRESTIngestionApi();
var topicName = topicName_example; // String | (default to null)
var body = body_example; // String |
try {
// Ingest
oas_any_type_not_mapped result = apiInstance.apiAtlasV2NotificationTopicTopicNamePost(topicName, body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AtlasRESTIngestionApi.apiAtlasV2NotificationTopicTopicNamePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AtlasRESTIngestionApi();
$topicName = topicName_example; // String |
$body = body_example; // String |
try {
$result = $api_instance->apiAtlasV2NotificationTopicTopicNamePost($topicName, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AtlasRESTIngestionApi->apiAtlasV2NotificationTopicTopicNamePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AtlasRESTIngestionApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AtlasRESTIngestionApi->new();
my $topicName = topicName_example; # String |
my $body = WWW::OPenAPIClient::Object::String->new(); # String |
eval {
my $result = $api_instance->apiAtlasV2NotificationTopicTopicNamePost(topicName => $topicName, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AtlasRESTIngestionApi->apiAtlasV2NotificationTopicTopicNamePost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.AtlasRESTIngestionApi()
topicName = topicName_example # String | (default to null)
body = body_example # String |
try:
# Ingest
api_response = api_instance.api_atlas_v2_notification_topic_topic_name_post(topicName, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AtlasRESTIngestionApi->apiAtlasV2NotificationTopicTopicNamePost: %s\n" % e)
extern crate AtlasRESTIngestionApi;
pub fn main() {
let topicName = topicName_example; // String
let body = body_example; // String
let mut context = AtlasRESTIngestionApi::Context::default();
let result = client.apiAtlasV2NotificationTopicTopicNamePost(topicName, body, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| topicName* |
String
Required
|
| Name | Description |
|---|---|
| body * |