Skip to content

SystemDomainGetAssignedServiceProviderListRequest

Bases: OCIRequest

Request a list of service providers that have a given domain assigned. If resellerId is specified, only the service providers within the reseller should be returned. If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

The response is either SystemDomainGetAssignedServiceProviderListResponse or ErrorResponse.

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

Attributes:

domain (str):

reseller_id (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemDomainGetAssignedServiceProviderListRequest(OCIRequest):
    """Request a list of service providers that have a given domain assigned.
        If resellerId is specified, only the service providers within the reseller should be returned.
        If reseller administrator sends the request and resellerId is not specified, the administrator's resellerId is used.

        The response is either SystemDomainGetAssignedServiceProviderListResponse or ErrorResponse.

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

    Attributes:

        domain (str):

        reseller_id (Optional[str]):

    """

    domain: str = field(metadata={"alias": "domain"})

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

Responses

Bases: OCIDataResponse

Response to SystemDomainGetAssignedServiceProviderListRequest. The table columns are: "Service Provider Id", "Service Provider Name", "Is Enterprise" and "Reseller Id". The following columns are only returned in AS data mode: "Reseller Id"

Attributes:

service_provider_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemDomainGetAssignedServiceProviderListResponse(OCIDataResponse):
    """Response to SystemDomainGetAssignedServiceProviderListRequest.
        The table columns are: \"Service Provider Id\", \"Service Provider Name\", \"Is Enterprise\" and \"Reseller Id\".
        The following columns are only returned in AS data mode:
          \"Reseller Id\"

    Attributes:

        service_provider_table (OCITable):

    """

    service_provider_table: OCITable = field(metadata={"alias": "serviceProviderTable"})

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 SystemDomainGetAssignedServiceProviderListRequest

client = Client()

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

print(response)