Skip to main content

MGCLatticeDbAccessService.requestAccess

Provisions a just-in-time AxDB db_owner grant for the calling administrator and the supplied public IPv4 address. Re-checks authorization in code (defense in depth, even though the operation is privilege-gated) and then delegates to provisionAccessCore - the single shared provisioning code path used by BOTH this service operation and the maintenance form, so the logic is never duplicated. The generated password is returned exactly once on the live response.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeDbAccessServiceGroup/MGCLatticeDbAccessService/requestAccess
  • Service class: MGCLatticeDbAccessService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeDbAccessRequestContractNoThe request carrying the IpAddress to allowlist and optional DurationHours.

Returns​

MGCLatticeDbAccessResponseContract

An MGCLatticeDbAccessResponseContract; the password is populated only on this live response.

Security​

  • Requires privilege MGCLatticeDbAccessAdminPrivilege