Skip to content

SystemRoutingGetRequest

Bases: OCIRequest

Request the system's general routing attributes. The response is either a SystemRoutingGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemRoutingGetRequest(OCIRequest):
    """Request the system's general routing attributes.
        The response is either a SystemRoutingGetResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemRoutingGetRequest.

Attributes:

is_route_round_robin (bool):

route_timer_seconds (int):

dns_resolved_address_selection_policy (str):

stateful_expiration_minutes (int):

max_addresses_per_hostname (int):

max_addresses_during_setup (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemRoutingGetResponse(OCIDataResponse):
    """Response to SystemRoutingGetRequest.

    Attributes:

        is_route_round_robin (bool):

        route_timer_seconds (int):

        dns_resolved_address_selection_policy (str):

        stateful_expiration_minutes (int):

        max_addresses_per_hostname (int):

        max_addresses_during_setup (int):

    """

    is_route_round_robin: bool = field(metadata={"alias": "isRouteRoundRobin"})

    route_timer_seconds: int = field(metadata={"alias": "routeTimerSeconds"})

    dns_resolved_address_selection_policy: str = field(
        metadata={"alias": "dnsResolvedAddressSelectionPolicy"}
    )

    stateful_expiration_minutes: int = field(
        metadata={"alias": "statefulExpirationMinutes"}
    )

    max_addresses_per_hostname: int = field(
        metadata={"alias": "maxAddressesPerHostname"}
    )

    max_addresses_during_setup: int = field(
        metadata={"alias": "maxAddressesDuringSetup"}
    )

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 SystemRoutingGetRequest

client = Client()

command = SystemRoutingGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemRoutingGetRequest")

print(response)