@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/governance-engine/users/{userId}")
public class GovernedAssetOMASResource
extends Object
| Constructor and Description |
|---|
GovernedAssetOMASResource() |
| Modifier and Type | Method and Description |
|---|---|
StringResponse |
createSoftwareServerCapability(String serverName,
String userId,
SoftwareServerCapabilityRequestBody requestBody)
Create a Software Server Capability entity
|
GovernedAssetResponse |
getGovernedAsset(String serverName,
String userId,
String assetGuid)
Returns a single governed asset
|
GovernedAssetListResponse |
getGovernedAssets(String serverName,
String userId,
List<String> entityTypes,
Integer offset,
Integer pageSize)
Returns the list of governed asset
|
SoftwareServerCapabilityResponse |
getSoftwareServerCapabilityByGUID(String serverName,
String userId,
String guid)
Returns the Software Server Capability entity by global identifier
|
@GetMapping(path="/assets",
produces="application/json")
public GovernedAssetListResponse getGovernedAssets(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestParam(value="entityTypes",required=false)
List<String> entityTypes,
@RequestParam(value="offset",required=false)
Integer offset,
@RequestParam(value="pageSize",required=false)
Integer pageSize)
These include the tag associations but not the definitions of those tags
userId - - String - userId of user making request.entityTypes - - the type of the entities that are returned@GetMapping(path="/assets/{assetGuid}",
produces="application/json")
public GovernedAssetResponse getGovernedAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGuid)
These include the tag associations but not the definitions of those tags
userId - - String - userId of user making request.assetGuid - - Guid of the asset component to retrieve@PostMapping(path="/software-server-capabilities") public StringResponse createSoftwareServerCapability(@PathVariable(value="serverName") String serverName, @PathVariable(value="userId") String userId, @RequestBody SoftwareServerCapabilityRequestBody requestBody)
serverName - - String - the name of server instance to calluserId - - String - userId of user making request.requestBody - - SoftwareServerCapabilityRequestBody@GetMapping(path="/software-server-capabilities/{guid}")
public SoftwareServerCapabilityResponse getSoftwareServerCapabilityByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - name of server instance to calluserId - the name of the calling userguid - guid of the software serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.