Skip to content

SystemDnGetUtilizationListRequest

Bases: OCIRequest

Request a list of DN utilizations by service providers. If resellerId is specified, the DNs assigned to the enterprises/service providers within the reseller are returned. If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

The response is either SystemDnUtilizationGetListResponse or ErrorResponse.

The following data elements are only used in AS data mode:
  resellerId

Attributes:

reseller_id (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDnGetUtilizationListRequest(OCIRequest):
    """Request a list of DN utilizations by service providers. If resellerId is specified,
        the DNs assigned to the enterprises/service providers within the reseller are returned.
        If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

        The response is either SystemDnUtilizationGetListResponse or ErrorResponse.

        The following data elements are only used in AS data mode:
          resellerId

    Attributes:

        reseller_id (Optional[str]):

    """

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

Responses

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 SystemDnGetUtilizationListRequest

client = Client()

command = SystemDnGetUtilizationListRequest(
    reseller_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

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

print(response)