Skip to content

SystemEmergencyCallDDoSProtectionGetRequest

Bases: OCIRequest

Get the system Emergency Call DDos Protection configurations. The response is either SystemEmergencyCallDDoSProtectionGetResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemEmergencyCallDDoSProtectionGetRequest(OCIRequest):
    """Get the system Emergency Call DDos Protection configurations.
      The response is either SystemEmergencyCallDDoSProtectionGetResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemEmergencyCallDDoSProtectionGetRequest.

Attributes:

enabled (bool):

sample_interval_seconds (int):

protection_rate (Optional[int]):

protection_action (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemEmergencyCallDDoSProtectionGetResponse(OCIDataResponse):
    """Response to the SystemEmergencyCallDDoSProtectionGetRequest.

    Attributes:

        enabled (bool):

        sample_interval_seconds (int):

        protection_rate (Optional[int]):

        protection_action (str):

    """

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

    sample_interval_seconds: int = field(metadata={"alias": "sampleIntervalSeconds"})

    protection_rate: Optional[int] = field(
        default=None, metadata={"alias": "protectionRate"}
    )

    protection_action: str = field(metadata={"alias": "protectionAction"})

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 SystemEmergencyCallDDoSProtectionGetRequest

client = Client()

command = SystemEmergencyCallDDoSProtectionGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemEmergencyCallDDoSProtectionGetRequest")

print(response)