Class ITAssetResource
java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.server.spring.ITAssetResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/access-services/it-infrastructure/users/{userId}")
public class ITAssetResource
extends Object
ITAssetResource is the server-side of AssetManagerClientBase. It is called from the specific clients that manage the
specializations of IT Infrastructure assets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddClassification
(String serverName, String userId, String assetTypeName, String assetGUID, String classificationName, boolean infrastructureManagerIsHome, AssetExtensionsRequestBody requestBody) Add a classification to an asset.clearClassification
(String serverName, String userId, String assetTypeName, String assetGUID, String classificationName, EffectiveTimeQueryRequestBody requestBody) Remove a classification from an asset.clearControlFlow
(String serverName, String userId, String controlFlowGUID, EffectiveTimeQueryRequestBody requestBody) Remove the control flow relationship between two elements.clearDataFlow
(String serverName, String userId, String dataFlowGUID, EffectiveTimeQueryRequestBody requestBody) Remove the data flow relationship between two elements.clearLineageMapping
(String serverName, String userId, String lineageMappingGUID, EffectiveTimeQueryRequestBody requestBody) Remove the lineage mapping between two elements.clearProcessCall
(String serverName, String userId, String processCallGUID, EffectiveTimeQueryRequestBody requestBody) Remove the process call relationship.clearRelatedAsset
(String serverName, String userId, String assetTypeName, String assetGUID, String relationshipTypeName, String relatedAssetTypeName, String relatedAssetGUID, EffectiveTimeQueryRequestBody requestBody) Remove a relationship between an asset and a related asset.createAsset
(String serverName, String userId, boolean infrastructureManagerIsHome, AssetRequestBody requestBody) Create a new metadata element to represent an asset.createAssetFromTemplate
(String serverName, String userId, String templateGUID, boolean infrastructureManagerIsHome, TemplateRequestBody requestBody) Create a new metadata element to represent an asset using an existing metadata element as a template.findAssets
(String serverName, String userId, String assetTypeName, int startFrom, int pageSize, SearchStringRequestBody requestBody) Retrieve the list of asset metadata elements that contain the search string.getAssetByGUID
(String serverName, String userId, String assetTypeName, String assetGUID, EffectiveTimeRequestBody requestBody) Retrieve the asset metadata element with the supplied unique identifier.getAssetRelationships
(String serverName, String userId, String assetTypeName, String assetGUID, String relationshipTypeName, String relatedAssetTypeName, int startingEnd, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Return the list of relationships between assets.getAssetsByDeployedImplementationType
(String serverName, String userId, String assetTypeName, int startFrom, int pageSize, NameRequestBody requestBody) Retrieve the list of asset metadata elements with a matching deployed implementation type.getAssetsByName
(String serverName, String userId, String assetTypeName, int startFrom, int pageSize, NameRequestBody requestBody) Retrieve the list of asset metadata elements with a matching qualified or display name.getAssetsForInfrastructureManager
(String serverName, String userId, String infrastructureManagerGUID, String infrastructureManagerName, String assetTypeName, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the list of assets created by this caller.getControlFlow
(String serverName, String userId, String currentStepGUID, String nextStepGUID, NameRequestBody requestBody) Retrieve the control flow relationship between two elements.getControlFlowNextSteps
(String serverName, String userId, String currentStepGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the control relationships linked from a specific element to the possible next elements in the process.getControlFlowPreviousSteps
(String serverName, String userId, String currentStepGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the control relationships linked from a specific element to the possible previous elements in the process.getDataFlow
(String serverName, String userId, String dataSupplierGUID, String dataConsumerGUID, NameRequestBody requestBody) Retrieve the data flow relationship between two elements.getDataFlowConsumers
(String serverName, String userId, String dataSupplierGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the data flow relationships linked from a specific element to the downstream consumers.getDataFlowSuppliers
(String serverName, String userId, String dataConsumerGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the data flow relationships linked from a specific element to the upstream suppliers.getDestinationLineageMappings
(String serverName, String userId, String sourceElementGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the lineage mapping relationships linked from a specific source element to its destinations.getLineageMapping
(String serverName, String userId, String sourceElementGUID, String destinationElementGUID, NameRequestBody requestBody) Retrieve the process call relationship between two elements.getProcessCall
(String serverName, String userId, String callerGUID, String calledGUID, NameRequestBody requestBody) Retrieve the process call relationship between two elements.getProcessCalled
(String serverName, String userId, String callerGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the process call relationships linked from a specific element to the elements it calls.getProcessCallers
(String serverName, String userId, String calledGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the process call relationships linked from a specific element to its callers.getRelatedAssets
(String serverName, String userId, String assetTypeName, String assetGUID, String relationshipTypeName, String relatedAssetTypeName, int startingEnd, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Return the list of assets linked by another asset.getSourceLineageMappings
(String serverName, String userId, String destinationElementGUID, int startFrom, int pageSize, EffectiveTimeRequestBody requestBody) Retrieve the lineage mapping relationships linked from a specific destination element to its sources.publishAsset
(String serverName, String userId, String assetGUID, NullRequestBody requestBody) Update the zones for the asset so that it becomes visible to consumers.removeAsset
(String serverName, String userId, String assetGUID, ExternalSourceRequestBody requestBody) Remove the metadata element representing an asset.setupControlFlow
(String serverName, String userId, String currentStepGUID, String nextStepGUID, boolean infrastructureManagerIsHome, ControlFlowRequestBody requestBody) Link two elements to show that when one completes the next is started.setupDataFlow
(String serverName, String userId, String dataSupplierGUID, String dataConsumerGUID, boolean infrastructureManagerIsHome, DataFlowRequestBody requestBody) Link two elements together to show that data flows from one to the other.setupLineageMapping
(String serverName, String userId, String sourceElementGUID, String destinationElementGUID, LineageMappingRequestBody requestBody) Link to elements together to show that they are part of the lineage of the data that is moving between the processes.setupProcessCall
(String serverName, String userId, String callerGUID, String calledGUID, boolean infrastructureManagerIsHome, ProcessCallRequestBody requestBody) Link two elements together to show a request-response call between them.setupRelatedAsset
(String serverName, String userId, String assetTypeName, String assetGUID, String relationshipTypeName, String relatedAssetTypeName, String relatedAssetGUID, boolean infrastructureManagerIsHome, AssetExtensionsRequestBody requestBody) Create a relationship between an asset and a related asset.updateAsset
(String serverName, String userId, String assetGUID, boolean isMergeUpdate, AssetRequestBody requestBody) Update the metadata element representing an asset.updateAssetRelationship
(String serverName, String userId, String relationshipTypeName, String relationshipGUID, boolean isMergeUpdate, AssetExtensionsRequestBody requestBody) Update a relationship between an asset and a related asset.updateAssetStatus
(String serverName, String userId, String assetTypeName, String assetGUID, ElementStatusRequestBody requestBody) Update the status of the metadata element representing an asset.updateClassification
(String serverName, String userId, String assetTypeName, String assetGUID, String classificationName, boolean isMergeUpdate, AssetExtensionsRequestBody requestBody) Update the properties of a classification for an asset.updateControlFlow
(String serverName, String userId, String controlFlowGUID, ControlFlowRequestBody requestBody) Update the relationship between two elements that shows that when one completes the next is started.updateDataFlow
(String serverName, String userId, String dataFlowGUID, DataFlowRequestBody requestBody) Update relationship between two elements that shows that data flows from one to the other.updateProcessCall
(String serverName, String userId, String processCallGUID, ProcessCallRequestBody requestBody) Update the relationship between two elements that shows a request-response call between them.withdrawAsset
(String serverName, String userId, String assetGUID, NullRequestBody requestBody) Update the zones for the asset so that it is no longer visible to consumers.
-
Constructor Details
-
ITAssetResource
public ITAssetResource()Default constructor
-
-
Method Details
-
createAsset
@PostMapping(path="/assets") public GUIDResponse createAsset(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean infrastructureManagerIsHome, @RequestBody AssetRequestBody requestBody) Create a new metadata element to represent an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userinfrastructureManagerIsHome
- should the asset be marked as owned by the infrastructure manager so others can not update?requestBody
- properties to store- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
createAssetFromTemplate
@PostMapping(path="/assets/from-template/{templateGUID}") public GUIDResponse createAssetFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String templateGUID, @RequestParam boolean infrastructureManagerIsHome, @RequestBody TemplateRequestBody requestBody) Create a new metadata element to represent an asset using an existing metadata element as a template.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userinfrastructureManagerIsHome
- should the asset be marked as owned by the infrastructure manager so others can not update?templateGUID
- unique identifier of the metadata element to copyrequestBody
- properties that override the template- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateAsset
@PostMapping(path="/assets/{assetGUID}") public VoidResponse updateAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetGUID, @RequestParam boolean isMergeUpdate, @RequestBody AssetRequestBody requestBody) Update the metadata element representing an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetGUID
- unique identifier of the metadata element to updateisMergeUpdate
- are unspecified properties unchanged (true) or removed?requestBody
- new properties for this element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateAssetStatus
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/status") public VoidResponse updateAssetStatus(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @RequestBody ElementStatusRequestBody requestBody) Update the status of the metadata element representing an asset.- Parameters:
serverName
- name of the server to route the request touserId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the asset to updaterequestBody
- new status for the process- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupRelatedAsset
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/{relationshipTypeName}/{relatedAssetTypeName}/{relatedAssetGUID}") public VoidResponse setupRelatedAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String relationshipTypeName, @PathVariable String relatedAssetTypeName, @PathVariable String relatedAssetGUID, @RequestParam boolean infrastructureManagerIsHome, @RequestBody AssetExtensionsRequestBody requestBody) Create a relationship between an asset and a related asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the assetrelationshipTypeName
- name of the relationship typerelatedAssetTypeName
- name of type for the assetrelatedAssetGUID
- unique identifier of the related assetinfrastructureManagerIsHome
- ensure that only the infrastructure manager can update this assetrequestBody
- properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateAssetRelationship
@PostMapping(path="/assets/relationships/{relationshipTypeName}/{relationshipGUID}/update") public VoidResponse updateAssetRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipTypeName, @PathVariable String relationshipGUID, @RequestParam boolean isMergeUpdate, @RequestBody AssetExtensionsRequestBody requestBody) Update a relationship between an asset and a related asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userrelationshipTypeName
- name of the relationship typerelationshipGUID
- unique identifier of the assetisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?requestBody
- new properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearRelatedAsset
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/{relationshipTypeName}/{relatedAssetTypeName}/{relatedAssetGUID}/delete") public VoidResponse clearRelatedAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String relationshipTypeName, @PathVariable String relatedAssetTypeName, @PathVariable String relatedAssetGUID, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove a relationship between an asset and a related asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the assetrelationshipTypeName
- name of the relationship typerelatedAssetTypeName
- name of type for the assetrelatedAssetGUID
- unique identifier of the related assetrequestBody
- unique identifier/name of software server capability representing the infrastructure manager- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
addClassification
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/classify/{classificationName}") public VoidResponse addClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String classificationName, @RequestParam boolean infrastructureManagerIsHome, @RequestBody AssetExtensionsRequestBody requestBody) Add a classification to an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the assetclassificationName
- name of the classification typeinfrastructureManagerIsHome
- ensure that only the infrastructure manager can update this assetrequestBody
- properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateClassification
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/reclassify/{classificationName}") public VoidResponse updateClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String classificationName, @RequestParam boolean isMergeUpdate, @RequestBody AssetExtensionsRequestBody requestBody) Update the properties of a classification for an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the assetclassificationName
- name of the classification typeisMergeUpdate
- should the supplied properties be merged with existing properties (true) by replacing just the properties with matching names, or should the entire properties of the instance be replaced?requestBody
- properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearClassification
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/declassify/{classificationName}") public VoidResponse clearClassification(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String classificationName, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove a classification from an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the assetclassificationName
- name of the classification typerequestBody
- properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
publishAsset
@PostMapping(path="/assets/{assetGUID}/publish") public VoidResponse publishAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetGUID, @RequestBody(required=false) NullRequestBody requestBody) Update the zones for the asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the IT Infrastructure OMAS).- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetGUID
- unique identifier of the metadata element to publishrequestBody
- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
withdrawAsset
@PostMapping(path="/assets/{assetGUID}/withdraw") public VoidResponse withdrawAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetGUID, @RequestBody(required=false) NullRequestBody requestBody) Update the zones for the asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the IT Infrastructure OMAS. This is the setting when the asset is first created).- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetGUID
- unique identifier of the metadata element to withdrawrequestBody
- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
removeAsset
@PostMapping(path="/assets/{assetGUID}/delete") public VoidResponse removeAsset(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetGUID, @RequestBody ExternalSourceRequestBody requestBody) Remove the metadata element representing an asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetGUID
- unique identifier of the metadata element to removerequestBody
- unique identifier/name of software server capability representing the infrastructure manager- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
findAssets
@PostMapping(path="/assets/{assetTypeName}/by-search-string") public AssetElementsResponse findAssets(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody SearchStringRequestBody requestBody) Retrieve the list of asset metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssetsByName
@PostMapping(path="/assets/{assetTypeName}/by-name") public AssetElementsResponse getAssetsByName(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody NameRequestBody requestBody) Retrieve the list of asset metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- name to search for- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssetsByDeployedImplementationType
@PostMapping(path="/assets/{assetTypeName}/by-deployed-implementation-type") public AssetElementsResponse getAssetsByDeployedImplementationType(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody(required=false) NameRequestBody requestBody) Retrieve the list of asset metadata elements with a matching deployed implementation type. There are no wildcards supported on this request.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- name to search for- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssetsForInfrastructureManager
@PostMapping(path="/infrastructure-managers/{infrastructureManagerGUID}/{infrastructureManagerName}/assets/{assetTypeName}") public AssetElementsResponse getAssetsForInfrastructureManager(@PathVariable String serverName, @PathVariable String userId, @PathVariable String infrastructureManagerGUID, @PathVariable String infrastructureManagerName, @PathVariable String assetTypeName, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the list of assets created by this caller.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userinfrastructureManagerGUID
- unique identifier of software server capability representing the infrastructure managerinfrastructureManagerName
- unique name of software server capability representing the infrastructure managerassetTypeName
- name of type for the assetstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- effective time for the query- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssetByGUID
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}") public AssetElementResponse getAssetByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the asset metadata element with the supplied unique identifier.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the requested metadata elementrequestBody
- effective time for the query- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getAssetRelationships
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/{relationshipTypeName}/{relatedAssetTypeName}/relationships") public AssetRelationshipsResponse getAssetRelationships(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String relationshipTypeName, @PathVariable String relatedAssetTypeName, @RequestParam int startingEnd, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Return the list of relationships between assets.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the asset to start withstartingEnd
- which end of the relationship to start at 0=either end; 1=end1 and 2=end 2relationshipTypeName
- name of type for the relationshiprelatedAssetTypeName
- name of type of retrieved assetsstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- effective time for the query- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getRelatedAssets
@PostMapping(path="/assets/{assetTypeName}/{assetGUID}/{relationshipTypeName}/{relatedAssetTypeName}") public RelatedAssetsResponse getRelatedAssets(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetTypeName, @PathVariable String assetGUID, @PathVariable String relationshipTypeName, @PathVariable String relatedAssetTypeName, @RequestParam int startingEnd, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Return the list of assets linked by another asset.- Parameters:
serverName
- name of the server to route the request to.userId
- calling userassetTypeName
- name of type for the assetassetGUID
- unique identifier of the asset to start withstartingEnd
- which end of the relationship to start at 0=either end; 1=end1 and 2=end 2relationshipTypeName
- name of type for the relationshiprelatedAssetTypeName
- name of type of retrieved assetsstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- effective time for the query- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupDataFlow
@PostMapping(path="/data-flows/suppliers/{dataSupplierGUID}/consumers/{dataConsumerGUID}") public GUIDResponse setupDataFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataSupplierGUID, @PathVariable String dataConsumerGUID, @RequestParam boolean infrastructureManagerIsHome, @RequestBody DataFlowRequestBody requestBody) Link two elements together to show that data flows from one to the other.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataSupplierGUID
- unique identifier of the data supplierdataConsumerGUID
- unique identifier of the data consumerinfrastructureManagerIsHome
- ensure that only the process manager can update this processrequestBody
- properties of the relationship- Returns:
- unique identifier of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getDataFlow
@PostMapping(path="/data-flows/suppliers/{dataSupplierGUID}/consumers/{dataConsumerGUID}/retrieve") public DataFlowElementResponse getDataFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataSupplierGUID, @PathVariable String dataConsumerGUID, @RequestBody NameRequestBody requestBody) Retrieve the data flow relationship between two elements. The qualifiedName is optional unless there is more than one data flow relationships between these two elements since it is used to disambiguate the request.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataSupplierGUID
- unique identifier of the data supplierdataConsumerGUID
- unique identifier of the data consumerrequestBody
- optional name to search for- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateDataFlow
@PostMapping(path="/data-flows/{dataFlowGUID}/update") public VoidResponse updateDataFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataFlowGUID, @RequestBody DataFlowRequestBody requestBody) Update relationship between two elements that shows that data flows from one to the other.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataFlowGUID
- unique identifier of the data flow relationshiprequestBody
- properties of the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearDataFlow
@PostMapping(path="/data-flows/{dataFlowGUID}/remove") public VoidResponse clearDataFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataFlowGUID, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove the data flow relationship between two elements.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataFlowGUID
- unique identifier of the data flow relationshiprequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getDataFlowConsumers
@PostMapping(path="/data-flows/suppliers/{dataSupplierGUID}/consumers/retrieve") public DataFlowElementsResponse getDataFlowConsumers(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataSupplierGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the data flow relationships linked from a specific element to the downstream consumers.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataSupplierGUID
- unique identifier of the data supplierstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getDataFlowSuppliers
@PostMapping(path="/data-flows/consumers/{dataConsumerGUID}/suppliers/retrieve") public DataFlowElementsResponse getDataFlowSuppliers(@PathVariable String serverName, @PathVariable String userId, @PathVariable String dataConsumerGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the data flow relationships linked from a specific element to the upstream suppliers.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdataConsumerGUID
- unique identifier of the data consumerstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupControlFlow
@PostMapping(path="/control-flows/current-steps/{currentStepGUID}/next-steps/{nextStepGUID}") public GUIDResponse setupControlFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String currentStepGUID, @PathVariable String nextStepGUID, @RequestParam boolean infrastructureManagerIsHome, @RequestBody ControlFlowRequestBody requestBody) Link two elements to show that when one completes the next is started.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercurrentStepGUID
- unique identifier of the previous stepnextStepGUID
- unique identifier of the next stepinfrastructureManagerIsHome
- ensure that only the process manager can update this processrequestBody
- properties of the relationship- Returns:
- unique identifier for the control flow relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getControlFlow
@PostMapping(path="/control-flows/current-steps/{currentStepGUID}/next-steps/{nextStepGUID}/retrieve") public ControlFlowElementResponse getControlFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String currentStepGUID, @PathVariable String nextStepGUID, @RequestBody NameRequestBody requestBody) Retrieve the control flow relationship between two elements. The qualifiedName is optional unless there is more than one control flow relationships between these two elements since it is used to disambiguate the request.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercurrentStepGUID
- unique identifier of the previous stepnextStepGUID
- unique identifier of the next steprequestBody
- unique identifier for this relationship- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateControlFlow
@PostMapping(path="/control-flows/{controlFlowGUID}/update") public VoidResponse updateControlFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String controlFlowGUID, @RequestBody ControlFlowRequestBody requestBody) Update the relationship between two elements that shows that when one completes the next is started.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercontrolFlowGUID
- unique identifier of the control flow relationshiprequestBody
- properties of the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearControlFlow
@PostMapping(path="/control-flows/{controlFlowGUID}/remove") public VoidResponse clearControlFlow(@PathVariable String serverName, @PathVariable String userId, @PathVariable String controlFlowGUID, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove the control flow relationship between two elements.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercontrolFlowGUID
- unique identifier of the control flow relationshiprequestBody
- effective time and external identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getControlFlowNextSteps
@PostMapping(path="/control-flows/current-steps/{currentStepGUID}/next-steps/retrieve") public ControlFlowElementsResponse getControlFlowNextSteps(@PathVariable String serverName, @PathVariable String userId, @PathVariable String currentStepGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the control relationships linked from a specific element to the possible next elements in the process.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercurrentStepGUID
- unique identifier of the current stepstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- null request body- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getControlFlowPreviousSteps
@PostMapping(path="/control-flows/current-steps/{currentStepGUID}/previous-steps/retrieve") public ControlFlowElementsResponse getControlFlowPreviousSteps(@PathVariable String serverName, @PathVariable String userId, @PathVariable String currentStepGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the control relationships linked from a specific element to the possible previous elements in the process.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercurrentStepGUID
- unique identifier of the previous steprequestBody
- unique identifiers of software server capability representing the caller (optional)startFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupProcessCall
@PostMapping(path="/process-calls/callers/{callerGUID}/called/{calledGUID}") public GUIDResponse setupProcessCall(@PathVariable String serverName, @PathVariable String userId, @PathVariable String callerGUID, @PathVariable String calledGUID, @RequestParam boolean infrastructureManagerIsHome, @RequestBody ProcessCallRequestBody requestBody) Link two elements together to show a request-response call between them.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercallerGUID
- unique identifier of the element that is making the callcalledGUID
- unique identifier of the element that is processing the callinfrastructureManagerIsHome
- ensure that only the process manager can update this processrequestBody
- properties of the relationship- Returns:
- unique identifier of the new relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getProcessCall
@PostMapping(path="/process-calls/callers/{callerGUID}/called/{calledGUID}/retrieve") public ProcessCallElementResponse getProcessCall(@PathVariable String serverName, @PathVariable String userId, @PathVariable String callerGUID, @PathVariable String calledGUID, @RequestBody NameRequestBody requestBody) Retrieve the process call relationship between two elements. The qualifiedName is optional unless there is more than one process call relationships between these two elements since it is used to disambiguate the request. This is often used in conjunction with update.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercallerGUID
- unique identifier of the element that is making the callcalledGUID
- unique identifier of the element that is processing the callrequestBody
- qualified name to disambiguate request- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateProcessCall
@PostMapping(path="/process-calls/{processCallGUID}/update") public VoidResponse updateProcessCall(@PathVariable String serverName, @PathVariable String userId, @PathVariable String processCallGUID, @RequestBody ProcessCallRequestBody requestBody) Update the relationship between two elements that shows a request-response call between them.- Parameters:
serverName
- name of the server to route the request touserId
- calling userprocessCallGUID
- unique identifier of the process call relationshiprequestBody
- properties of the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearProcessCall
@PostMapping(path="/process-calls/{processCallGUID}/remove") public VoidResponse clearProcessCall(@PathVariable String serverName, @PathVariable String userId, @PathVariable String processCallGUID, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove the process call relationship.- Parameters:
serverName
- name of the server to route the request touserId
- calling userprocessCallGUID
- unique identifier of the process call relationshiprequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getProcessCalled
@PostMapping(path="/process-calls/callers/{callerGUID}/called/retrieve") public ProcessCallElementsResponse getProcessCalled(@PathVariable String serverName, @PathVariable String userId, @PathVariable String callerGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the process call relationships linked from a specific element to the elements it calls.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercallerGUID
- unique identifier of the element that is making the callstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getProcessCallers
@PostMapping(path="/process-calls/called/{calledGUID}/callers/retrieve") public ProcessCallElementsResponse getProcessCallers(@PathVariable String serverName, @PathVariable String userId, @PathVariable String calledGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the process call relationships linked from a specific element to its callers.- Parameters:
serverName
- name of the server to route the request touserId
- calling usercalledGUID
- unique identifier of the element that is processing the callstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupLineageMapping
@PostMapping(path="/lineage-mappings/sources/{sourceElementGUID}/destinations/{destinationElementGUID}") public VoidResponse setupLineageMapping(@PathVariable String serverName, @PathVariable String userId, @PathVariable String sourceElementGUID, @PathVariable String destinationElementGUID, @RequestBody LineageMappingRequestBody requestBody) Link to elements together to show that they are part of the lineage of the data that is moving between the processes. Typically, the lineage relationships stitch together processes and data assets supported by different technologies.- Parameters:
serverName
- name of the server to route the request touserId
- calling usersourceElementGUID
- unique identifier of the sourcedestinationElementGUID
- unique identifier of the destinationrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getLineageMapping
@PostMapping(path="/lineage-mappings/sources/{sourceElementGUID}/destinations/{destinationElementGUID}/retrieve") public LineageMappingElementResponse getLineageMapping(@PathVariable String serverName, @PathVariable String userId, @PathVariable String sourceElementGUID, @PathVariable String destinationElementGUID, @RequestBody NameRequestBody requestBody) Retrieve the process call relationship between two elements. The qualifiedName is optional unless there is more than one process call relationships between these two elements since it is used to disambiguate the request. This is often used in conjunction with update.- Parameters:
serverName
- name of the server to route the request touserId
- calling usersourceElementGUID
- unique identifier of the sourcedestinationElementGUID
- unique identifier of the destinationrequestBody
- unique identifier for this relationship- Returns:
- unique identifier and properties of the relationship or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearLineageMapping
@PostMapping(path="/lineage-mappings/{lineageMappingGUID}/remove") public VoidResponse clearLineageMapping(@PathVariable String serverName, @PathVariable String userId, @PathVariable String lineageMappingGUID, @RequestBody EffectiveTimeQueryRequestBody requestBody) Remove the lineage mapping between two elements.- Parameters:
serverName
- name of the server to route the request touserId
- calling userlineageMappingGUID
- unique identifier of the relationshiprequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getDestinationLineageMappings
@PostMapping(path="/lineage-mappings/sources/{sourceElementGUID}/destinations/retrieve") public LineageMappingElementsResponse getDestinationLineageMappings(@PathVariable String serverName, @PathVariable String userId, @PathVariable String sourceElementGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the lineage mapping relationships linked from a specific source element to its destinations.- Parameters:
serverName
- name of the server to route the request touserId
- calling usersourceElementGUID
- unique identifier of the sourcestartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSourceLineageMappings
@PostMapping(path="/lineage-mappings/destinations/{destinationElementGUID}/sources/retrieve") public LineageMappingElementsResponse getSourceLineageMappings(@PathVariable String serverName, @PathVariable String userId, @PathVariable String destinationElementGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody EffectiveTimeRequestBody requestBody) Retrieve the lineage mapping relationships linked from a specific destination element to its sources.- Parameters:
serverName
- name of the server to route the request touserId
- calling userdestinationElementGUID
- unique identifier of the destinationstartFrom
- paging start pointpageSize
- maximum results that can be returnedrequestBody
- unique identifiers of software server capability representing the caller (optional)- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-