@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/governance-program/users/{userId}")
public class GovernanceZonesResource
extends Object
| Constructor and Description |
|---|
GovernanceZonesResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
createGovernanceZone(String serverName,
String userId,
GovernanceZoneProperties requestBody)
Create a definition of a governance zone.
|
VoidResponse |
deleteGovernanceZone(String serverName,
String userId,
String zoneGUID,
NullRequestBody requestBody)
Remove the definition of a zone.
|
GovernanceZoneResponse |
getGovernanceZoneByGUID(String serverName,
String userId,
String zoneGUID)
Return information about a specific governance zone.
|
GovernanceZoneResponse |
getGovernanceZoneByName(String serverName,
String userId,
String qualifiedName)
Return information about a specific governance zone.
|
GovernanceZoneDefinitionResponse |
getGovernanceZoneDefinitionByGUID(String serverName,
String userId,
String zoneGUID)
Return information about a specific governance zone and its linked governance definitions.
|
GovernanceZoneListResponse |
getGovernanceZonesForDomain(String serverName,
String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return information about the defined governance zones.
|
VoidResponse |
linkZonesInHierarchy(String serverName,
String userId,
String parentZoneGUID,
String childZoneGUID,
NullRequestBody requestBody)
Link two related governance zones together as part of a hierarchy.
|
VoidResponse |
linkZoneToGovernanceDefinition(String serverName,
String userId,
String zoneGUID,
String definitionGUID,
NullRequestBody requestBody)
Link a governance zone to a governance definition that controls how the assets in the zone should be governed.
|
VoidResponse |
unlinkZoneFromGovernanceDefinition(String serverName,
String userId,
String zoneGUID,
String definitionGUID,
NullRequestBody requestBody)
Remove the link between a zone and a governance definition.
|
VoidResponse |
unlinkZonesInHierarchy(String serverName,
String userId,
String parentZoneGUID,
String childZoneGUID,
NullRequestBody requestBody)
Remove the link between two zones in the zone hierarchy.
|
VoidResponse |
updateGovernanceZone(String serverName,
String userId,
String zoneGUID,
boolean isMergeUpdate,
GovernanceZoneProperties requestBody)
Update the definition of a zone.
|
@PostMapping(path="/governance-zones") public GUIDResponse createGovernanceZone(@PathVariable String serverName, @PathVariable String userId, @RequestBody GovernanceZoneProperties requestBody)
serverName - name of the server instance to connect touserId - calling userrequestBody - other properties for a governance zone@PostMapping(path="/governance-zones/{zoneGUID}")
public VoidResponse updateGovernanceZone(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID,
@RequestParam
boolean isMergeUpdate,
@RequestBody
GovernanceZoneProperties requestBody)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier of zoneisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?requestBody - properties to change@PostMapping(path="/governance-zones/{zoneGUID}/delete")
public VoidResponse deleteGovernanceZone(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier of zonerequestBody - null requestBody@PostMapping(path="/governance-zones/{parentZoneGUID}/nested-zone/{childZoneGUID}/link")
public VoidResponse linkZonesInHierarchy(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String parentZoneGUID,
@PathVariable
String childZoneGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userparentZoneGUID - unique identifier of the parent zonechildZoneGUID - unique identifier of the child zonerequestBody - null requestBody@PostMapping(path="/governance-zones/{parentZoneGUID}/nested-zone/{childZoneGUID}/unlink")
public VoidResponse unlinkZonesInHierarchy(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String parentZoneGUID,
@PathVariable
String childZoneGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userparentZoneGUID - unique identifier of the parent zonechildZoneGUID - unique identifier of the child zonerequestBody - null requestBody@PostMapping(path="/governance-zones/{zoneGUID}/governed-by/{definitionGUID}/link")
public VoidResponse linkZoneToGovernanceDefinition(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID,
@PathVariable
String definitionGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier of the zonedefinitionGUID - unique identifier of the governance definitionrequestBody - null requestBody@PostMapping(path="/governance-zones/{zoneGUID}/governed-by/{definitionGUID}/unlink")
public VoidResponse unlinkZoneFromGovernanceDefinition(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID,
@PathVariable
String definitionGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier of the zonedefinitionGUID - unique identifier of the governance definitionrequestBody - null requestBody@GetMapping(path="/governance-zones/{zoneGUID}")
public GovernanceZoneResponse getGovernanceZoneByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier for the zone@GetMapping(path="/governance-zones/name/{qualifiedName}")
public GovernanceZoneResponse getGovernanceZoneByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String qualifiedName)
serverName - name of the server instance to connect touserId - calling userqualifiedName - unique name for the zone@GetMapping(path="/governance-zones/for-domain") public GovernanceZoneListResponse getGovernanceZonesForDomain(@PathVariable String serverName, @PathVariable String userId, @RequestParam int domainIdentifier, @RequestParam int startFrom, @RequestParam int pageSize)
serverName - name of the server instance to connect touserId - calling userdomainIdentifier - identifier for the desired governance domainstartFrom - paging start pointpageSize - maximum results that can be returned@GetMapping(path="/governance-zones/{zoneGUID}/with-definitions")
public GovernanceZoneDefinitionResponse getGovernanceZoneDefinitionByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String zoneGUID)
serverName - name of the server instance to connect touserId - calling userzoneGUID - unique identifier for the zoneCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.