Class EnterpriseRepositoryServicesResource

java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.server.spring.EnterpriseRepositoryServicesResource

@RestController @RequestMapping("/servers/{serverName}/open-metadata/repository-services/users/{userId}/enterprise") public class EnterpriseRepositoryServicesResource extends Object
EnterpriseRepositoryServicesResource provides the server-side support for the OMRS Repository REST Services API calls that are directed to an enterprise connector.
  • Constructor Details

    • EnterpriseRepositoryServicesResource

      public EnterpriseRepositoryServicesResource()
      Default constructor
  • Method Details

    • getMetadataCollectionId

      @GetMapping(path="/metadata-collection-id") public MetadataCollectionIdResponse getMetadataCollectionId(@PathVariable String serverName, @PathVariable String userId)
      Returns the identifier of the metadata repository. This is the identifier used to register the metadata repository with the metadata repository cohort. It is also the identifier used to identify the home repository of a metadata instance.
      Parameters:
      serverName - unique identifier for requested server.
      userId - calling user
      Returns:
      String metadata collection id or RepositoryErrorException if there is a problem communicating with the metadata repository.
    • getAllTypes

      @GetMapping(path="/types/all") public TypeDefGalleryResponse getAllTypes(@PathVariable String serverName, @PathVariable String userId)
      Returns the list of different types of metadata organized into two groups. The first are the attribute type definitions (AttributeTypeDefs). These provide types for properties in full type definitions. Full type definitions (TypeDefs) describe types for entities, relationships and classifications.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      Returns:
      TypeDefGalleryResponse: List of different categories of type definitions or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findTypesByName

      @GetMapping(path="/types/by-name") public TypeDefGalleryResponse findTypesByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam String name)
      Returns a list of type definitions that have the specified name. Type names should be unique. This method allows wildcard character to be included in the name. These are * (asterisk) for an arbitrary string of characters and ampersand for an arbitrary character.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      name - name of the TypeDefs to return (including wildcard characters).
      Returns:
      TypeDefGalleryResponse: List of different categories of type definitions or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation or InvalidParameterException the name of the TypeDef is null.
    • findTypeDefsByCategory

      @PostMapping(path="/types/typedefs/by-category") public TypeDefListResponse findTypeDefsByCategory(@PathVariable String serverName, @PathVariable String userId, @RequestBody TypeDefCategory category)
      Returns all the TypeDefs for a specific category.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      category - find parameters used to limit the returned results.
      Returns:
      TypeDefListResponse: TypeDefs list or InvalidParameterException the TypeDefCategory is null or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findAttributeTypeDefsByCategory

      @PostMapping(path="/types/attribute-typedefs/by-category") public AttributeTypeDefListResponse findAttributeTypeDefsByCategory(@PathVariable String serverName, @PathVariable String userId, @RequestBody AttributeTypeDefCategory category)
      Returns all the AttributeTypeDefs for a specific category.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      category - find parameters used to limit the returned results.
      Returns:
      AttributeTypeDefListResponse: AttributeTypeDefs list or InvalidParameterException the TypeDefCategory is null or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findTypeDefsByProperty

      @GetMapping(path="/types/typedefs/by-property") public TypeDefListResponse findTypeDefsByProperty(@PathVariable String serverName, @PathVariable String userId, @RequestBody TypeDefProperties matchCriteria)
      Return the TypeDefs that have the properties matching the supplied match criteria.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      matchCriteria - TypeDefProperties a list of property names.
      Returns:
      TypeDefListResponse: TypeDefs list or InvalidParameterException the matchCriteria is null or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findTypesByExternalID

      @GetMapping(path="/types/typedefs/by-external-id") public TypeDefListResponse findTypesByExternalID(@PathVariable String serverName, @PathVariable String userId, @RequestParam(required=false) String standard, @RequestParam(required=false) String organization, @RequestParam(required=false) String identifier)
      Return the types that are linked to the elements from the specified standard.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      standard - name of the standard null means any.
      organization - name of the organization null means any.
      identifier - identifier of the element in the standard null means any.
      Returns:
      TypeDefsGalleryResponse: A list of types or InvalidParameterException all attributes of the external id are null or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • searchForTypeDefs

      @GetMapping(path="/types/typedefs/by-property-value") public TypeDefListResponse searchForTypeDefs(@PathVariable String serverName, @PathVariable String userId, @RequestParam String searchCriteria)
      Return the TypeDefs that match the search criteria.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      searchCriteria - String search criteria.
      Returns:
      TypeDefListResponse: TypeDefs list or InvalidParameterException the searchCriteria is null or RepositoryErrorException there is a problem communicating with the metadata repository or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getTypeDefByGUID

      @GetMapping(path="/types/typedef/{guid}") public TypeDefResponse getTypeDefByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Return the TypeDef identified by the GUID.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique id of the TypeDef.
      Returns:
      TypeDefResponse: TypeDef structure describing its category and properties or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeDefNotKnownException The requested TypeDef is not known in the metadata collection or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getAttributeTypeDefByGUID

      @GetMapping(path="/types/attribute-typedef/{guid}") public AttributeTypeDefResponse getAttributeTypeDefByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Return the AttributeTypeDef identified by the GUID.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique id of the TypeDef
      Returns:
      AttributeTypeDefResponse: TypeDef structure describing its category and properties or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeDefNotKnownException The requested TypeDef is not known in the metadata collection or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getTypeDefByName

      @GetMapping(path="/types/typedef/name/{name}") public TypeDefResponse getTypeDefByName(@PathVariable String serverName, @PathVariable String userId, @PathVariable String name)
      Return the TypeDef identified by the unique name.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      name - String name of the TypeDef.
      Returns:
      TypeDefResponse: TypeDef structure describing its category and properties or InvalidParameterException the name is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeDefNotKnownException the requested TypeDef is not found in the metadata collection or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getAttributeTypeDefByName

      @GetMapping(path="/types/attribute-typedef/name/{name}") public AttributeTypeDefResponse getAttributeTypeDefByName(@PathVariable String serverName, @PathVariable String userId, @PathVariable String name)
      Return the AttributeTypeDef identified by the unique name.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      name - String name of the TypeDef.
      Returns:
      AttributeTypeDefResponse: AttributeTypeDef structure describing its category and properties or InvalidParameterException the name is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeDefNotKnownException the requested TypeDef is not found in the metadata collection or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • verifyTypeDef

      @PostMapping(path="/types/typedef/compatibility") public BooleanResponse verifyTypeDef(@PathVariable String serverName, @PathVariable String userId, @RequestBody TypeDef typeDef)
      Verify that a definition of a TypeDef is either new or matches the definition already stored.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      typeDef - TypeDef structure describing the TypeDef to test.
      Returns:
      BooleanResponse: boolean true means the TypeDef matches the local definition false means the TypeDef is not known or InvalidParameterException the TypeDef is null. RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored. TypeDefNotSupportedException the repository is not able to support this TypeDef. TypeDefConflictException the new TypeDef conflicts with an existing TypeDef. InvalidTypeDefException the new TypeDef has invalid contents. UserNotAuthorizedException the userId is not permitted to perform this operation.
    • verifyAttributeTypeDef

      @PostMapping(path="/types/attribute-typedef/compatibility") public BooleanResponse verifyAttributeTypeDef(@PathVariable String serverName, @PathVariable String userId, @RequestBody AttributeTypeDef attributeTypeDef)
      Verify that a definition of an AttributeTypeDef is either new or matches the definition already stored.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      attributeTypeDef - TypeDef structure describing the TypeDef to test.
      Returns:
      BooleanResponse: boolean true means the TypeDef matches the local definition false means the TypeDef is not known or InvalidParameterException the TypeDef is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeDefNotSupportedException the repository is not able to support this TypeDef or TypeDefConflictException the new TypeDef conflicts with an existing TypeDef or InvalidTypeDefException the new TypeDef has invalid contents or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • isEntityKnown

      @GetMapping(path="/instances/entity/{guid}/existence") public EntityDetailResponse isEntityKnown(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Returns a boolean indicating if the entity is stored in the metadata collection. This entity may be a full entity object, or an entity proxy.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the entity
      Returns:
      the entity details if the entity is found in the metadata collection; otherwise return null InvalidParameterException the guid is null. RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored. UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEntitySummary

      @GetMapping(path="/instances/entity/{guid}/summary") public EntitySummaryResponse getEntitySummary(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Return the header and classifications for a specific entity. The returned entity summary may be from a full entity object or an entity proxy.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the entity
      Returns:
      EntitySummary structure or InvalidParameterException the guid is null. RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored. EntityNotKnownException the requested entity instance is not known in the metadata collection. UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEntityDetail

      @GetMapping(path="/instances/entity/{guid}") public EntityDetailResponse getEntityDetail(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Return the header, classifications and properties of a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the entity.
      Returns:
      EntityDetailResponse: EntityDetail structure or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the requested entity instance is not known in the metadata collection or EntityProxyOnlyException the requested entity instance is only a proxy in the metadata collection or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEntityDetail

      @PostMapping(path="/instances/entity/{guid}/history") public EntityDetailResponse getEntityDetail(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid, @RequestBody HistoryRequest asOfTime)
      Return a historical version of an entity includes the header, classifications and properties of the entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the entity.
      asOfTime - the time used to determine which version of the entity that is desired.
      Returns:
      EntityDetailResponse: EntityDetail structure or InvalidParameterException the guid or date is null or the asOfTime property is for a future time or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the requested entity instance is not known in the metadata collection at the time requested or EntityProxyOnlyException the requested entity instance is only a proxy in the metadata collection or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelationshipsForEntity

      @PostMapping(path="/instances/entity/{entityGUID}/relationships") public RelationshipListResponse getRelationshipsForEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestBody TypeLimitedFindRequest findRequestParameters)
      Return the relationships for a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier for the entity.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: Relationships list. Null means no relationships associated with the entity or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the requested entity instance is not known in the metadata collection or PropertyErrorException the sequencing property is not valid for the attached classifications or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelationshipsForEntityHistory

      @PostMapping(path="/instances/entity/{entityGUID}/relationships/history") public RelationshipListResponse getRelationshipsForEntityHistory(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestBody TypeLimitedHistoricalFindRequest findRequestParameters)
      Return the relationships for a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier for the entity.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: Relationships list. Null means no relationships associated with the entity or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the requested entity instance is not known in the metadata collection or PropertyErrorException the sequencing property is not valid for the attached classifications or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntities

      @PostMapping(path="/instances/entities") public EntityListResponse findEntities(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityFindRequest findRequestParameters)
      Return a list of entities that match the supplied conditions. The results can be returned over many pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByHistory

      @PostMapping(path="/instances/entities/history") public EntityListResponse findEntitiesByHistory(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityHistoricalFindRequest findRequestParameters)
      Return a list of entities that match the supplied conditions. The results can be returned over many pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByProperty

      @PostMapping(path="/instances/entities/by-property") public EntityListResponse findEntitiesByProperty(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityPropertyFindRequest findRequestParameters)
      Return a list of entities that match the supplied properties according to the match criteria. The results can be returned over many pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByPropertyHistory

      @PostMapping(path="/instances/entities/by-property/history") public EntityListResponse findEntitiesByPropertyHistory(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityPropertyHistoricalFindRequest findRequestParameters)
      Return a list of entities that match the supplied properties according to the match criteria. The results can be returned over many pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByClassification

      @PostMapping(path="/instances/entities/by-classification/{classificationName}") public EntityListResponse findEntitiesByClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody PropertyMatchFindRequest findRequestParameters)
      Return a list of entities that have the requested type of classification attached.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - name of the classification a null is not valid.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria, null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or ClassificationErrorException the classification request is not known to the metadata collection. PropertyErrorException the properties specified are not valid for the requested type of classification or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByClassificationHistory

      @PostMapping(path="/instances/entities/by-classification/{classificationName}/history") public EntityListResponse findEntitiesByClassificationHistory(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody PropertyMatchHistoricalFindRequest findRequestParameters)
      Return a list of entities that have the requested type of classification attached.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - name of the classification a null is not valid.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria, null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or ClassificationErrorException the classification request is not known to the metadata collection. PropertyErrorException the properties specified are not valid for the requested type of classification or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByPropertyValue

      @PostMapping(path="/instances/entities/by-property-value") public EntityListResponse findEntitiesByPropertyValue(@PathVariable String serverName, @PathVariable String userId, @RequestParam String searchCriteria, @RequestBody EntityPropertyFindRequest findRequestParameters)
      Return a list of entities whose string based property values match the search criteria. The search criteria may include regex style wild cards.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      searchCriteria - String expression of the characteristics of the required relationships.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria, null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the sequencing property specified is not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly. FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findEntitiesByPropertyValueHistory

      @PostMapping(path="/instances/entities/by-property-value/history") public EntityListResponse findEntitiesByPropertyValueHistory(@PathVariable String serverName, @PathVariable String userId, @RequestParam String searchCriteria, @RequestBody EntityPropertyHistoricalFindRequest findRequestParameters)
      Return a list of entities whose string based property values match the search criteria. The search criteria may include regex style wild cards.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      searchCriteria - String expression of the characteristics of the required relationships.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: a list of entities matching the supplied criteria, null means no matching entities in the metadata collection or InvalidParameterException a parameter is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the sequencing property specified is not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly. FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • isRelationshipKnown

      @GetMapping(path="/instances/relationship/{guid}/existence") public RelationshipResponse isRelationshipKnown(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Returns a boolean indicating if the relationship is stored in the metadata collection.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the relationship.
      Returns:
      RelationshipResponse: relationship details if the relationship is found in the metadata collection; otherwise return null or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelationship

      @GetMapping(path="/instances/relationship/{guid}") public RelationshipResponse getRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid)
      Return a requested relationship.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the relationship.
      Returns:
      RelationshipResponse: a relationship structure or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the metadata collection does not have a relationship with the requested GUID stored or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelationship

      @PostMapping(path="/instances/relationship/{guid}/history") public RelationshipResponse getRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String guid, @RequestBody HistoryRequest asOfTime)
      Return a historical version of a relationship.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      guid - String unique identifier for the relationship.
      asOfTime - the time used to determine which version of the entity that is desired.
      Returns:
      RelationshipResponse: a relationship structure or InvalidParameterException the guid or date is null or the asOfTime property is for a future time or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested entity instance is not known in the metadata collection at the time requested or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationships

      @PostMapping(path="/instances/relationships") public RelationshipListResponse findRelationships(@PathVariable String serverName, @PathVariable String userId, @RequestBody InstanceFindRequest findRequestParameters)
      Return a list of relationships that match the requested conditions. The results can be broken into pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of relationships or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationshipsByHistory

      @PostMapping(path="/instances/relationships/history") public RelationshipListResponse findRelationshipsByHistory(@PathVariable String serverName, @PathVariable String userId, @RequestBody InstanceHistoricalFindRequest findRequestParameters)
      Return a list of relationships that match the requested conditions. The results can be broken into pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of relationships or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationshipsByProperty

      @PostMapping(path="/instances/relationships/by-property") public RelationshipListResponse findRelationshipsByProperty(@PathVariable String serverName, @PathVariable String userId, @RequestBody PropertyMatchFindRequest findRequestParameters)
      Return a list of relationships that match the requested properties by the matching criteria. The results can be broken into pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of relationships or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationshipsByPropertyHistory

      @PostMapping(path="/instances/relationships/by-property/history") public RelationshipListResponse findRelationshipsByPropertyHistory(@PathVariable String serverName, @PathVariable String userId, @RequestBody PropertyMatchHistoricalFindRequest findRequestParameters)
      Return a list of relationships that match the requested properties by the matching criteria. The results can be broken into pages.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException the properties specified are not valid for any of the requested types of relationships or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationshipsByPropertyValue

      @PostMapping(path="/instances/relationships/by-property-value") public RelationshipListResponse findRelationshipsByPropertyValue(@PathVariable String serverName, @PathVariable String userId, @RequestParam String searchCriteria, @RequestBody TypeLimitedFindRequest findRequestParameters)
      Return a list of relationships that match the search criteria. The results can be paged.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      searchCriteria - String expression of the characteristics of the required relationships.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException there is a problem with one of the other parameters or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • findRelationshipsByPropertyValueHistory

      @PostMapping(path="/instances/relationships/by-property-value/history") public RelationshipListResponse findRelationshipsByPropertyValueHistory(@PathVariable String serverName, @PathVariable String userId, @RequestParam String searchCriteria, @RequestBody TypeLimitedHistoricalFindRequest findRequestParameters)
      Return a list of relationships that match the search criteria. The results can be paged.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      searchCriteria - String expression of the characteristics of the required relationships.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      RelationshipListResponse: a list of relationships. Null means no matching relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException the type guid passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or PropertyErrorException there is a problem with one of the other parameters or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getLinkingEntities

      @PostMapping(path="/instances/entities/from-entity/{startEntityGUID}/by-linkage") public InstanceGraphResponse getLinkingEntities(@PathVariable String serverName, @PathVariable String userId, @PathVariable String startEntityGUID, @RequestParam String endEntityGUID, @RequestBody OMRSAPIFindRequest findRequestParameters)
      Return all the relationships and intermediate entities that connect the startEntity with the endEntity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      startEntityGUID - The entity that is used to anchor the query.
      endEntityGUID - the other entity that defines the scope of the query.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      InstanceGraphResponse: the sub-graph that represents the returned linked entities and their relationships or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by either the startEntityGUID or the endEntityGUID is not found in the metadata collection or PropertyErrorException there is a problem with one of the other parameters or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getLinkingEntitiesHistory

      @PostMapping(path="/instances/entities/from-entity/{startEntityGUID}/by-linkage/history") public InstanceGraphResponse getLinkingEntitiesHistory(@PathVariable String serverName, @PathVariable String userId, @PathVariable String startEntityGUID, @RequestParam String endEntityGUID, @RequestBody OMRSAPIHistoricalFindRequest findRequestParameters)
      Return all the relationships and intermediate entities that connect the startEntity with the endEntity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      startEntityGUID - The entity that is used to anchor the query.
      endEntityGUID - the other entity that defines the scope of the query.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      InstanceGraphResponse: the sub-graph that represents the returned linked entities and their relationships or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by either the startEntityGUID or the endEntityGUID is not found in the metadata collection or PropertyErrorException there is a problem with one of the other parameters or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEntityNeighborhood

      @PostMapping(path="/instances/entities/from-entity/{entityGUID}/by-neighborhood") public InstanceGraphResponse getEntityNeighborhood(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestParam int level, @RequestBody EntityNeighborhoodFindRequest findRequestParameters)
      Return the entities and relationships that radiate out from the supplied entity GUID. The results are scoped both the instance type guids and the level.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - the starting point of the query.
      level - the number of the relationships out from the starting entity that the query will traverse to gather results.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      InstanceGraphResponse the sub-graph that represents the returned linked entities and their relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException one of the type guids passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the entityGUID is not found in the metadata collection or PropertyErrorException there is a problem with one of the other parameters or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEntityNeighborhoodHistory

      @PostMapping(path="/instances/entities/from-entity/{entityGUID}/by-neighborhood/history") public InstanceGraphResponse getEntityNeighborhoodHistory(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestParam int level, @RequestBody EntityNeighborhoodHistoricalFindRequest findRequestParameters)
      Return the entities and relationships that radiate out from the supplied entity GUID. The results are scoped both the instance type guids and the level.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - the starting point of the query.
      level - the number of the relationships out from the starting entity that the query will traverse to gather results.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      InstanceGraphResponse the sub-graph that represents the returned linked entities and their relationships or InvalidParameterException one of the parameters is invalid or null or TypeErrorException one of the type guids passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the entityGUID is not found in the metadata collection or PropertyErrorException there is a problem with one of the other parameters or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelatedEntities

      @PostMapping(path="/instances/entities/from-entity/{startEntityGUID}/by-relationship") public EntityListResponse getRelatedEntities(@PathVariable String serverName, @PathVariable String userId, @PathVariable String startEntityGUID, @RequestBody RelatedEntitiesFindRequest findRequestParameters)
      Return the list of entities that are of the types listed in instanceTypes and are connected, either directly or indirectly to the entity identified by startEntityGUID.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      startEntityGUID - unique identifier of the starting entity.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: list of entities either directly or indirectly connected to the start entity or InvalidParameterException one of the parameters is invalid or null or TypeErrorException one of the type guids passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or EntityNotKnownException the entity identified by the startEntityGUID is not found in the metadata collection or PropertyErrorException the sequencing property specified is not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getRelatedEntitiesHistory

      @PostMapping(path="/instances/entities/from-entity/{startEntityGUID}/by-relationship/history") public EntityListResponse getRelatedEntitiesHistory(@PathVariable String serverName, @PathVariable String userId, @PathVariable String startEntityGUID, @RequestBody RelatedEntitiesHistoricalFindRequest findRequestParameters)
      Return the list of entities that are of the types listed in instanceTypes and are connected, either directly or indirectly to the entity identified by startEntityGUID.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      startEntityGUID - unique identifier of the starting entity.
      findRequestParameters - find parameters used to limit the returned results.
      Returns:
      EntityListResponse: list of entities either directly or indirectly connected to the start entity or InvalidParameterException one of the parameters is invalid or null or TypeErrorException one of the type guids passed on the request is not known by the metadata collection or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or EntityNotKnownException the entity identified by the startEntityGUID is not found in the metadata collection or PropertyErrorException the sequencing property specified is not valid for any of the requested types of entity or PagingErrorException the paging/sequencing parameters are set up incorrectly or FunctionNotSupportedException the repository does not support asOfTime parameter or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • addEntity

      @PostMapping(path="/instances/entity") public EntityDetailResponse addEntity(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityCreateRequest requestBody)
      Create a new entity and put it in the requested state. The new entity is returned.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      requestBody - parameters for the new entity
      Returns:
      EntityDetailResponse: EntityDetail showing the new header plus the requested properties and classifications. The entity will not have any relationships at this stage or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this entity's type or ClassificationErrorException one or more of the requested classifications are either not known or not defined for this entity type or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • addExternalEntity

      @PostMapping(path="/instances/entity/external") public EntityDetailResponse addExternalEntity(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityCreateRequest requestBody)
      Save a new entity that is sourced from an external technology. The external technology is identified by a GUID and a name. These can be recorded in a Software Server Capability (guid and qualifiedName respectively). The new entity is assigned a new GUID and put in the requested state. The new entity is returned.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      requestBody - parameters for the new entity
      Returns:
      EntityDetailResponse: EntityDetail showing the new header plus the requested properties and classifications. The entity will not have any relationships at this stage or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this entity's type or ClassificationErrorException one or more of the requested classifications are either not known or not defined for this entity type or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • addEntityProxy

      @PostMapping(path="/instances/entity-proxy") public VoidResponse addEntityProxy(@PathVariable String serverName, @PathVariable String userId, @RequestBody EntityProxy entityProxy)
      Create an entity proxy in the metadata collection. This is used to store relationships that span metadata repositories.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityProxy - details of entity to add.
      Returns:
      VoidResponse: void or InvalidParameterException the entity proxy is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this entity's type or ClassificationErrorException one or more of the requested classifications are either not known or not defined for this entity type or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or FunctionNotSupportedException the repository does not support entity proxies as first class elements or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateEntityStatus

      @PostMapping(path="/instances/entity/{entityGUID}/status") public EntityDetailResponse updateEntityStatus(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestBody InstanceStatus newStatus)
      Update the status for a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - unique identifier (guid) for the requested entity.
      newStatus - new InstanceStatus for the entity.
      Returns:
      EntityDetailResponse: EntityDetail showing the current entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection. StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateEntityProperties

      @PostMapping(path="/instances/entity/{entityGUID}/properties") public EntityDetailResponse updateEntityProperties(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @RequestBody InstancePropertiesRequest propertiesRequestBody)
      Update selected properties in an entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      propertiesRequestBody - a list of properties to change.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this entity's type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • undoEntityUpdate

      @GetMapping(path="/instances/entity/{entityGUID}/previous") public EntityDetailResponse undoEntityUpdate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID)
      Undo the last update to an entity and return the previous content.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or FunctionNotSupportedException the repository does not support undo or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • deleteEntity

      @PostMapping(path="/instances/entity/{obsoleteEntityGUID}/delete") public EntityDetailResponse deleteEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String obsoleteEntityGUID, @RequestBody TypeDefValidationForRequest typeDefValidationForRequest)
      Delete an entity. The entity is soft-deleted. This means it is still in the graph, but it is no longer returned on queries. All relationships to the entity are also soft-deleted and will no longer be usable. To completely eliminate the entity from the graph requires a call to the purgeEntity() method after the delete() call. The restoreEntity() method will switch an entity back to Active status to restore the entity to normal use.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      obsoleteEntityGUID - String unique identifier (guid) for the entity.
      typeDefValidationForRequest - information about the type used to confirm the right instance is specified.
      Returns:
      EntityDetailResponse details of the deleted entity or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or FunctionNotSupportedException the metadata repository hosting the metadata collection does not support soft-deletes (use purgeEntity() to remove the entity permanently) or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • purgeEntity

      @PostMapping(path="/instances/entity/{deletedEntityGUID}/purge") public VoidResponse purgeEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String deletedEntityGUID, @RequestBody TypeDefValidationForRequest typeDefValidationForRequest)
      Permanently removes a deleted entity from the metadata collection. This request can not be undone.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      deletedEntityGUID - String unique identifier (guid) for the entity.
      typeDefValidationForRequest - information about the type used to confirm the right instance is specified.
      Returns:
      VoidResponse: void or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or EntityNotDeletedException the entity is not in DELETED status and so can not be purged or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • restoreEntity

      @GetMapping(path="/instances/entity/{deletedEntityGUID}/restore") public EntityDetailResponse restoreEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String deletedEntityGUID)
      Restore the requested entity to the state it was before it was deleted.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      deletedEntityGUID - String unique identifier (guid) for the entity.
      Returns:
      EntityDetailResponse: EntityDetail showing the restored entity header, properties and classifications or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or EntityNotDeletedException the entity is currently not in DELETED status and so it can not be restored or FunctionNotSupportedException the repository does not support soft-delete or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • classifyEntity

      @PostMapping(path="/instances/entity/{entityGUID}/classification/{classificationName}") public EntityDetailResponse classifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @PathVariable String classificationName, @RequestBody InstancePropertiesRequest propertiesRequestBody)
      Add the requested classification to a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      classificationName - String name for the classification.
      propertiesRequestBody - list of properties to set in the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is either not known or not valid for the entity or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • classifyEntity

      @PostMapping(path="/instances/entity/classification/{classificationName}") public ClassificationResponse classifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody ProxyClassificationRequest requestBody)
      Add the requested classification to a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - String name for the classification.
      requestBody - list of properties to set in the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is either not known or not valid for the entity or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • classifyEntity

      @PostMapping(path="/instances/entity/{entityGUID}/classification/{classificationName}/detailed") public EntityDetailResponse classifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @PathVariable String classificationName, @RequestBody ClassificationRequest classificationRequestBody)
      Add the requested classification to a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      classificationName - String name for the classification.
      classificationRequestBody - values for the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is either not known or not valid for the entity or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or FunctionNotSupportedException the repository does not support maintenance of metadata. UserNotAuthorizedException the userId is not permitted to perform this operation.
    • classifyEntity

      @PostMapping(path="/instances/entity/classification/{classificationName}/detailed") public ClassificationResponse classifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody ClassificationProxyRequest requestBody)
      Add the requested classification to a specific entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - String name for the classification.
      requestBody - values for the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is either not known or not valid for the entity or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or FunctionNotSupportedException the repository does not support maintenance of metadata. UserNotAuthorizedException the userId is not permitted to perform this operation.
    • declassifyEntity

      @PostMapping(path="/instances/entity/{entityGUID}/classification/{classificationName}/delete") public EntityDetailResponse declassifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @PathVariable String classificationName, @RequestBody(required=false) OMRSAPIRequest requestBody)
      Remove a specific classification from an entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      classificationName - String name for the classification.
      requestBody - empty request body
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection ClassificationErrorException the requested classification is not set on the entity or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • declassifyEntity

      @PostMapping(path="/instances/entity/classification/{classificationName}/delete") public ClassificationResponse declassifyEntity(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody EntityProxy requestBody)
      Remove a specific classification from an entity.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - String name for the classification.
      requestBody - entity proxy request body
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection ClassificationErrorException the requested classification is not set on the entity or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateEntityClassification

      @PostMapping(path="/instances/entity/{entityGUID}/classification/{classificationName}/properties") public EntityDetailResponse updateEntityClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String entityGUID, @PathVariable String classificationName, @RequestBody InstancePropertiesRequest propertiesRequestBody)
      Update one or more properties in one of an entity's classifications.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      entityGUID - String unique identifier (guid) for the entity.
      classificationName - String name for the classification.
      propertiesRequestBody - list of properties for the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is not attached to the classification or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateEntityClassification

      @PostMapping(path="/instances/entity/classification/{classificationName}/properties") public ClassificationResponse updateEntityClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String classificationName, @RequestBody ProxyClassificationRequest requestBody)
      Update one or more properties in one of an entity's classifications.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      classificationName - String name for the classification.
      requestBody - list of properties for the classification.
      Returns:
      EntityDetailResponse: EntityDetail showing the resulting entity header, properties and classifications or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or EntityNotKnownException the entity identified by the guid is not found in the metadata collection or ClassificationErrorException the requested classification is not attached to the classification or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this classification type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • addRelationship

      @PostMapping(path="/instances/relationship") public RelationshipResponse addRelationship(@PathVariable String serverName, @PathVariable String userId, @RequestBody RelationshipCreateRequest createRequestParameters)
      Add a new relationship between two entities to the metadata collection.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      createRequestParameters - parameters used to fill out the new relationship
      Returns:
      RelationshipResponse: Relationship structure with the new header, requested entities and properties or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this relationship's type or EntityNotKnownException one of the requested entities is not known in the metadata collection or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • addExternalRelationship

      @PostMapping(path="/instances/relationship/external") public RelationshipResponse addExternalRelationship(@PathVariable String serverName, @PathVariable String userId, @RequestBody RelationshipCreateRequest createRequestParameters)
      Save a new relationship that is sourced from an external technology. The external technology is identified by a GUID and a name. These can be recorded in a Software Server Capability (guid and qualifiedName respectively). The new relationship is assigned a new GUID and put in the requested state. The new relationship is returned.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      createRequestParameters - parameters used to fill out the new relationship
      Returns:
      RelationshipResponse: Relationship structure with the new header, requested entities and properties or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or TypeErrorException the requested type is not known, or not supported in the metadata repository hosting the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this relationship's type or EntityNotKnownException one of the requested entities is not known in the metadata collection or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateRelationshipStatus

      @PostMapping(path="/instances/relationship/{relationshipGUID}/status") public RelationshipResponse updateRelationshipStatus(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID, @RequestBody InstanceStatus newStatus)
      Update the status of a specific relationship.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      relationshipGUID - String unique identifier (guid) for the relationship.
      newStatus - new InstanceStatus for the relationship.
      Returns:
      RelationshipResponse: Resulting relationship structure with the new status set or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or StatusNotSupportedException the metadata repository hosting the metadata collection does not support the requested status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • updateRelationshipProperties

      @PostMapping(path="/instances/relationship/{relationshipGUID}/properties") public RelationshipResponse updateRelationshipProperties(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID, @RequestBody InstancePropertiesRequest propertiesRequestBody)
      Update the properties of a specific relationship.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      relationshipGUID - String unique identifier (guid) for the relationship.
      propertiesRequestBody - list of the properties to update.
      Returns:
      RelationshipResponse: Resulting relationship structure with the new properties set or InvalidParameterException one of the parameters is invalid or null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or PropertyErrorException one or more of the requested properties are not defined, or have different characteristics in the TypeDef for this relationship's type or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • undoRelationshipUpdate

      @GetMapping(path="/instances/relationship/{relationshipGUID}/previous") public RelationshipResponse undoRelationshipUpdate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID)
      Undo the latest change to a relationship (either a change of properties or status).
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      relationshipGUID - String unique identifier (guid) for the relationship.
      Returns:
      RelationshipResponse: Relationship structure with the new current header, requested entities and properties or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or FunctionNotSupportedException the repository does not support undo or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • deleteRelationship

      @PostMapping(path="/instances/relationship/{obsoleteRelationshipGUID}/delete") public RelationshipResponse deleteRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String obsoleteRelationshipGUID, @RequestBody TypeDefValidationForRequest typeDefValidationForRequest)
      Delete a specific relationship. This is a soft-delete which means the relationship's status is updated to DELETED, and it is no longer available for queries. To remove the relationship permanently from the metadata collection, use purgeRelationship().
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      obsoleteRelationshipGUID - String unique identifier (guid) for the relationship.
      typeDefValidationForRequest - information about the type used to confirm the right instance is specified.
      Returns:
      RelationshipResponse: Updated relationship or InvalidParameterException one of the parameters is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or FunctionNotSupportedException the metadata repository hosting the metadata collection does not support soft-deletes or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • purgeRelationship

      @PostMapping(path="/instances/relationship/{deletedRelationshipGUID}/purge") public VoidResponse purgeRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String deletedRelationshipGUID, @RequestBody TypeDefValidationForRequest typeDefValidationForRequest)
      Permanently delete the relationship from the repository. There is no means to undo this request.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      deletedRelationshipGUID - String unique identifier (guid) for the relationship.
      typeDefValidationForRequest - information about the type used to confirm the right instance is specified.
      Returns:
      VoidResponse: void or InvalidParameterException one of the parameters is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or RelationshipNotDeletedException the requested relationship is not in DELETED status or UserNotAuthorizedException the userId is not permitted to perform this operation.
    • restoreRelationship

      @GetMapping(path="/instances/relationship/{deletedRelationshipGUID}/restore") public RelationshipResponse restoreRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String deletedRelationshipGUID)
      Restore a deleted relationship into the metadata collection. The new status will be ACTIVE and the restored details of the relationship are returned to the caller.
      Parameters:
      serverName - unique identifier for requested server.
      userId - unique identifier for requesting user.
      deletedRelationshipGUID - String unique identifier (guid) for the relationship.
      Returns:
      RelationshipResponse: Relationship structure with the restored header, requested entities and properties or InvalidParameterException the guid is null or RepositoryErrorException there is a problem communicating with the metadata repository where the metadata collection is stored or RelationshipNotKnownException the requested relationship is not known in the metadata collection or RelationshipNotDeletedException the requested relationship is not in DELETED status or FunctionNotSupportedException the repository does not support soft-deletes UserNotAuthorizedException the userId is not permitted to perform this operation.
    • getEnterpriseOMRSTopicConnection

      @GetMapping(path="/remote-topic-connection") public ConnectionResponse getEnterpriseOMRSTopicConnection(@PathVariable String serverName, @PathVariable String userId)
      Return the connection for remote access to the enterprise topic connector. May be null if remote access to this topic is not configured in the OMAG Server.
      Parameters:
      serverName - unique identifier for requested server
      userId - unique identifier for requesting server
      Returns:
      null or connection object or InvalidParameterException unknown servername UserNotAuthorizedException unsupported userId RepositoryErrorException null local repository