Skip to content

SystemAdminGetListRequest

Bases: OCIRequest

Get a list of system administrators. The response is either a SystemAdminGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdminGetListRequest(OCIRequest):
    """Get a list of system administrators.
        The response is either a SystemAdminGetResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemAdminGetRequest22. The response contains the system or provisioning administrators profile information.

The following elements are only used in AS data mode and ignored in XS data mode.
accountDisabled
lastAuthenticatedDate

Attributes:

first_name (Optional[str]):

last_name (Optional[str]):

language (str):

admin_type (str):

read_only (bool):

account_disabled (bool):

last_authenticated_date (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdminGetResponse22(OCIDataResponse):
    """Response to the SystemAdminGetRequest22.
        The response contains the system or provisioning administrators profile information.

        The following elements are only used in AS data mode and ignored in XS data mode.
        accountDisabled
        lastAuthenticatedDate

    Attributes:

        first_name (Optional[str]):

        last_name (Optional[str]):

        language (str):

        admin_type (str):

        read_only (bool):

        account_disabled (bool):

        last_authenticated_date (str):

    """

    first_name: Optional[str] = field(default=None, metadata={"alias": "firstName"})

    last_name: Optional[str] = field(default=None, metadata={"alias": "lastName"})

    language: str = field(metadata={"alias": "language"})

    admin_type: str = field(metadata={"alias": "adminType"})

    read_only: bool = field(metadata={"alias": "readOnly"})

    account_disabled: bool = field(metadata={"alias": "accountDisabled"})

    last_authenticated_date: str = field(metadata={"alias": "lastAuthenticatedDate"})

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import SystemAdminGetListRequest

client = Client()

command = SystemAdminGetListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemAdminGetListRequest")

print(response)