Skip to content

SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest

Bases: OCIRequest

Request a summary table of all enterprise trunk prefixes in the system. If resellerId is specified, only the prefixes assigned to the enterprise/service provider within the given reseller are returned. If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

The response is either SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse or ErrorResponse.

Attributes:

reseller_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest(OCIRequest):
    """Request a summary table of all enterprise trunk prefixes in the system.
        If resellerId is specified, only the prefixes assigned to the enterprise/service provider within
        the given reseller are returned.
        If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

        The response is either SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse or ErrorResponse.

    Attributes:

        reseller_id (Optional[str]):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest. The column headings are "Number Prefix", "Service Provider Id", "Is Enterprise", "User Id", "Enterprise Trunk", "Is Active", "Reseller Id" ", "Extension Range Start" and "Extension Range End".

Attributes:

prefix_summary_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListResponse(OCIDataResponse):
    """Response to SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest.
        The column headings are \"Number Prefix\", \"Service Provider Id\", \"Is Enterprise\", \"User Id\", \"Enterprise Trunk\",
        \"Is Active\", \"Reseller Id\" \", \"Extension Range Start\" and \"Extension Range End\".

    Attributes:

        prefix_summary_table (OCITable):

    """

    prefix_summary_table: OCITable = field(metadata={"alias": "prefixSummaryTable"})

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 SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest

client = Client()

command = SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest(
    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("SystemRouteListEnterpriseTrunkNumberPrefixGetSummaryListRequest",
    reseller_id=...,
)

print(response)