Skip to content

SystemSMDIAddACLEntryRequest14sp2

Bases: OCIRequest

Add an entry to the SMDI access control list. The response is either SuccessResponse or ErrorResponse.

Attributes:

net_address (str):

description (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemSMDIAddACLEntryRequest14sp2(OCIRequest):
    """Add an entry to the SMDI access control list.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        net_address (str):

        description (Optional[str]):

    """

    net_address: str = field(metadata={"alias": "netAddress"})

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

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 SystemSMDIAddACLEntryRequest14sp2

client = Client()

command = SystemSMDIAddACLEntryRequest14sp2(
    net_address=...,
    description=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemSMDIAddACLEntryRequest14sp2",
    net_address=...,
    description=...,
)

print(response)