Class GovernanceEngineOMASResource
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceengine.server.spring.GovernanceEngineOMASResource
-
@RestController @RequestMapping("/servers/{serverName}/open-metadata/access-services/governance-engine/users/{userId}") public class GovernanceEngineOMASResource extends ObjectGovernanceEngineOMASResource supports the REST APIs for running Governance Action Service
-
-
Constructor Summary
Constructors Constructor Description GovernanceEngineOMASResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseclaimGovernanceAction(String serverName, String userId, String governanceActionGUID, NullRequestBody requestBody)Request that execution of a governance action is allocated to the caller.VoidResponseclassifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, NewClassificationRequestBody requestBody)Add a new classification to the metadata element.GUIDResponsecreateIncidentReport(String serverName, String userId, IncidentReportRequestBody requestBody)Create an incident report to capture the situation detected by this governance action service.GUIDResponsecreateMetadataElementInStore(String serverName, String userId, NewMetadataElementRequestBody requestBody)Create a new metadata element in the metadata store.GUIDResponsecreateRelatedElementsInStore(String serverName, String userId, NewRelatedElementsRequestBody requestBody)Create a relationship between two metadata elements.VoidResponsedeleteMetadataElementInStore(String serverName, String userId, String metadataElementGUID, UpdateRequestBody requestBody)Delete a specific metadata element.VoidResponsedeleteRelatedElementsInStore(String serverName, String userId, String relationshipGUID, NullRequestBody requestBody)Delete a relationship between two metadata elements.OpenMetadataElementsResponsefindMetadataElements(String serverName, String userId, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, int startFrom, int pageSize, FindRequestBody requestBody)Return a list of metadata elements that match the supplied criteria.OpenMetadataElementsResponsefindMetadataElementsWithString(String serverName, String userId, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, int startFrom, int pageSize, SearchStringRequestBody requestBody)Retrieve the metadata elements that contain the requested string.RelatedMetadataElementsListResponsefindRelationshipsBetweenMetadataElements(String serverName, String userId, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, int startFrom, int pageSize, FindRequestBody requestBody)Return a list of relationships that match the requested conditions.GovernanceActionElementsResponsegetActiveClaimedGovernanceActions(String serverName, String userId, String governanceEngineGUID, int startFrom, int pageSize)Retrieve the governance actions that are still in process and that have been claimed by this caller's userId.GovernanceActionElementsResponsegetActiveGovernanceActions(String serverName, String userId, int startFrom, int pageSize)Retrieve the governance actions that are still in process.GovernanceActionElementResponsegetGovernanceAction(String serverName, String userId, String governanceActionGUID)Request the status and properties of an executing governance action request.GovernanceActionElementsResponsegetGovernanceActions(String serverName, String userId, int startFrom, int pageSize)Retrieve the governance actions that are known to the server.OpenMetadataElementResponsegetMetadataElementByGUID(String serverName, String userId, String elementGUID, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime)Retrieve the metadata element using its unique identifier.OpenMetadataElementResponsegetMetadataElementByUniqueName(String serverName, String userId, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, NameRequestBody requestBody)Retrieve the metadata element using its unique name (typically the qualified name).GUIDResponsegetMetadataElementGUIDByUniqueName(String serverName, String userId, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, NameRequestBody requestBody)Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).ConnectionResponsegetOutTopicConnection(String serverName, String userId, String callerId)Return the connection object for the Governance Engine OMAS's out topic.RelatedMetadataElementListResponsegetRelatedMetadataElements(String serverName, String userId, String elementGUID, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, long effectiveTime, int startingAtEnd, int startFrom, int pageSize)Retrieve the metadata elements connected to the supplied element.GUIDResponseinitiateGovernanceAction(String serverName, String userId, String governanceEngineName, GovernanceActionRequestBody requestBody)Create a governance action in the metadata store which will trigger the governance action service associated with the supplied request type.GUIDResponseinitiateGovernanceActionProcess(String serverName, String userId, GovernanceActionProcessRequestBody requestBody)Using the named governance action process as a template, initiate a chain of governance actions.VoidResponselogAssetAuditMessage(String serverName, String userId, String assetGUID, String governanceService, String message)Log an audit message about an asset.VoidResponsereclassifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, UpdatePropertiesRequestBody requestBody)Update the properties of a classification that is currently attached to a specific metadata element.VoidResponserecordCompletionStatus(String serverName, String userId, String governanceActionGUID, CompletionStatusRequestBody requestBody)Declare that all of the processing for the governance action service is finished and the status of the work.VoidResponseunclassifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, UpdateRequestBody requestBody)Remove the named classification from a specific metadata element.VoidResponseupdateActionTargetStatus(String serverName, String userId, ActionTargetStatusRequestBody requestBody)Update the status of a specific action target.VoidResponseupdateClassificationStatusInStore(String serverName, String userId, String metadataElementGUID, String classificationName, UpdateEffectivityDatesRequestBody requestBody)Update the effectivity dates of a specific classification attached to a metadata element.VoidResponseupdateGovernanceActionStatus(String serverName, String userId, String governanceActionGUID, StatusRequestBody requestBody)Update the status of the governance action - providing the caller is permitted.VoidResponseupdateMetadataElementInStore(String serverName, String userId, String metadataElementGUID, UpdatePropertiesRequestBody requestBody)Update the properties of a specific metadata element.VoidResponseupdateMetadataElementStatusInStore(String serverName, String userId, String metadataElementGUID, UpdateStatusRequestBody requestBody)Update the status of specific metadata element.VoidResponseupdateRelatedElementsInStore(String serverName, String userId, String relationshipGUID, UpdatePropertiesRequestBody requestBody)Update the properties associated with a relationship.VoidResponseupdateRelatedElementsStatusInStore(String serverName, String userId, String relationshipGUID, UpdateEffectivityDatesRequestBody requestBody)Update the effectivity dates of a specific relationship between metadata elements.
-
-
-
Method Detail
-
getOutTopicConnection
@GetMapping(path="/topics/out-topic-connection/{callerId}") public ConnectionResponse getOutTopicConnection(@PathVariable String serverName, @PathVariable String userId, @PathVariable String callerId)Return the connection object for the Governance Engine OMAS's out topic.- Parameters:
serverName- name of the service to route the request to.userId- identifier of calling user.callerId- unique identifier of the caller- Returns:
- connection object for the out topic or InvalidParameterException one of the parameters is null or invalid or UserNotAuthorizedException user not authorized to issue this request or PropertyServerException problem retrieving the topic connection.
-
logAssetAuditMessage
@PostMapping(path="/assets/{assetGUID}/log-records/{governanceService}") public VoidResponse logAssetAuditMessage(@PathVariable String serverName, @PathVariable String userId, @PathVariable String assetGUID, @PathVariable String governanceService, @RequestBody String message)Log an audit message about an asset.- Parameters:
serverName- name of server instance to route request touserId- userId of user making request.assetGUID- unique identifier for asset.governanceService- unique name for governance service.message- message to log- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem that occurred within the property server.
-
getMetadataElementByGUID
@GetMapping(path="/open-metadata-store/metadata-elements/{elementGUID}") public OpenMetadataElementResponse getMetadataElementByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime)Retrieve the metadata element using its unique identifier.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdelementGUID- unique identifier for the metadata elementforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.- Returns:
- metadata element properties or InvalidParameterException the unique identifier is null or not known. UserNotAuthorizedException the governance action service is not able to access the element PropertyServerException there is a problem accessing the metadata store
-
getMetadataElementByUniqueName
@PostMapping(path="/open-metadata-store/metadata-elements/by-unique-name") public OpenMetadataElementResponse getMetadataElementByUniqueName(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestBody NameRequestBody requestBody)
Retrieve the metadata element using its unique name (typically the qualified name).- Parameters:
serverName- name of server instance to route request touserId- caller's userIdforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.requestBody- unique name for the metadata element- Returns:
- metadata element properties or InvalidParameterException the unique identifier is null or not known. UserNotAuthorizedException the governance action service is not able to access the element PropertyServerException there is a problem accessing the metadata store
-
getMetadataElementGUIDByUniqueName
@PostMapping(path="/open-metadata-store/metadata-elements/guid-by-unique-name") public GUIDResponse getMetadataElementGUIDByUniqueName(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestBody NameRequestBody requestBody)
Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).- Parameters:
serverName- name of server instance to route request touserId- caller's userIdforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.requestBody- unique name for the metadata element- Returns:
- metadata element unique identifier (guid) or InvalidParameterException the unique identifier is null or not known or UserNotAuthorizedException the governance action service is not able to access the element or PropertyServerException there is a problem accessing the metadata store
-
findMetadataElementsWithString
@PostMapping(path="/open-metadata-store/metadata-elements/by-search-string") public OpenMetadataElementsResponse findMetadataElementsWithString(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody SearchStringRequestBody requestBody)
Retrieve the metadata elements that contain the requested string.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returnedrequestBody- searchString to retrieve- Returns:
- list of matching metadata elements (or null if no elements match the name) or InvalidParameterException the qualified name is null UserNotAuthorizedException the governance action service is not able to access the element PropertyServerException there is a problem accessing the metadata store
-
getRelatedMetadataElements
@GetMapping(path="/open-metadata-store/related-elements/{elementGUID}/type/{relationshipTypeName}") public RelatedMetadataElementListResponse getRelatedMetadataElements(@PathVariable String serverName, @PathVariable String userId, @PathVariable String elementGUID, @PathVariable String relationshipTypeName, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestParam int startingAtEnd, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the metadata elements connected to the supplied element.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdelementGUID- unique identifier for the starting metadata elementrelationshipTypeName- type name of relationships to follow (or null for all)forLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.startingAtEnd- indicates which end to retrieve from (0 is "either end"; 1 is end1; 2 is end 2)startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of related elements InvalidParameterException the unique identifier is null or not known; the relationship type is invalid UserNotAuthorizedException the governance action service is not able to access the elements PropertyServerException there is a problem accessing the metadata store
-
findMetadataElements
@PostMapping(path="/open-metadata-store/metadata-elements/by-search-specification") public OpenMetadataElementsResponse findMetadataElements(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody FindRequestBody requestBody)
Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returnedrequestBody- properties defining the search criteria- Returns:
- a list of elements matching the supplied criteria; null means no matching elements in the metadata store. InvalidParameterException one of the search parameters are is invalid UserNotAuthorizedException the governance action service is not able to access the elements PropertyServerException there is a problem accessing the metadata store
-
findRelationshipsBetweenMetadataElements
@PostMapping(path="/open-metadata-store/related-elements/by-search-specification") public RelatedMetadataElementsListResponse findRelationshipsBetweenMetadataElements(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean forLineage, @RequestParam boolean forDuplicateProcessing, @RequestParam long effectiveTime, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody FindRequestBody requestBody)
Return a list of relationships that match the requested conditions. The results can be received as a series of pages.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdforLineage- the retrieved element is for lineage processing so include archived elementsforDuplicateProcessing- the retrieved element is for duplicate processing so do not combine results from known duplicates.effectiveTime- only return the element if it is effective at this time. Null means anytime. Use "new Date()" for now.startFrom- paging start pointpageSize- maximum results that can be returnedrequestBody- properties defining the search criteria- Returns:
- a list of relationships - null means no matching relationships - or InvalidParameterException one of the search parameters are is invalid UserNotAuthorizedException the governance action service is not able to access the elements PropertyServerException there is a problem accessing the metadata store
-
createMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/new") public GUIDResponse createMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @RequestBody NewMetadataElementRequestBody requestBody)
Create a new metadata element in the metadata store. The type name comes from the open metadata types. The selected type also controls the names and types of the properties that are allowed. This version of the method allows access to advanced features such as multiple states and effectivity dates.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrequestBody- properties for the new element- Returns:
- unique identifier of the new metadata element InvalidParameterException the type name, status or one of the properties is invalid UserNotAuthorizedException the governance action service is not authorized to create this type of element PropertyServerException there is a problem with the metadata store
-
updateMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/update-properties") public VoidResponse updateMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @RequestBody UpdatePropertiesRequestBody requestBody)Update the properties of a specific metadata element. The properties must match the type definition associated with the metadata element when it was created. However, it is possible to update a few properties, or replace all of them by the value used in the replaceProperties flag.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updaterequestBody- new properties- Returns:
- void or InvalidParameterException either the unique identifier or the properties are invalid in some way UserNotAuthorizedException the governance action service is not authorized to update this element PropertyServerException there is a problem with the metadata store
-
updateMetadataElementStatusInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/update-status") public VoidResponse updateMetadataElementStatusInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @RequestBody UpdateStatusRequestBody requestBody)Update the status of specific metadata element. The new status must match a status value that is defined for the element's type assigned when it was created. The effectivity dates control the visibility of the element through specific APIs.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updaterequestBody- new status values - use null to leave as is- Returns:
- void or InvalidParameterException either the unique identifier or the status are invalid in some way UserNotAuthorizedException the governance action service is not authorized to update this element PropertyServerException there is a problem with the metadata store
-
deleteMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/delete") public VoidResponse deleteMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @RequestBody UpdateRequestBody requestBody)Delete a specific metadata element.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updaterequestBody- null request body- Returns:
- void or InvalidParameterException the unique identifier is null or invalid in some way UserNotAuthorizedException the governance action service is not authorized to delete this element PropertyServerException there is a problem with the metadata store
-
classifyMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/new") public VoidResponse classifyMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @PathVariable String classificationName, @RequestBody NewClassificationRequestBody requestBody)Add a new classification to the metadata element. Note that only one classification with the same name can be attached to a metadata element.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- name of the classification to add (if the classification is already present then use reclassify)requestBody- properties to store in the new classification. These must conform to the valid properties associated with the classification name- Returns:
- void or InvalidParameterException the unique identifier or classification name is null or invalid in some way; properties do not match the valid properties associated with the classification's type definition UserNotAuthorizedException the governance action service is not authorized to update this element PropertyServerException there is a problem with the metadata store
-
reclassifyMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/update-properties") public VoidResponse reclassifyMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @PathVariable String classificationName, @RequestBody UpdatePropertiesRequestBody requestBody)Update the properties of a classification that is currently attached to a specific metadata element.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to updaterequestBody- new properties for the classification- Returns:
- void or InvalidParameterException the unique identifier or classification name is null or invalid in some way; properties do not match the valid properties associated with the classification's type definition UserNotAuthorizedException the governance action service is not authorized to update this element/classification PropertyServerException there is a problem with the metadata store
-
updateClassificationStatusInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/update-status") public VoidResponse updateClassificationStatusInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @PathVariable String classificationName, @RequestBody UpdateEffectivityDatesRequestBody requestBody)Update the effectivity dates of a specific classification attached to a metadata element. The effectivity dates control the visibility of the classification through specific APIs.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to updaterequestBody- the dates when this element is active / inactive - null for no restriction- Returns:
- void or InvalidParameterException either the unique identifier or the status are invalid in some way UserNotAuthorizedException the governance action service is not authorized to update this element PropertyServerException there is a problem with the metadata store
-
unclassifyMetadataElementInStore
@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/delete") public VoidResponse unclassifyMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String metadataElementGUID, @PathVariable String classificationName, @RequestBody UpdateRequestBody requestBody)Remove the named classification from a specific metadata element.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdmetadataElementGUID- unique identifier of the metadata element to updateclassificationName- unique name of the classification to removerequestBody- null request body- Returns:
- void or InvalidParameterException the unique identifier or classification name is null or invalid in some way UserNotAuthorizedException the governance action service is not authorized to remove this classification PropertyServerException there is a problem with the metadata store
-
createRelatedElementsInStore
@PostMapping(path="/open-metadata-store/related-elements/new") public GUIDResponse createRelatedElementsInStore(@PathVariable String serverName, @PathVariable String userId, @RequestBody NewRelatedElementsRequestBody requestBody)
Create a relationship between two metadata elements. It is important to put the right element at each end of the relationship according to the type definition since this will affect how the relationship is interpreted.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrequestBody- the properties of the relationship- Returns:
- unique identifier of the new relationship or InvalidParameterException the unique identifier's of the metadata elements are null or invalid in some way; the properties are not valid for this type of relationship UserNotAuthorizedException the governance action service is not authorized to create this type of relationship PropertyServerException there is a problem with the metadata store
-
updateRelatedElementsInStore
@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/update-properties") public VoidResponse updateRelatedElementsInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID, @RequestBody UpdatePropertiesRequestBody requestBody)Update the properties associated with a relationship.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrelationshipGUID- unique identifier of the relationship to updaterequestBody- new properties for the relationship- Returns:
- void or InvalidParameterException the unique identifier of the relationship is null or invalid in some way; the properties are not valid for this type of relationship UserNotAuthorizedException the governance action service is not authorized to update this relationship PropertyServerException there is a problem with the metadata store
-
updateRelatedElementsStatusInStore
@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/update-status") public VoidResponse updateRelatedElementsStatusInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID, @RequestBody UpdateEffectivityDatesRequestBody requestBody)Update the effectivity dates of a specific relationship between metadata elements. The effectivity dates control the visibility of the classification through specific APIs.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrelationshipGUID- unique identifier of the relationship to updaterequestBody- the dates when this element is active / inactive - null for no restriction- Returns:
- void or InvalidParameterException either the unique identifier or the status are invalid in some way UserNotAuthorizedException the governance action service is not authorized to update this element PropertyServerException there is a problem with the metadata store
-
deleteRelatedElementsInStore
@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/delete") public VoidResponse deleteRelatedElementsInStore(@PathVariable String serverName, @PathVariable String userId, @PathVariable String relationshipGUID, @RequestBody(required=false) NullRequestBody requestBody)Delete a relationship between two metadata elements.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrelationshipGUID- unique identifier of the relationship to deleterequestBody- null request body- Returns:
- void or InvalidParameterException the unique identifier of the relationship is null or invalid in some way UserNotAuthorizedException the governance action service is not authorized to delete this relationship PropertyServerException there is a problem with the metadata store
-
updateActionTargetStatus
@PostMapping(path="/governance-actions/action-targets/update") public VoidResponse updateActionTargetStatus(@PathVariable String serverName, @PathVariable String userId, @RequestBody ActionTargetStatusRequestBody requestBody)
Update the status of a specific action target. By default, these values are derived from the values for the governance action service. However, if the governance action service has to process name target elements, then setting the status on each individual target will show the progress of the governance action service.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrequestBody- relationship properties- Returns:
- void or InvalidParameterException the action target GUID is not recognized UserNotAuthorizedException the governance action service is not authorized to update the action target properties PropertyServerException there is a problem connecting to the metadata store
-
updateGovernanceActionStatus
@PostMapping(path="/governance-actions/{governanceActionGUID}/status/update") public VoidResponse updateGovernanceActionStatus(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceActionGUID, @RequestBody StatusRequestBody requestBody)Update the status of the governance action - providing the caller is permitted.- Parameters:
serverName- name of server instance to route request touserId- identifier of calling usergovernanceActionGUID- identifier of the governance action requestrequestBody- new status ordinal- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
recordCompletionStatus
@PostMapping(path="/governance-actions/{governanceActionGUID}/completion-status") public VoidResponse recordCompletionStatus(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceActionGUID, @RequestBody CompletionStatusRequestBody requestBody)Declare that all of the processing for the governance action service is finished and the status of the work.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdgovernanceActionGUID- unique identifier of the governance action to updaterequestBody- completion status enum value, optional guard strings for triggering subsequent action(s) plus a list of additional elements to add to the action targets for the next phase- Returns:
- void or InvalidParameterException the completion status is null UserNotAuthorizedException the governance action service is not authorized to update the governance action service status PropertyServerException there is a problem connecting to the metadata store
-
initiateGovernanceAction
@PostMapping(path="/governance-engines/{governanceEngineName}/governance-actions/initiate") public GUIDResponse initiateGovernanceAction(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceEngineName, @RequestBody GovernanceActionRequestBody requestBody)Create a governance action in the metadata store which will trigger the governance action service associated with the supplied request type. The governance action remains to act as a record of the actions taken for auditing.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdgovernanceEngineName- name of the governance engine that should execute the requestrequestBody- properties for the governance action and to pass to the governance action service- Returns:
- unique identifier of the governance action or InvalidParameterException null qualified name UserNotAuthorizedException this governance action service is not authorized to create a governance action PropertyServerException there is a problem with the metadata store
-
initiateGovernanceActionProcess
@PostMapping(path="/governance-action-processes/initiate") public GUIDResponse initiateGovernanceActionProcess(@PathVariable String serverName, @PathVariable String userId, @RequestBody GovernanceActionProcessRequestBody requestBody)
Using the named governance action process as a template, initiate a chain of governance actions.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrequestBody- properties to initiate the new instance of the process- Returns:
- unique identifier of the first governance action of the process or InvalidParameterException null or unrecognized qualified name of the process UserNotAuthorizedException this governance action service is not authorized to create a governance action process PropertyServerException there is a problem with the metadata store
-
createIncidentReport
@PostMapping(path="/incident-reports") public GUIDResponse createIncidentReport(@PathVariable String serverName, @PathVariable String userId, @RequestBody IncidentReportRequestBody requestBody)
Create an incident report to capture the situation detected by this governance action service. This incident report will be processed by other governance activities.- Parameters:
serverName- name of server instance to route request touserId- caller's userIdrequestBody- properties for the new incident report- Returns:
- unique identifier of the resulting incident report or InvalidParameterException null or non-unique qualified name for the incident report UserNotAuthorizedException this governance action service is not authorized to create a incident report PropertyServerException there is a problem with the metadata store
-
getGovernanceAction
@GetMapping(path="/governance-actions/{governanceActionGUID}") public GovernanceActionElementResponse getGovernanceAction(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceActionGUID)Request the status and properties of an executing governance action request.- Parameters:
serverName- name of server instance to route request touserId- identifier of calling usergovernanceActionGUID- identifier of the governance action request.- Returns:
- governance action properties and status or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
claimGovernanceAction
@PostMapping(path="/governance-actions/{governanceActionGUID}/claim") public VoidResponse claimGovernanceAction(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceActionGUID, @RequestBody(required=false) NullRequestBody requestBody)Request that execution of a governance action is allocated to the caller.- Parameters:
serverName- name of server instance to route request touserId- identifier of calling usergovernanceActionGUID- identifier of the governance action request.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
getGovernanceActions
@GetMapping(path="/governance-actions") public GovernanceActionElementsResponse getGovernanceActions(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the governance actions that are known to the server.- Parameters:
serverName- name of server instance to route request touserId- userId of callerstartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
getActiveGovernanceActions
@GetMapping(path="/governance-actions/active") public GovernanceActionElementsResponse getActiveGovernanceActions(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize)
Retrieve the governance actions that are still in process.- Parameters:
serverName- name of server instance to route request touserId- userId of callerstartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
getActiveClaimedGovernanceActions
@GetMapping(path="/governance-engines/{governanceEngineGUID}/active-governance-actions") public GovernanceActionElementsResponse getActiveClaimedGovernanceActions(@PathVariable String serverName, @PathVariable String userId, @PathVariable String governanceEngineGUID, @RequestParam int startFrom, @RequestParam int pageSize)Retrieve the governance actions that are still in process and that have been claimed by this caller's userId. This call is used when the caller restarts.- Parameters:
serverName- name of server instance to route request touserId- userId of callergovernanceEngineGUID- unique identifier of governance enginestartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements or InvalidParameterException one of the parameters is null or invalid. UserNotAuthorizedException user not authorized to issue this request. PropertyServerException there was a problem detected by the metadata store.
-
-