SystemNetworkSynchingServerAddRequest22V2
Bases: OCIRequest
Request to add a Network Server to the system. The response is either a SuccessResponse or an ErrorResponse.
The following elements are only used in XS data mode and ignored in AS data mode:
order
Attributes:
net_address (str):
port (int):
description (Optional[str]):
order (Optional[int]):
secure (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class SystemNetworkSynchingServerAddRequest22V2(OCIRequest):
"""Request to add a Network Server to the system.
The response is either a SuccessResponse or an ErrorResponse.
The following elements are only used in XS data mode and ignored in AS data mode:
order
Attributes:
net_address (str):
port (int):
description (Optional[str]):
order (Optional[int]):
secure (bool):
"""
net_address: str = field(metadata={"alias": "netAddress"})
port: int = field(metadata={"alias": "port"})
description: Optional[str] = field(default=None, metadata={"alias": "description"})
order: Optional[int] = field(default=None, metadata={"alias": "order"})
secure: bool = field(metadata={"alias": "secure"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 SystemNetworkSynchingServerAddRequest22V2
client = Client()
command = SystemNetworkSynchingServerAddRequest22V2(
net_address=...,
port=...,
description=...,
order=...,
secure=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("SystemNetworkSynchingServerAddRequest22V2",
net_address=...,
port=...,
description=...,
order=...,
secure=...,
)
print(response)