java.lang.Object
org.odpi.openmetadata.viewservices.securityofficer.server.spring.SecurityOfficerResource

@RestController @RequestMapping("/servers/{serverName}/api/open-metadata/security-officer") public class SecurityOfficerResource extends Object
The SecurityOfficerResource provides part of the server-side implementation of the Security Officer OMVS. =
  • Constructor Details

    • SecurityOfficerResource

      public SecurityOfficerResource()
      Default constructor
  • Method Details

    • setUserAccount

      @PostMapping(path="/platforms/{platformGUID}/user-accounts") public VoidResponse setUserAccount(@PathVariable String serverName, @PathVariable String platformGUID, @RequestBody(required=false) UserAccountRequestBody requestBody)
      Set up or update a user account in the platform metadata security connector The user requires operator permission for the platform unless it is their own user account they are retrieving.
      Parameters:
      serverName - name of called server
      platformGUID - unique identifier of the platform
      requestBody - requestBody used to create and configure the connector that performs platform security
      Returns:
      void response
    • getUserAccount

      @GetMapping(path="/platforms/{platformGUID}/user-accounts/{accountUserId}") public UserAccountResponse getUserAccount(@PathVariable String serverName, @PathVariable String platformGUID, @PathVariable String accountUserId)
      Return the user account object for the requested user from the platform metadata security connector. Null is returned if no platform security or user account has been set up. The user requires operator permission for the platform unless it is their own user account they are retrieving.
      Parameters:
      serverName - name of called server
      platformGUID - unique identifier of the platform
      accountUserId - user id of the account
      Returns:
      user account response
    • deleteUserAccount

      @DeleteMapping(path="/platforms/{platformGUID}/user-accounts/{accountUserId}") public VoidResponse deleteUserAccount(@PathVariable String serverName, @PathVariable String platformGUID, @PathVariable String accountUserId)
      Clear the account for a user with the platform security connector.
      Parameters:
      serverName - name of called server
      platformGUID - unique identifier of the platform
      accountUserId - user id of the account
      Returns:
      void response
    • linkGovernanceZones

      @PostMapping(path="/governance-zones/{governanceZoneGUID}/governance-zone-hierarchies/{nestedGovernanceZoneGUID}/attach") public VoidResponse linkGovernanceZones(@PathVariable String serverName, @PathVariable String governanceZoneGUID, @PathVariable String nestedGovernanceZoneGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody)
      Attach a nested governance zone to a broader governance zone definition.
      Parameters:
      serverName - name of called server
      governanceZoneGUID - unique identifier of the first governance zone definition
      nestedGovernanceZoneGUID - unique identifier of the second governance zone definition
      requestBody - description of the relationship.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
    • detachGovernanceZones

      @PostMapping(path="/governance-zones/{governanceZoneGUID}/governance-zone-hierarchies/{nestedGovernanceZoneGUID}/detach") public VoidResponse detachGovernanceZones(@PathVariable String serverName, @PathVariable String governanceZoneGUID, @PathVariable String nestedGovernanceZoneGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody)
      Detach a governance zone definition from a hierarchical relationship.
      Parameters:
      serverName - name of called server
      governanceZoneGUID - unique identifier of the first governance zone definition
      nestedGovernanceZoneGUID - unique identifier of the second governance zone definition
      requestBody - description of the relationship.
      Returns:
      void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.