Skip to content

SystemAdminGetRequest22

Bases: OCIRequest

Get a system or provisioning administrators profile. The response is either a SystemAdminGetResponse22 or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdminGetRequest22(OCIRequest):
    """Get a system or provisioning administrators profile.
        The response is either a SystemAdminGetResponse22 or an ErrorResponse.

    Attributes:

        user_id (str):

    """

    user_id: str = field(metadata={"alias": "userId"})

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 SystemAdminGetRequest22

client = Client()

command = SystemAdminGetRequest22(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemAdminGetRequest22",
    user_id=...,
)

print(response)