Skip to content

SystemRoutingProfileGetListRequest

Bases: OCIRequest

Request to get the list of system routing profiles.

If resellerId is specified, the routing profiles assigned to the given reseller are returned. If reseller administrator sends the request, resellerId is not specified, the administrator’s resellerId is used.
If system or provisioning administrator sends the request, resellerId is not specified, all system routing profiles are returned.

The response is either a SystemRoutingProfileGetListResponse or an ErrorResponse.

Attributes:

reseller_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemRoutingProfileGetListRequest(OCIRequest):
    """Request to get the list of system routing profiles.

        If resellerId is specified, the routing profiles assigned to the given reseller are returned. If reseller administrator sends the request, resellerId is not specified, the administrator’s resellerId is used.
        If system or provisioning administrator sends the request, resellerId is not specified, all system routing profiles are returned.

        The response is either a SystemRoutingProfileGetListResponse or an ErrorResponse.

    Attributes:

        reseller_id (Optional[str]):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemRoutingProfileGetListRequest. Returns a list of routing profiles defined in the system.

Attributes:

routing_profile (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemRoutingProfileGetListResponse(OCIDataResponse):
    """Response to SystemRoutingProfileGetListRequest.
        Returns a list of routing profiles defined in the system.

    Attributes:

        routing_profile (Optional[List[str]]):

    """

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

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 SystemRoutingProfileGetListRequest

client = Client()

command = SystemRoutingProfileGetListRequest(
    reseller_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemRoutingProfileGetListRequest",
    reseller_id=...,
)

print(response)