Skip to main content

MGCLatticeDbAccessResponseContract

Response contract for a just-in-time AxDB db_owner access request. Carries the provisioned database user name, the connection's server and database names, and the grant expiry. The Password member is populated ONLY on this live response: it is never persisted to a table and never written to the infolog or any log. A failed request returns Success=false with a non-sensitive message and no credentials.

Methods​

new​

Initializes a new instance of the MGCLatticeDbAccessResponseContract class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeDbAccessResponseContract class.

  • Visibility: public
  • Returns: MGCLatticeDbAccessResponseContract A new MGCLatticeDbAccessResponseContract instance.

No parameters.

parmCorrelationId​

Gets or sets the caller's correlation identifier, echoed from the request.

  • Visibility: public
  • Returns: Guid The correlation identifier.
NameTypeOptionalDescription
_correlationIdGuidYesThe correlation identifier.

parmErrorCode​

Gets or sets why a request failed (for example AccessDenied, LicenseNotValid, ValidationFailed); None on success.

  • Visibility: public
  • Returns: MGCLatticeServiceErrorCode The error code.
NameTypeOptionalDescription
_errorCodeMGCLatticeServiceErrorCodeYesThe error code.

parmSuccess​

Gets or sets whether the access request completed successfully.

  • Visibility: public
  • Returns: boolean True if the operation succeeded; otherwise, false.
NameTypeOptionalDescription
_successbooleanYesTrue if the operation succeeded; otherwise, false.

parmMessage​

Gets or sets the human-readable, non-sensitive result message.

  • Visibility: public
  • Returns: str The result message text.
NameTypeOptionalDescription
_messagestrYesThe result message text.

parmUsername​

Gets or sets the provisioned contained database user name.

  • Visibility: public
  • Returns: str The Username value.
NameTypeOptionalDescription
_usernamestrYesThe Username value.

parmPassword​

Gets or sets the generated password. SECURITY: this value is populated only on the live response returned to the caller for a single successful request. It is never persisted to any table and never written to the infolog or any log.

  • Visibility: public
  • Returns: str The Password value.
NameTypeOptionalDescription
_passwordstrYesThe Password value.

parmServerName​

Gets or sets the AxDB server name the caller should connect to.

  • Visibility: public
  • Returns: str The ServerName value.
NameTypeOptionalDescription
_serverNamestrYesThe ServerName value.

parmDatabaseName​

Gets or sets the AxDB database name the caller should connect to.

  • Visibility: public
  • Returns: str The DatabaseName value.
NameTypeOptionalDescription
_databaseNamestrYesThe DatabaseName value.

parmExpiresDateTimeUtc​

Gets or sets the UTC timestamp at which the grant expires and is revoked by the expiry batch.

  • Visibility: public
  • Returns: utcdatetime The ExpiresDateTimeUtc value.
NameTypeOptionalDescription
_expiresDateTimeUtcutcdatetimeYesThe ExpiresDateTimeUtc value.