Skip to content

GroupDnGetActivationListRequest

Bases: OCIRequest

Get the list of activated and deactivated DNs in a group. Ranges of DNs with identical assignment and activation properties are coalesced to a single table row entry. Only DNs assigned to a users are listed in the response when the number activation Mode is set to "User Activation Enabled" Dns assigned to the IMRN pool are not listed in the response. The response is either a GroupDnGetActivationListResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupDnGetActivationListRequest(OCIRequest):
    """Get the list of activated and deactivated DNs in a group.
        Ranges of DNs with identical assignment and activation properties are coalesced
        to a single table row entry.
        Only DNs assigned to a users are listed in the response when the number
        activation Mode is set to \"User Activation Enabled\"
        Dns assigned to the IMRN pool are not listed in the response.
        The response is either a GroupDnGetActivationListResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

Responses

Bases: OCIDataResponse

Response to the GroupDnGetActivationListRequest. The response contains a table with columns: "Phone Numbers", and "Activated". ". Phone Numbers are only returned if assigned to a user. The "Phone Numbers" column contains either a single DN or a range of DNs. The "Activated" column indicates if the phone number(s) are activated or not.

Attributes:

dn_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupDnGetActivationListResponse(OCIDataResponse):
    """Response to the GroupDnGetActivationListRequest.
        The response contains a table with columns: \"Phone Numbers\", and \"Activated\".  \".  Phone Numbers are only returned if assigned to a user.
        The \"Phone Numbers\" column contains either a single DN or a range of DNs.
        The \"Activated\" column indicates if the phone number(s) are activated or not.

    Attributes:

        dn_table (OCITable):

    """

    dn_table: OCITable = field(metadata={"alias": "dnTable"})

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 GroupDnGetActivationListRequest

client = Client()

command = GroupDnGetActivationListRequest(
    service_provider_id=...,
    group_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("GroupDnGetActivationListRequest",
    service_provider_id=...,
    group_id=...,
)

print(response)