Skip to content

SystemNetworkAdministratorParametersGetRequest

Bases: OCIRequest

Get the network administrator settings for the system. The response is either a SystemNetworkAdministratorParametersGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemNetworkAdministratorParametersGetRequest(OCIRequest):
    """Get the network administrator settings for the system.
        The response is either a SystemNetworkAdministratorParametersGetResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemNetworkAdministratorParametersGetRequest. The response contains the network administrator settings for the system.

Attributes:

enabled (bool):

cache_refresh_interval_in_minutes (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemNetworkAdministratorParametersGetResponse(OCIDataResponse):
    """Response to the SystemNetworkAdministratorParametersGetRequest.
        The response contains the network administrator settings for the system.

    Attributes:

        enabled (bool):

        cache_refresh_interval_in_minutes (int):

    """

    enabled: bool = field(metadata={"alias": "enabled"})

    cache_refresh_interval_in_minutes: int = field(
        metadata={"alias": "cacheRefreshIntervalInMinutes"}
    )

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 SystemNetworkAdministratorParametersGetRequest

client = Client()

command = SystemNetworkAdministratorParametersGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemNetworkAdministratorParametersGetRequest")

print(response)