Skip to content

SystemOCICallControlApplicationAddACLEntryRequest

Bases: OCIRequest

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

Attributes:

application_id (str):

net_address (str):

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

    Attributes:

        application_id (str):

        net_address (str):

        description (Optional[str]):

    """

    application_id: str = field(metadata={"alias": "applicationId"})

    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_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemOCICallControlApplicationAddACLEntryRequest

client = Client()

command = SystemOCICallControlApplicationAddACLEntryRequest(
    application_id=...,
    net_address=...,
    description=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemOCICallControlApplicationAddACLEntryRequest",
    application_id=...,
    net_address=...,
    description=...,
)

print(response)