Topology Exposure and Inventory API

Classifiers

updateClassifier

Update entities and/or relationships with classifier(s).

Update entities and/or relationships with classifier(s). The sum of the given entityIds and relationshipIds cannot exceed 100 by default.


/classifiers

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/problem+json" \
 -H "Content-Type: application/json" \
 "https://localhost/topology-inventory/v1alpha11/classifiers" \
 -d '{
  "classifiers" : [ "classifiers", "classifiers" ],
  "relationshipIds" : [ "relationshipIds", "relationshipIds" ],
  "operation" : "merge",
  "entityIds" : [ "entityIds", "entityIds" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClassifiersApi;

import java.io.File;
import java.util.*;

public class ClassifiersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ClassifiersApi apiInstance = new ClassifiersApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Classifier classifier = ; // Classifier | 

        try {
            apiInstance.updateClassifier(accept, contentType, classifier);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClassifiersApi#updateClassifier");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String contentType = new String(); // String | 
final Classifier classifier = new Classifier(); // Classifier | 

try {
    final result = await api_instance.updateClassifier(accept, contentType, classifier);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->updateClassifier: $e\n');
}

import org.openapitools.client.api.ClassifiersApi;

public class ClassifiersApiExample {
    public static void main(String[] args) {
        ClassifiersApi apiInstance = new ClassifiersApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Classifier classifier = ; // Classifier | 

        try {
            apiInstance.updateClassifier(accept, contentType, classifier);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClassifiersApi#updateClassifier");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ClassifiersApi *apiInstance = [[ClassifiersApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *contentType = application/json; //  (default to application/json)
Classifier *classifier = ; // 

// Update entities and/or relationships with classifier(s).
[apiInstance updateClassifierWith:accept
    contentType:contentType
    classifier:classifier
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.ClassifiersApi()
var accept = application/json; // {String} 
var contentType = application/json; // {String} 
var classifier = ; // {Classifier} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateClassifier(accept, contentType, classifier, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateClassifierExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ClassifiersApi();
            var accept = application/json;  // String |  (default to application/json)
            var contentType = application/json;  // String |  (default to application/json)
            var classifier = new Classifier(); // Classifier | 

            try {
                // Update entities and/or relationships with classifier(s).
                apiInstance.updateClassifier(accept, contentType, classifier);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClassifiersApi.updateClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ClassifiersApi();
$accept = application/json; // String | 
$contentType = application/json; // String | 
$classifier = ; // Classifier | 

try {
    $api_instance->updateClassifier($accept, $contentType, $classifier);
} catch (Exception $e) {
    echo 'Exception when calling ClassifiersApi->updateClassifier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ClassifiersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ClassifiersApi->new();
my $accept = application/json; # String | 
my $contentType = application/json; # String | 
my $classifier = WWW::OPenAPIClient::Object::Classifier->new(); # Classifier | 

eval {
    $api_instance->updateClassifier(accept => $accept, contentType => $contentType, classifier => $classifier);
};
if ($@) {
    warn "Exception when calling ClassifiersApi->updateClassifier: $@\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.ClassifiersApi()
accept = application/json # String |  (default to application/json)
contentType = application/json # String |  (default to application/json)
classifier =  # Classifier | 

try:
    # Update entities and/or relationships with classifier(s).
    api_instance.update_classifier(accept, contentType, classifier)
except ApiException as e:
    print("Exception when calling ClassifiersApi->updateClassifier: %s\n" % e)
extern crate ClassifiersApi;

pub fn main() {
    let accept = application/json; // String
    let contentType = application/json; // String
    let classifier = ; // Classifier

    let mut context = ClassifiersApi::Context::default();
    let result = client.updateClassifier(accept, contentType, classifier, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Content-Type*
String
Required
Body parameters
Name Description
classifier *

Responses


Decorators

updateDecorator

Update entities and/or relationships with decorator(s).

Update entities and/or relationships with decorator(s). The sum of the given entityIds and relationshipIds cannot exceed 100 by default.


/decorators

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/problem+json" \
 -H "Content-Type: application/json" \
 "https://localhost/topology-inventory/v1alpha11/decorators" \
 -d '{
  "decorators" : {
    "key" : ""
  },
  "relationshipIds" : [ "relationshipIds", "relationshipIds" ],
  "operation" : "merge",
  "entityIds" : [ "entityIds", "entityIds" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DecoratorsApi;

import java.io.File;
import java.util.*;

public class DecoratorsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DecoratorsApi apiInstance = new DecoratorsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Decorator decorator = ; // Decorator | 

        try {
            apiInstance.updateDecorator(accept, contentType, decorator);
        } catch (ApiException e) {
            System.err.println("Exception when calling DecoratorsApi#updateDecorator");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String contentType = new String(); // String | 
final Decorator decorator = new Decorator(); // Decorator | 

try {
    final result = await api_instance.updateDecorator(accept, contentType, decorator);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->updateDecorator: $e\n');
}

import org.openapitools.client.api.DecoratorsApi;

public class DecoratorsApiExample {
    public static void main(String[] args) {
        DecoratorsApi apiInstance = new DecoratorsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Decorator decorator = ; // Decorator | 

        try {
            apiInstance.updateDecorator(accept, contentType, decorator);
        } catch (ApiException e) {
            System.err.println("Exception when calling DecoratorsApi#updateDecorator");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DecoratorsApi *apiInstance = [[DecoratorsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *contentType = application/json; //  (default to application/json)
Decorator *decorator = ; // 

// Update entities and/or relationships with decorator(s).
[apiInstance updateDecoratorWith:accept
    contentType:contentType
    decorator:decorator
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.DecoratorsApi()
var accept = application/json; // {String} 
var contentType = application/json; // {String} 
var decorator = ; // {Decorator} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateDecorator(accept, contentType, decorator, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateDecoratorExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DecoratorsApi();
            var accept = application/json;  // String |  (default to application/json)
            var contentType = application/json;  // String |  (default to application/json)
            var decorator = new Decorator(); // Decorator | 

            try {
                // Update entities and/or relationships with decorator(s).
                apiInstance.updateDecorator(accept, contentType, decorator);
            } catch (Exception e) {
                Debug.Print("Exception when calling DecoratorsApi.updateDecorator: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DecoratorsApi();
$accept = application/json; // String | 
$contentType = application/json; // String | 
$decorator = ; // Decorator | 

try {
    $api_instance->updateDecorator($accept, $contentType, $decorator);
} catch (Exception $e) {
    echo 'Exception when calling DecoratorsApi->updateDecorator: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DecoratorsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DecoratorsApi->new();
my $accept = application/json; # String | 
my $contentType = application/json; # String | 
my $decorator = WWW::OPenAPIClient::Object::Decorator->new(); # Decorator | 

eval {
    $api_instance->updateDecorator(accept => $accept, contentType => $contentType, decorator => $decorator);
};
if ($@) {
    warn "Exception when calling DecoratorsApi->updateDecorator: $@\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.DecoratorsApi()
accept = application/json # String |  (default to application/json)
contentType = application/json # String |  (default to application/json)
decorator =  # Decorator | 

try:
    # Update entities and/or relationships with decorator(s).
    api_instance.update_decorator(accept, contentType, decorator)
except ApiException as e:
    print("Exception when calling DecoratorsApi->updateDecorator: %s\n" % e)
extern crate DecoratorsApi;

pub fn main() {
    let accept = application/json; // String
    let contentType = application/json; // String
    let decorator = ; // Decorator

    let mut context = DecoratorsApi::Context::default();
    let result = client.updateDecorator(accept, contentType, decorator, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Content-Type*
String
Required
Body parameters
Name Description
decorator *

Responses


EntitiesAndRelationships

getAllDomains

Get all the available topology domains.

Get all the available topology domains.


/domains

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains?offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            Domains result = apiInstance.getAllDomains(accept, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getAllDomains");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getAllDomains(accept, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAllDomains: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            Domains result = apiInstance.getAllDomains(accept, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getAllDomains");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all the available topology domains.
[apiInstance getAllDomainsWith:accept
    offset:offset
    limit:limit
              completionHandler: ^(Domains output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var opts = {
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllDomains(accept, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAllDomainsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all the available topology domains.
                Domains result = apiInstance.getAllDomains(accept, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getAllDomains: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getAllDomains($accept, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getAllDomains: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getAllDomains(accept => $accept, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getAllDomains: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all the available topology domains.
    api_response = api_instance.get_all_domains(accept, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getAllDomains: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getAllDomains(accept, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getAllRelationshipsForEntityId

Get all relationships for entity type name with specified id. Specified id represents the entity instance.

Get all relationships for entity type name with specified id. Specified id represents the entity instance.


/domains/{domainName}/entity-types/{entityTypeName}/entities/{entityId}/relationships

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/entity-types/{entityTypeName}/entities/{entityId}/relationships?targetFilter=/attributes(nCI,nRPCI)&scopeFilter=/attributes[@nRTAC=310]&offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String entityId = entityId_example; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipsResponseMessage result = apiInstance.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getAllRelationshipsForEntityId");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String entityTypeName = new String(); // String | 
final String entityId = new String(); // String | 
final String targetFilter = new String(); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
final String scopeFilter = new String(); // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, targetFilter, scopeFilter, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAllRelationshipsForEntityId: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String entityId = entityId_example; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipsResponseMessage result = apiInstance.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getAllRelationshipsForEntityId");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
String *entityTypeName = entityTypeName_example; //  (default to null)
String *entityId = entityId_example; //  (default to null)
String *targetFilter = /attributes(nCI,nRPCI); // Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
String *scopeFilter = /attributes[@nRTAC=310]; // Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all relationships for entity type name with specified id. Specified id represents the entity instance.
[apiInstance getAllRelationshipsForEntityIdWith:accept
    domainName:domainName
    entityTypeName:entityTypeName
    entityId:entityId
    targetFilter:targetFilter
    scopeFilter:scopeFilter
    offset:offset
    limit:limit
              completionHandler: ^(RelationshipsResponseMessage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var entityTypeName = entityTypeName_example; // {String} 
var entityId = entityId_example; // {String} 
var opts = {
  'targetFilter': /attributes(nCI,nRPCI), // {String} Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
  'scopeFilter': /attributes[@nRTAC=310], // {String} Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAllRelationshipsForEntityIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var entityTypeName = entityTypeName_example;  // String |  (default to null)
            var entityId = entityId_example;  // String |  (default to null)
            var targetFilter = /attributes(nCI,nRPCI);  // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional)  (default to null)
            var scopeFilter = /attributes[@nRTAC=310];  // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional)  (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all relationships for entity type name with specified id. Specified id represents the entity instance.
                RelationshipsResponseMessage result = apiInstance.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, targetFilter, scopeFilter, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getAllRelationshipsForEntityId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$entityTypeName = entityTypeName_example; // String | 
$entityId = entityId_example; // String | 
$targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
$scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getAllRelationshipsForEntityId($accept, $domainName, $entityTypeName, $entityId, $targetFilter, $scopeFilter, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getAllRelationshipsForEntityId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $entityTypeName = entityTypeName_example; # String | 
my $entityId = entityId_example; # String | 
my $targetFilter = /attributes(nCI,nRPCI); # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
my $scopeFilter = /attributes[@nRTAC=310]; # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getAllRelationshipsForEntityId(accept => $accept, domainName => $domainName, entityTypeName => $entityTypeName, entityId => $entityId, targetFilter => $targetFilter, scopeFilter => $scopeFilter, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getAllRelationshipsForEntityId: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
entityTypeName = entityTypeName_example # String |  (default to null)
entityId = entityId_example # String |  (default to null)
targetFilter = /attributes(nCI,nRPCI) # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
scopeFilter = /attributes[@nRTAC=310] # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all relationships for entity type name with specified id. Specified id represents the entity instance.
    api_response = api_instance.get_all_relationships_for_entity_id(accept, domainName, entityTypeName, entityId, targetFilter=targetFilter, scopeFilter=scopeFilter, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getAllRelationshipsForEntityId: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let entityTypeName = entityTypeName_example; // String
    let entityId = entityId_example; // String
    let targetFilter = /attributes(nCI,nRPCI); // String
    let scopeFilter = /attributes[@nRTAC=310]; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getAllRelationshipsForEntityId(accept, domainName, entityTypeName, entityId, targetFilter, scopeFilter, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
entityTypeName*
String
Required
entityId*
String
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
targetFilter
String
Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
scopeFilter
String
Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getEntitiesByDomain

Get entities by domain

Get topology entities by domain, using specified targetFilter as mandatory query parameter.


/domains/{domainName}/entities

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/entities?targetFilter=/attributes(nCI,nRPCI)&scopeFilter=/attributes[@nRTAC=310]&offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntitiesResponseMessage result = apiInstance.getEntitiesByDomain(accept, domainName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getEntitiesByDomain");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String targetFilter = new String(); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
final String scopeFilter = new String(); // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getEntitiesByDomain(accept, domainName, targetFilter, scopeFilter, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getEntitiesByDomain: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntitiesResponseMessage result = apiInstance.getEntitiesByDomain(accept, domainName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getEntitiesByDomain");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
String *targetFilter = /attributes(nCI,nRPCI); // Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
String *scopeFilter = /attributes[@nRTAC=310]; // Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get entities by domain
[apiInstance getEntitiesByDomainWith:accept
    domainName:domainName
    targetFilter:targetFilter
    scopeFilter:scopeFilter
    offset:offset
    limit:limit
              completionHandler: ^(EntitiesResponseMessage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var opts = {
  'targetFilter': /attributes(nCI,nRPCI), // {String} Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
  'scopeFilter': /attributes[@nRTAC=310], // {String} Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEntitiesByDomain(accept, domainName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getEntitiesByDomainExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var targetFilter = /attributes(nCI,nRPCI);  // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional)  (default to null)
            var scopeFilter = /attributes[@nRTAC=310];  // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional)  (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get entities by domain
                EntitiesResponseMessage result = apiInstance.getEntitiesByDomain(accept, domainName, targetFilter, scopeFilter, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getEntitiesByDomain: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
$scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getEntitiesByDomain($accept, $domainName, $targetFilter, $scopeFilter, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getEntitiesByDomain: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $targetFilter = /attributes(nCI,nRPCI); # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
my $scopeFilter = /attributes[@nRTAC=310]; # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getEntitiesByDomain(accept => $accept, domainName => $domainName, targetFilter => $targetFilter, scopeFilter => $scopeFilter, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getEntitiesByDomain: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
targetFilter = /attributes(nCI,nRPCI) # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
scopeFilter = /attributes[@nRTAC=310] # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get entities by domain
    api_response = api_instance.get_entities_by_domain(accept, domainName, targetFilter=targetFilter, scopeFilter=scopeFilter, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getEntitiesByDomain: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let targetFilter = /attributes(nCI,nRPCI); // String
    let scopeFilter = /attributes[@nRTAC=310]; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getEntitiesByDomain(accept, domainName, targetFilter, scopeFilter, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
targetFilter
String
Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
scopeFilter
String
Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getRelationshipById

Get relationship with specified id. Specified id represents the relationship instance.

Get relationship with specified id. Specified id represents the relationship instance.


/domains/{domainName}/relationship-types/{relationshipTypeName}/relationships/{relationshipId}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/yang.data+json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/relationship-types/{relationshipTypeName}/relationships/{relationshipId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/yang.data+json; // String | 
        String domainName = domainName_example; // String | domain name
        String relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
        String relationshipId = relationshipId_example; // String | 

        try {
            Object result = apiInstance.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getRelationshipById");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String relationshipTypeName = new String(); // String | 
final String relationshipId = new String(); // String | 

try {
    final result = await api_instance.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getRelationshipById: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/yang.data+json; // String | 
        String domainName = domainName_example; // String | domain name
        String relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
        String relationshipId = relationshipId_example; // String | 

        try {
            Object result = apiInstance.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getRelationshipById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/yang.data+json; //  (default to application/yang.data+json)
String *domainName = domainName_example; // domain name (default to null)
String *relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; //  (default to null)
String *relationshipId = relationshipId_example; //  (default to null)

// Get relationship with specified id. Specified id represents the relationship instance.
[apiInstance getRelationshipByIdWith:accept
    domainName:domainName
    relationshipTypeName:relationshipTypeName
    relationshipId:relationshipId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/yang.data+json; // {String} 
var domainName = domainName_example; // {String} domain name
var relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // {String} 
var relationshipId = relationshipId_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getRelationshipByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/yang.data+json;  // String |  (default to application/yang.data+json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER;  // String |  (default to null)
            var relationshipId = relationshipId_example;  // String |  (default to null)

            try {
                // Get relationship with specified id. Specified id represents the relationship instance.
                Object result = apiInstance.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getRelationshipById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/yang.data+json; // String | 
$domainName = domainName_example; // String | domain name
$relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
$relationshipId = relationshipId_example; // String | 

try {
    $result = $api_instance->getRelationshipById($accept, $domainName, $relationshipTypeName, $relationshipId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getRelationshipById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/yang.data+json; # String | 
my $domainName = domainName_example; # String | domain name
my $relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; # String | 
my $relationshipId = relationshipId_example; # String | 

eval {
    my $result = $api_instance->getRelationshipById(accept => $accept, domainName => $domainName, relationshipTypeName => $relationshipTypeName, relationshipId => $relationshipId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getRelationshipById: $@\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.EntitiesAndRelationshipsApi()
accept = application/yang.data+json # String |  (default to application/yang.data+json)
domainName = domainName_example # String | domain name (default to null)
relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER # String |  (default to null)
relationshipId = relationshipId_example # String |  (default to null)

try:
    # Get relationship with specified id. Specified id represents the relationship instance.
    api_response = api_instance.get_relationship_by_id(accept, domainName, relationshipTypeName, relationshipId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getRelationshipById: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/yang.data+json; // String
    let domainName = domainName_example; // String
    let relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String
    let relationshipId = relationshipId_example; // String

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getRelationshipById(accept, domainName, relationshipTypeName, relationshipId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
relationshipTypeName*
String
Required
relationshipId*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


getRelationshipsByType

Get topology relationships of a specific relationship type name.

Get topology relationships of a specific relationship type name.


/domains/{domainName}/relationship-types/{relationshipTypeName}/relationships

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/relationship-types/{relationshipTypeName}/relationships?targetFilter=/attributes(nCI,nRPCI)&scopeFilter=/attributes[@nRTAC=310]&offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipsResponseMessage result = apiInstance.getRelationshipsByType(accept, domainName, relationshipTypeName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getRelationshipsByType");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String relationshipTypeName = new String(); // String | 
final String targetFilter = new String(); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
final String scopeFilter = new String(); // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getRelationshipsByType(accept, domainName, relationshipTypeName, targetFilter, scopeFilter, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getRelationshipsByType: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipsResponseMessage result = apiInstance.getRelationshipsByType(accept, domainName, relationshipTypeName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getRelationshipsByType");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
String *relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; //  (default to null)
String *targetFilter = /attributes(nCI,nRPCI); // Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
String *scopeFilter = /attributes[@nRTAC=310]; // Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get topology relationships of a specific relationship type name.
[apiInstance getRelationshipsByTypeWith:accept
    domainName:domainName
    relationshipTypeName:relationshipTypeName
    targetFilter:targetFilter
    scopeFilter:scopeFilter
    offset:offset
    limit:limit
              completionHandler: ^(RelationshipsResponseMessage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // {String} 
var opts = {
  'targetFilter': /attributes(nCI,nRPCI), // {String} Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
  'scopeFilter': /attributes[@nRTAC=310], // {String} Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRelationshipsByType(accept, domainName, relationshipTypeName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getRelationshipsByTypeExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER;  // String |  (default to null)
            var targetFilter = /attributes(nCI,nRPCI);  // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional)  (default to null)
            var scopeFilter = /attributes[@nRTAC=310];  // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional)  (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get topology relationships of a specific relationship type name.
                RelationshipsResponseMessage result = apiInstance.getRelationshipsByType(accept, domainName, relationshipTypeName, targetFilter, scopeFilter, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getRelationshipsByType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String | 
$targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
$scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getRelationshipsByType($accept, $domainName, $relationshipTypeName, $targetFilter, $scopeFilter, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getRelationshipsByType: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; # String | 
my $targetFilter = /attributes(nCI,nRPCI); # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
my $scopeFilter = /attributes[@nRTAC=310]; # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getRelationshipsByType(accept => $accept, domainName => $domainName, relationshipTypeName => $relationshipTypeName, targetFilter => $targetFilter, scopeFilter => $scopeFilter, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getRelationshipsByType: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER # String |  (default to null)
targetFilter = /attributes(nCI,nRPCI) # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
scopeFilter = /attributes[@nRTAC=310] # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get topology relationships of a specific relationship type name.
    api_response = api_instance.get_relationships_by_type(accept, domainName, relationshipTypeName, targetFilter=targetFilter, scopeFilter=scopeFilter, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getRelationshipsByType: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let relationshipTypeName = NRCELLDU_USES_NRSECTORCARRIER; // String
    let targetFilter = /attributes(nCI,nRPCI); // String
    let scopeFilter = /attributes[@nRTAC=310]; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getRelationshipsByType(accept, domainName, relationshipTypeName, targetFilter, scopeFilter, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
relationshipTypeName*
String
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
targetFilter
String
Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
scopeFilter
String
Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getTopologyByEntityTypeName

Get all topology entities of a specific entity type.

Get all topology entities of a specific entity type.


/domains/{domainName}/entity-types/{entityTypeName}/entities

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/entity-types/{entityTypeName}/entities?targetFilter=/attributes(nCI,nRPCI)&scopeFilter=/attributes[@nRTAC=310]&offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntitiesResponseMessage result = apiInstance.getTopologyByEntityTypeName(accept, domainName, entityTypeName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyByEntityTypeName");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String entityTypeName = new String(); // String | 
final String targetFilter = new String(); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
final String scopeFilter = new String(); // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getTopologyByEntityTypeName(accept, domainName, entityTypeName, targetFilter, scopeFilter, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getTopologyByEntityTypeName: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
        String scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntitiesResponseMessage result = apiInstance.getTopologyByEntityTypeName(accept, domainName, entityTypeName, targetFilter, scopeFilter, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyByEntityTypeName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
String *entityTypeName = entityTypeName_example; //  (default to null)
String *targetFilter = /attributes(nCI,nRPCI); // Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
String *scopeFilter = /attributes[@nRTAC=310]; // Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all topology entities of a specific entity type.
[apiInstance getTopologyByEntityTypeNameWith:accept
    domainName:domainName
    entityTypeName:entityTypeName
    targetFilter:targetFilter
    scopeFilter:scopeFilter
    offset:offset
    limit:limit
              completionHandler: ^(EntitiesResponseMessage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var entityTypeName = entityTypeName_example; // {String} 
var opts = {
  'targetFilter': /attributes(nCI,nRPCI), // {String} Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
  'scopeFilter': /attributes[@nRTAC=310], // {String} Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTopologyByEntityTypeName(accept, domainName, entityTypeName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getTopologyByEntityTypeNameExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var entityTypeName = entityTypeName_example;  // String |  (default to null)
            var targetFilter = /attributes(nCI,nRPCI);  // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional)  (default to null)
            var scopeFilter = /attributes[@nRTAC=310];  // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional)  (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all topology entities of a specific entity type.
                EntitiesResponseMessage result = apiInstance.getTopologyByEntityTypeName(accept, domainName, entityTypeName, targetFilter, scopeFilter, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getTopologyByEntityTypeName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$entityTypeName = entityTypeName_example; // String | 
$targetFilter = /attributes(nCI,nRPCI); // String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
$scopeFilter = /attributes[@nRTAC=310]; // String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getTopologyByEntityTypeName($accept, $domainName, $entityTypeName, $targetFilter, $scopeFilter, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getTopologyByEntityTypeName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $entityTypeName = entityTypeName_example; # String | 
my $targetFilter = /attributes(nCI,nRPCI); # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
my $scopeFilter = /attributes[@nRTAC=310]; # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getTopologyByEntityTypeName(accept => $accept, domainName => $domainName, entityTypeName => $entityTypeName, targetFilter => $targetFilter, scopeFilter => $scopeFilter, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getTopologyByEntityTypeName: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
entityTypeName = entityTypeName_example # String |  (default to null)
targetFilter = /attributes(nCI,nRPCI) # String | Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes. (optional) (default to null)
scopeFilter = /attributes[@nRTAC=310] # String | Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean. (optional) (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all topology entities of a specific entity type.
    api_response = api_instance.get_topology_by_entity_type_name(accept, domainName, entityTypeName, targetFilter=targetFilter, scopeFilter=scopeFilter, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getTopologyByEntityTypeName: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let entityTypeName = entityTypeName_example; // String
    let targetFilter = /attributes(nCI,nRPCI); // String
    let scopeFilter = /attributes[@nRTAC=310]; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getTopologyByEntityTypeName(accept, domainName, entityTypeName, targetFilter, scopeFilter, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
entityTypeName*
String
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
targetFilter
String
Use *targetFilter* to specify the entity type and attributes to be returned in the REST response. The value for *targetFilter* can also be a list of entity types and attributes.
scopeFilter
String
Use *scopeFilter* to specify the attributes to match on. The value for *scopeFilter* can also be a list of entity types and attributes. scopeFilter returns a boolean.
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getTopologyById

Get topology for entity type name with specified id. Specified id represents the entity instance.

Get topology for entity type name with specified id. Specified id represents the entity instance.


/domains/{domainName}/entity-types/{entityTypeName}/entities/{entityId}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/yang.data+json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/entity-types/{entityTypeName}/entities/{entityId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/yang.data+json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String entityId = entityId_example; // String | 

        try {
            Object result = apiInstance.getTopologyById(accept, domainName, entityTypeName, entityId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyById");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final String entityTypeName = new String(); // String | 
final String entityId = new String(); // String | 

try {
    final result = await api_instance.getTopologyById(accept, domainName, entityTypeName, entityId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getTopologyById: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/yang.data+json; // String | 
        String domainName = domainName_example; // String | domain name
        String entityTypeName = entityTypeName_example; // String | 
        String entityId = entityId_example; // String | 

        try {
            Object result = apiInstance.getTopologyById(accept, domainName, entityTypeName, entityId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/yang.data+json; //  (default to application/yang.data+json)
String *domainName = domainName_example; // domain name (default to null)
String *entityTypeName = entityTypeName_example; //  (default to null)
String *entityId = entityId_example; //  (default to null)

// Get topology for entity type name with specified id. Specified id represents the entity instance.
[apiInstance getTopologyByIdWith:accept
    domainName:domainName
    entityTypeName:entityTypeName
    entityId:entityId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/yang.data+json; // {String} 
var domainName = domainName_example; // {String} domain name
var entityTypeName = entityTypeName_example; // {String} 
var entityId = entityId_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTopologyById(accept, domainName, entityTypeName, entityId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getTopologyByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/yang.data+json;  // String |  (default to application/yang.data+json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var entityTypeName = entityTypeName_example;  // String |  (default to null)
            var entityId = entityId_example;  // String |  (default to null)

            try {
                // Get topology for entity type name with specified id. Specified id represents the entity instance.
                Object result = apiInstance.getTopologyById(accept, domainName, entityTypeName, entityId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getTopologyById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/yang.data+json; // String | 
$domainName = domainName_example; // String | domain name
$entityTypeName = entityTypeName_example; // String | 
$entityId = entityId_example; // String | 

try {
    $result = $api_instance->getTopologyById($accept, $domainName, $entityTypeName, $entityId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getTopologyById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/yang.data+json; # String | 
my $domainName = domainName_example; # String | domain name
my $entityTypeName = entityTypeName_example; # String | 
my $entityId = entityId_example; # String | 

eval {
    my $result = $api_instance->getTopologyById(accept => $accept, domainName => $domainName, entityTypeName => $entityTypeName, entityId => $entityId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getTopologyById: $@\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.EntitiesAndRelationshipsApi()
accept = application/yang.data+json # String |  (default to application/yang.data+json)
domainName = domainName_example # String | domain name (default to null)
entityTypeName = entityTypeName_example # String |  (default to null)
entityId = entityId_example # String |  (default to null)

try:
    # Get topology for entity type name with specified id. Specified id represents the entity instance.
    api_response = api_instance.get_topology_by_id(accept, domainName, entityTypeName, entityId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getTopologyById: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/yang.data+json; // String
    let domainName = domainName_example; // String
    let entityTypeName = entityTypeName_example; // String
    let entityId = entityId_example; // String

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getTopologyById(accept, domainName, entityTypeName, entityId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
entityTypeName*
String
Required
entityId*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


getTopologyEntityTypes

Get all the available topology entity types in domain name.

Get all the available topology entity types in domain name.


/domains/{domainName}/entity-types

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/entity-types?offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntityTypes result = apiInstance.getTopologyEntityTypes(accept, domainName, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyEntityTypes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getTopologyEntityTypes(accept, domainName, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getTopologyEntityTypes: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            EntityTypes result = apiInstance.getTopologyEntityTypes(accept, domainName, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyEntityTypes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all the available topology entity types in domain name.
[apiInstance getTopologyEntityTypesWith:accept
    domainName:domainName
    offset:offset
    limit:limit
              completionHandler: ^(EntityTypes output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var opts = {
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTopologyEntityTypes(accept, domainName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getTopologyEntityTypesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all the available topology entity types in domain name.
                EntityTypes result = apiInstance.getTopologyEntityTypes(accept, domainName, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getTopologyEntityTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getTopologyEntityTypes($accept, $domainName, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getTopologyEntityTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getTopologyEntityTypes(accept => $accept, domainName => $domainName, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getTopologyEntityTypes: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all the available topology entity types in domain name.
    api_response = api_instance.get_topology_entity_types(accept, domainName, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getTopologyEntityTypes: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getTopologyEntityTypes(accept, domainName, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getTopologyRelationshipTypes

Get all the available topology relationship types.

Get all the available topology relationship types.


/domains/{domainName}/relationship-types

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/domains/{domainName}/relationship-types?offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EntitiesAndRelationshipsApi;

import java.io.File;
import java.util.*;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipTypes result = apiInstance.getTopologyRelationshipTypes(accept, domainName, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyRelationshipTypes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domainName = new String(); // String | domain name
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getTopologyRelationshipTypes(accept, domainName, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getTopologyRelationshipTypes: $e\n');
}

import org.openapitools.client.api.EntitiesAndRelationshipsApi;

public class EntitiesAndRelationshipsApiExample {
    public static void main(String[] args) {
        EntitiesAndRelationshipsApi apiInstance = new EntitiesAndRelationshipsApi();
        String accept = application/json; // String | 
        String domainName = domainName_example; // String | domain name
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            RelationshipTypes result = apiInstance.getTopologyRelationshipTypes(accept, domainName, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EntitiesAndRelationshipsApi#getTopologyRelationshipTypes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
EntitiesAndRelationshipsApi *apiInstance = [[EntitiesAndRelationshipsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domainName = domainName_example; // domain name (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all the available topology relationship types.
[apiInstance getTopologyRelationshipTypesWith:accept
    domainName:domainName
    offset:offset
    limit:limit
              completionHandler: ^(RelationshipTypes output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.EntitiesAndRelationshipsApi()
var accept = application/json; // {String} 
var domainName = domainName_example; // {String} domain name
var opts = {
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTopologyRelationshipTypes(accept, domainName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getTopologyRelationshipTypesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new EntitiesAndRelationshipsApi();
            var accept = application/json;  // String |  (default to application/json)
            var domainName = domainName_example;  // String | domain name (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all the available topology relationship types.
                RelationshipTypes result = apiInstance.getTopologyRelationshipTypes(accept, domainName, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EntitiesAndRelationshipsApi.getTopologyRelationshipTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\EntitiesAndRelationshipsApi();
$accept = application/json; // String | 
$domainName = domainName_example; // String | domain name
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getTopologyRelationshipTypes($accept, $domainName, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EntitiesAndRelationshipsApi->getTopologyRelationshipTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EntitiesAndRelationshipsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::EntitiesAndRelationshipsApi->new();
my $accept = application/json; # String | 
my $domainName = domainName_example; # String | domain name
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getTopologyRelationshipTypes(accept => $accept, domainName => $domainName, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EntitiesAndRelationshipsApi->getTopologyRelationshipTypes: $@\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.EntitiesAndRelationshipsApi()
accept = application/json # String |  (default to application/json)
domainName = domainName_example # String | domain name (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all the available topology relationship types.
    api_response = api_instance.get_topology_relationship_types(accept, domainName, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EntitiesAndRelationshipsApi->getTopologyRelationshipTypes: %s\n" % e)
extern crate EntitiesAndRelationshipsApi;

pub fn main() {
    let accept = application/json; // String
    let domainName = domainName_example; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = EntitiesAndRelationshipsApi::Context::default();
    let result = client.getTopologyRelationshipTypes(accept, domainName, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainName*
String
domain name
Required
Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


Schemas

createSchema

Create a new schema.

Create a new schema. The request body shall contain the schema in YANG format.


/schemas

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/problem+json" \
 -H "Content-Type: multipart/form-data" \
 "https://localhost/topology-inventory/v1alpha11/schemas"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SchemasApi;

import java.io.File;
import java.util.*;

public class SchemasApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String contentType = multipart/form-data; // String | 
        File file = BINARY_DATA_HERE; // File | multipartFile

        try {
            apiInstance.createSchema(accept, contentType, file);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#createSchema");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String contentType = new String(); // String | 
final File file = new File(); // File | multipartFile

try {
    final result = await api_instance.createSchema(accept, contentType, file);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createSchema: $e\n');
}

import org.openapitools.client.api.SchemasApi;

public class SchemasApiExample {
    public static void main(String[] args) {
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String contentType = multipart/form-data; // String | 
        File file = BINARY_DATA_HERE; // File | multipartFile

        try {
            apiInstance.createSchema(accept, contentType, file);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#createSchema");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
SchemasApi *apiInstance = [[SchemasApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *contentType = multipart/form-data; //  (default to multipart/form-data)
File *file = BINARY_DATA_HERE; // multipartFile (default to null)

// Create a new schema.
[apiInstance createSchemaWith:accept
    contentType:contentType
    file:file
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.SchemasApi()
var accept = application/json; // {String} 
var contentType = multipart/form-data; // {String} 
var file = BINARY_DATA_HERE; // {File} multipartFile

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createSchema(accept, contentType, file, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createSchemaExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new SchemasApi();
            var accept = application/json;  // String |  (default to application/json)
            var contentType = multipart/form-data;  // String |  (default to multipart/form-data)
            var file = BINARY_DATA_HERE;  // File | multipartFile (default to null)

            try {
                // Create a new schema.
                apiInstance.createSchema(accept, contentType, file);
            } catch (Exception e) {
                Debug.Print("Exception when calling SchemasApi.createSchema: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SchemasApi();
$accept = application/json; // String | 
$contentType = multipart/form-data; // String | 
$file = BINARY_DATA_HERE; // File | multipartFile

try {
    $api_instance->createSchema($accept, $contentType, $file);
} catch (Exception $e) {
    echo 'Exception when calling SchemasApi->createSchema: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SchemasApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SchemasApi->new();
my $accept = application/json; # String | 
my $contentType = multipart/form-data; # String | 
my $file = BINARY_DATA_HERE; # File | multipartFile

eval {
    $api_instance->createSchema(accept => $accept, contentType => $contentType, file => $file);
};
if ($@) {
    warn "Exception when calling SchemasApi->createSchema: $@\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.SchemasApi()
accept = application/json # String |  (default to application/json)
contentType = multipart/form-data # String |  (default to multipart/form-data)
file = BINARY_DATA_HERE # File | multipartFile (default to null)

try:
    # Create a new schema.
    api_instance.create_schema(accept, contentType, file)
except ApiException as e:
    print("Exception when calling SchemasApi->createSchema: %s\n" % e)
extern crate SchemasApi;

pub fn main() {
    let accept = application/json; // String
    let contentType = multipart/form-data; // String
    let file = BINARY_DATA_HERE; // File

    let mut context = SchemasApi::Context::default();
    let result = client.createSchema(accept, contentType, file, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Content-Type*
String
Required
Form parameters
Name Description
file*
File (binary)
multipartFile
Required

Responses


deleteSchema

Delete a schema.

Delete a schema.


/schemas/{schemaName}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/schemas/{schemaName}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SchemasApi;

import java.io.File;
import java.util.*;

public class SchemasApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String schemaName = schemaName_example; // String | 

        try {
            apiInstance.deleteSchema(accept, schemaName);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#deleteSchema");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String schemaName = new String(); // String | 

try {
    final result = await api_instance.deleteSchema(accept, schemaName);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteSchema: $e\n');
}

import org.openapitools.client.api.SchemasApi;

public class SchemasApiExample {
    public static void main(String[] args) {
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String schemaName = schemaName_example; // String | 

        try {
            apiInstance.deleteSchema(accept, schemaName);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#deleteSchema");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
SchemasApi *apiInstance = [[SchemasApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *schemaName = schemaName_example; //  (default to o-ran-smo-teiv-ran)

// Delete a schema.
[apiInstance deleteSchemaWith:accept
    schemaName:schemaName
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.SchemasApi()
var accept = application/json; // {String} 
var schemaName = schemaName_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSchema(accept, schemaName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class deleteSchemaExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new SchemasApi();
            var accept = application/json;  // String |  (default to application/json)
            var schemaName = schemaName_example;  // String |  (default to o-ran-smo-teiv-ran)

            try {
                // Delete a schema.
                apiInstance.deleteSchema(accept, schemaName);
            } catch (Exception e) {
                Debug.Print("Exception when calling SchemasApi.deleteSchema: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SchemasApi();
$accept = application/json; // String | 
$schemaName = schemaName_example; // String | 

try {
    $api_instance->deleteSchema($accept, $schemaName);
} catch (Exception $e) {
    echo 'Exception when calling SchemasApi->deleteSchema: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SchemasApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SchemasApi->new();
my $accept = application/json; # String | 
my $schemaName = schemaName_example; # String | 

eval {
    $api_instance->deleteSchema(accept => $accept, schemaName => $schemaName);
};
if ($@) {
    warn "Exception when calling SchemasApi->deleteSchema: $@\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.SchemasApi()
accept = application/json # String |  (default to application/json)
schemaName = schemaName_example # String |  (default to o-ran-smo-teiv-ran)

try:
    # Delete a schema.
    api_instance.delete_schema(accept, schemaName)
except ApiException as e:
    print("Exception when calling SchemasApi->deleteSchema: %s\n" % e)
extern crate SchemasApi;

pub fn main() {
    let accept = application/json; // String
    let schemaName = schemaName_example; // String

    let mut context = SchemasApi::Context::default();
    let result = client.deleteSchema(accept, schemaName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
schemaName*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


getSchemaByName

Get the model schema.

Get the model schema by name.


/schemas/{schemaName}/content

Usage and SDK Samples

curl -X GET \
 -H "Accept: text/plain,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/schemas/{schemaName}/content"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SchemasApi;

import java.io.File;
import java.util.*;

public class SchemasApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String schemaName = schemaName_example; // String | 

        try {
            'String' result = apiInstance.getSchemaByName(accept, schemaName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#getSchemaByName");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String schemaName = new String(); // String | 

try {
    final result = await api_instance.getSchemaByName(accept, schemaName);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getSchemaByName: $e\n');
}

import org.openapitools.client.api.SchemasApi;

public class SchemasApiExample {
    public static void main(String[] args) {
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String schemaName = schemaName_example; // String | 

        try {
            'String' result = apiInstance.getSchemaByName(accept, schemaName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#getSchemaByName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
SchemasApi *apiInstance = [[SchemasApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *schemaName = schemaName_example; //  (default to o-ran-smo-teiv-ran)

// Get the model schema.
[apiInstance getSchemaByNameWith:accept
    schemaName:schemaName
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.SchemasApi()
var accept = application/json; // {String} 
var schemaName = schemaName_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSchemaByName(accept, schemaName, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getSchemaByNameExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new SchemasApi();
            var accept = application/json;  // String |  (default to application/json)
            var schemaName = schemaName_example;  // String |  (default to o-ran-smo-teiv-ran)

            try {
                // Get the model schema.
                'String' result = apiInstance.getSchemaByName(accept, schemaName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SchemasApi.getSchemaByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SchemasApi();
$accept = application/json; // String | 
$schemaName = schemaName_example; // String | 

try {
    $result = $api_instance->getSchemaByName($accept, $schemaName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchemasApi->getSchemaByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SchemasApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SchemasApi->new();
my $accept = application/json; # String | 
my $schemaName = schemaName_example; # String | 

eval {
    my $result = $api_instance->getSchemaByName(accept => $accept, schemaName => $schemaName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SchemasApi->getSchemaByName: $@\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.SchemasApi()
accept = application/json # String |  (default to application/json)
schemaName = schemaName_example # String |  (default to o-ran-smo-teiv-ran)

try:
    # Get the model schema.
    api_response = api_instance.get_schema_by_name(accept, schemaName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SchemasApi->getSchemaByName: %s\n" % e)
extern crate SchemasApi;

pub fn main() {
    let accept = application/json; // String
    let schemaName = schemaName_example; // String

    let mut context = SchemasApi::Context::default();
    let result = client.getSchemaByName(accept, schemaName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
schemaName*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


getSchemas

Get a list of all schemas.

Get a list of all schemas.


/schemas

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/schemas?domain=ran&offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SchemasApi;

import java.io.File;
import java.util.*;

public class SchemasApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String domain = ran; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            SchemaList result = apiInstance.getSchemas(accept, domain, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#getSchemas");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String domain = new String(); // String | 
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getSchemas(accept, domain, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getSchemas: $e\n');
}

import org.openapitools.client.api.SchemasApi;

public class SchemasApiExample {
    public static void main(String[] args) {
        SchemasApi apiInstance = new SchemasApi();
        String accept = application/json; // String | 
        String domain = ran; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            SchemaList result = apiInstance.getSchemas(accept, domain, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SchemasApi#getSchemas");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
SchemasApi *apiInstance = [[SchemasApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *domain = ran; //  (optional) (default to null)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get a list of all schemas.
[apiInstance getSchemasWith:accept
    domain:domain
    offset:offset
    limit:limit
              completionHandler: ^(SchemaList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.SchemasApi()
var accept = application/json; // {String} 
var opts = {
  'domain': ran, // {String} 
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSchemas(accept, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getSchemasExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new SchemasApi();
            var accept = application/json;  // String |  (default to application/json)
            var domain = ran;  // String |  (optional)  (default to null)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get a list of all schemas.
                SchemaList result = apiInstance.getSchemas(accept, domain, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SchemasApi.getSchemas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SchemasApi();
$accept = application/json; // String | 
$domain = ran; // String | 
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getSchemas($accept, $domain, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SchemasApi->getSchemas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SchemasApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SchemasApi->new();
my $accept = application/json; # String | 
my $domain = ran; # String | 
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getSchemas(accept => $accept, domain => $domain, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SchemasApi->getSchemas: $@\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.SchemasApi()
accept = application/json # String |  (default to application/json)
domain = ran # String |  (optional) (default to null)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get a list of all schemas.
    api_response = api_instance.get_schemas(accept, domain=domain, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SchemasApi->getSchemas: %s\n" % e)
extern crate SchemasApi;

pub fn main() {
    let accept = application/json; // String
    let domain = ran; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = SchemasApi::Context::default();
    let result = client.getSchemas(accept, domain, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
domain
String
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


TopologyGroups

createGroup

Create group.

Create group.


/groups

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "https://localhost/topology-inventory/v1alpha11/groups" \
 -d '{
  "groupName" : "groupName",
  "criteria" : {
    "resourceInstances" : [ "resourceInstances", "resourceInstances" ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TopologyGroupsApi;

import java.io.File;
import java.util.*;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Group group = ; // Group | 

        try {
            GroupResponse result = apiInstance.createGroup(accept, contentType, group);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#createGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String contentType = new String(); // String | 
final Group group = new Group(); // Group | 

try {
    final result = await api_instance.createGroup(accept, contentType, group);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->createGroup: $e\n');
}

import org.openapitools.client.api.TopologyGroupsApi;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        Group group = ; // Group | 

        try {
            GroupResponse result = apiInstance.createGroup(accept, contentType, group);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#createGroup");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TopologyGroupsApi *apiInstance = [[TopologyGroupsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *contentType = application/json; //  (default to application/json)
Group *group = ; // 

// Create group.
[apiInstance createGroupWith:accept
    contentType:contentType
    group:group
              completionHandler: ^(GroupResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.TopologyGroupsApi()
var accept = application/json; // {String} 
var contentType = application/json; // {String} 
var group = ; // {Group} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createGroup(accept, contentType, group, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createGroupExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TopologyGroupsApi();
            var accept = application/json;  // String |  (default to application/json)
            var contentType = application/json;  // String |  (default to application/json)
            var group = new Group(); // Group | 

            try {
                // Create group.
                GroupResponse result = apiInstance.createGroup(accept, contentType, group);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TopologyGroupsApi.createGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TopologyGroupsApi();
$accept = application/json; // String | 
$contentType = application/json; // String | 
$group = ; // Group | 

try {
    $result = $api_instance->createGroup($accept, $contentType, $group);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TopologyGroupsApi->createGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TopologyGroupsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TopologyGroupsApi->new();
my $accept = application/json; # String | 
my $contentType = application/json; # String | 
my $group = WWW::OPenAPIClient::Object::Group->new(); # Group | 

eval {
    my $result = $api_instance->createGroup(accept => $accept, contentType => $contentType, group => $group);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TopologyGroupsApi->createGroup: $@\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.TopologyGroupsApi()
accept = application/json # String |  (default to application/json)
contentType = application/json # String |  (default to application/json)
group =  # Group | 

try:
    # Create group.
    api_response = api_instance.create_group(accept, contentType, group)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TopologyGroupsApi->createGroup: %s\n" % e)
extern crate TopologyGroupsApi;

pub fn main() {
    let accept = application/json; // String
    let contentType = application/json; // String
    let group = ; // Group

    let mut context = TopologyGroupsApi::Context::default();
    let result = client.createGroup(accept, contentType, group, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Content-Type*
String
Required
Body parameters
Name Description
group *

Responses


deleteGroup

Delete a group with specified id.

Delete a group with specified id.


/groups/{groupId}

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/groups/{groupId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TopologyGroupsApi;

import java.io.File;
import java.util.*;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String groupId = groupId_example; // String | 

        try {
            apiInstance.deleteGroup(accept, groupId);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#deleteGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String groupId = new String(); // String | 

try {
    final result = await api_instance.deleteGroup(accept, groupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->deleteGroup: $e\n');
}

import org.openapitools.client.api.TopologyGroupsApi;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String groupId = groupId_example; // String | 

        try {
            apiInstance.deleteGroup(accept, groupId);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#deleteGroup");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TopologyGroupsApi *apiInstance = [[TopologyGroupsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *groupId = groupId_example; //  (default to null)

// Delete a group with specified id.
[apiInstance deleteGroupWith:accept
    groupId:groupId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.TopologyGroupsApi()
var accept = application/json; // {String} 
var groupId = groupId_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteGroup(accept, groupId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class deleteGroupExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TopologyGroupsApi();
            var accept = application/json;  // String |  (default to application/json)
            var groupId = groupId_example;  // String |  (default to null)

            try {
                // Delete a group with specified id.
                apiInstance.deleteGroup(accept, groupId);
            } catch (Exception e) {
                Debug.Print("Exception when calling TopologyGroupsApi.deleteGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TopologyGroupsApi();
$accept = application/json; // String | 
$groupId = groupId_example; // String | 

try {
    $api_instance->deleteGroup($accept, $groupId);
} catch (Exception $e) {
    echo 'Exception when calling TopologyGroupsApi->deleteGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TopologyGroupsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TopologyGroupsApi->new();
my $accept = application/json; # String | 
my $groupId = groupId_example; # String | 

eval {
    $api_instance->deleteGroup(accept => $accept, groupId => $groupId);
};
if ($@) {
    warn "Exception when calling TopologyGroupsApi->deleteGroup: $@\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.TopologyGroupsApi()
accept = application/json # String |  (default to application/json)
groupId = groupId_example # String |  (default to null)

try:
    # Delete a group with specified id.
    api_instance.delete_group(accept, groupId)
except ApiException as e:
    print("Exception when calling TopologyGroupsApi->deleteGroup: %s\n" % e)
extern crate TopologyGroupsApi;

pub fn main() {
    let accept = application/json; // String
    let groupId = groupId_example; // String

    let mut context = TopologyGroupsApi::Context::default();
    let result = client.deleteGroup(accept, groupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
groupId*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


getAllGroups

Get all groups.

Get all groups.


/groups

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/groups?offset=56&limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TopologyGroupsApi;

import java.io.File;
import java.util.*;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            Groups result = apiInstance.getAllGroups(accept, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#getAllGroups");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final Integer offset = new Integer(); // Integer | Pagination offset.
final Integer limit = new Integer(); // Integer | Result limiter.

try {
    final result = await api_instance.getAllGroups(accept, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getAllGroups: $e\n');
}

import org.openapitools.client.api.TopologyGroupsApi;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        Integer offset = 56; // Integer | Pagination offset.
        Integer limit = 56; // Integer | Result limiter.

        try {
            Groups result = apiInstance.getAllGroups(accept, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#getAllGroups");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TopologyGroupsApi *apiInstance = [[TopologyGroupsApi alloc] init];
String *accept = application/json; //  (default to application/json)
Integer *offset = 56; // Pagination offset. (optional) (default to 0)
Integer *limit = 56; // Result limiter. (optional) (default to 500)

// Get all groups.
[apiInstance getAllGroupsWith:accept
    offset:offset
    limit:limit
              completionHandler: ^(Groups output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.TopologyGroupsApi()
var accept = application/json; // {String} 
var opts = {
  'offset': 56, // {Integer} Pagination offset.
  'limit': 56 // {Integer} Result limiter.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllGroups(accept, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAllGroupsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TopologyGroupsApi();
            var accept = application/json;  // String |  (default to application/json)
            var offset = 56;  // Integer | Pagination offset. (optional)  (default to 0)
            var limit = 56;  // Integer | Result limiter. (optional)  (default to 500)

            try {
                // Get all groups.
                Groups result = apiInstance.getAllGroups(accept, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TopologyGroupsApi.getAllGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TopologyGroupsApi();
$accept = application/json; // String | 
$offset = 56; // Integer | Pagination offset.
$limit = 56; // Integer | Result limiter.

try {
    $result = $api_instance->getAllGroups($accept, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TopologyGroupsApi->getAllGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TopologyGroupsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TopologyGroupsApi->new();
my $accept = application/json; # String | 
my $offset = 56; # Integer | Pagination offset.
my $limit = 56; # Integer | Result limiter.

eval {
    my $result = $api_instance->getAllGroups(accept => $accept, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TopologyGroupsApi->getAllGroups: $@\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.TopologyGroupsApi()
accept = application/json # String |  (default to application/json)
offset = 56 # Integer | Pagination offset. (optional) (default to 0)
limit = 56 # Integer | Result limiter. (optional) (default to 500)

try:
    # Get all groups.
    api_response = api_instance.get_all_groups(accept, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TopologyGroupsApi->getAllGroups: %s\n" % e)
extern crate TopologyGroupsApi;

pub fn main() {
    let accept = application/json; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = TopologyGroupsApi::Context::default();
    let result = client.getAllGroups(accept, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Header parameters
Name Description
Accept*
String
Required
Query parameters
Name Description
offset
Integer
Pagination offset.
limit
Integer
Result limiter.

Responses


getGroup

Get a group with specified id.

Get a Group with specified id.


/groups/{groupId}

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,application/problem+json" \
 "https://localhost/topology-inventory/v1alpha11/groups/{groupId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TopologyGroupsApi;

import java.io.File;
import java.util.*;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String groupId = groupId_example; // String | 

        try {
            GroupResponse result = apiInstance.getGroup(accept, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#getGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String groupId = new String(); // String | 

try {
    final result = await api_instance.getGroup(accept, groupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->getGroup: $e\n');
}

import org.openapitools.client.api.TopologyGroupsApi;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String groupId = groupId_example; // String | 

        try {
            GroupResponse result = apiInstance.getGroup(accept, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#getGroup");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TopologyGroupsApi *apiInstance = [[TopologyGroupsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *groupId = groupId_example; //  (default to null)

// Get a group with specified id.
[apiInstance getGroupWith:accept
    groupId:groupId
              completionHandler: ^(GroupResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.TopologyGroupsApi()
var accept = application/json; // {String} 
var groupId = groupId_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGroup(accept, groupId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getGroupExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TopologyGroupsApi();
            var accept = application/json;  // String |  (default to application/json)
            var groupId = groupId_example;  // String |  (default to null)

            try {
                // Get a group with specified id.
                GroupResponse result = apiInstance.getGroup(accept, groupId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TopologyGroupsApi.getGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TopologyGroupsApi();
$accept = application/json; // String | 
$groupId = groupId_example; // String | 

try {
    $result = $api_instance->getGroup($accept, $groupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TopologyGroupsApi->getGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TopologyGroupsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TopologyGroupsApi->new();
my $accept = application/json; # String | 
my $groupId = groupId_example; # String | 

eval {
    my $result = $api_instance->getGroup(accept => $accept, groupId => $groupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TopologyGroupsApi->getGroup: $@\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.TopologyGroupsApi()
accept = application/json # String |  (default to application/json)
groupId = groupId_example # String |  (default to null)

try:
    # Get a group with specified id.
    api_response = api_instance.get_group(accept, groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TopologyGroupsApi->getGroup: %s\n" % e)
extern crate TopologyGroupsApi;

pub fn main() {
    let accept = application/json; // String
    let groupId = groupId_example; // String

    let mut context = TopologyGroupsApi::Context::default();
    let result = client.getGroup(accept, groupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
groupId*
String
Required
Header parameters
Name Description
Accept*
String
Required

Responses


updateGroup

Update a Group.

Update a Group.


/groups/{groupId}

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/problem+json" \
 -H "Content-Type: application/json" \
 "https://localhost/topology-inventory/v1alpha11/groups/{groupId}" \
 -d '{
  "groupName" : "groupName",
  "criteria" : {
    "resourceInstances" : [ "resourceInstances", "resourceInstances" ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TopologyGroupsApi;

import java.io.File;
import java.util.*;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        String groupId = groupId_example; // String | 
        Group group = ; // Group | 

        try {
            apiInstance.updateGroup(accept, contentType, groupId, group);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#updateGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String accept = new String(); // String | 
final String contentType = new String(); // String | 
final String groupId = new String(); // String | 
final Group group = new Group(); // Group | 

try {
    final result = await api_instance.updateGroup(accept, contentType, groupId, group);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->updateGroup: $e\n');
}

import org.openapitools.client.api.TopologyGroupsApi;

public class TopologyGroupsApiExample {
    public static void main(String[] args) {
        TopologyGroupsApi apiInstance = new TopologyGroupsApi();
        String accept = application/json; // String | 
        String contentType = application/json; // String | 
        String groupId = groupId_example; // String | 
        Group group = ; // Group | 

        try {
            apiInstance.updateGroup(accept, contentType, groupId, group);
        } catch (ApiException e) {
            System.err.println("Exception when calling TopologyGroupsApi#updateGroup");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TopologyGroupsApi *apiInstance = [[TopologyGroupsApi alloc] init];
String *accept = application/json; //  (default to application/json)
String *contentType = application/json; //  (default to application/json)
String *groupId = groupId_example; //  (default to null)
Group *group = ; // 

// Update a Group.
[apiInstance updateGroupWith:accept
    contentType:contentType
    groupId:groupId
    group:group
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var TopologyExposureAndInventoryApi = require('topology_exposure_and_inventory_api');

// Create an instance of the API class
var api = new TopologyExposureAndInventoryApi.TopologyGroupsApi()
var accept = application/json; // {String} 
var contentType = application/json; // {String} 
var groupId = groupId_example; // {String} 
var group = ; // {Group} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateGroup(accept, contentType, groupId, group, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateGroupExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TopologyGroupsApi();
            var accept = application/json;  // String |  (default to application/json)
            var contentType = application/json;  // String |  (default to application/json)
            var groupId = groupId_example;  // String |  (default to null)
            var group = new Group(); // Group | 

            try {
                // Update a Group.
                apiInstance.updateGroup(accept, contentType, groupId, group);
            } catch (Exception e) {
                Debug.Print("Exception when calling TopologyGroupsApi.updateGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TopologyGroupsApi();
$accept = application/json; // String | 
$contentType = application/json; // String | 
$groupId = groupId_example; // String | 
$group = ; // Group | 

try {
    $api_instance->updateGroup($accept, $contentType, $groupId, $group);
} catch (Exception $e) {
    echo 'Exception when calling TopologyGroupsApi->updateGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TopologyGroupsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TopologyGroupsApi->new();
my $accept = application/json; # String | 
my $contentType = application/json; # String | 
my $groupId = groupId_example; # String | 
my $group = WWW::OPenAPIClient::Object::Group->new(); # Group | 

eval {
    $api_instance->updateGroup(accept => $accept, contentType => $contentType, groupId => $groupId, group => $group);
};
if ($@) {
    warn "Exception when calling TopologyGroupsApi->updateGroup: $@\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.TopologyGroupsApi()
accept = application/json # String |  (default to application/json)
contentType = application/json # String |  (default to application/json)
groupId = groupId_example # String |  (default to null)
group =  # Group | 

try:
    # Update a Group.
    api_instance.update_group(accept, contentType, groupId, group)
except ApiException as e:
    print("Exception when calling TopologyGroupsApi->updateGroup: %s\n" % e)
extern crate TopologyGroupsApi;

pub fn main() {
    let accept = application/json; // String
    let contentType = application/json; // String
    let groupId = groupId_example; // String
    let group = ; // Group

    let mut context = TopologyGroupsApi::Context::default();
    let result = client.updateGroup(accept, contentType, groupId, group, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
groupId*
String
Required
Header parameters
Name Description
Accept*
String
Required
Content-Type*
String
Required
Body parameters
Name Description
group *

Responses