Skip to content

SystemDeviceManagementTagSetExportRequest

Bases: OCIRequest

Request to export a custom tag set. Tag set name should be unique through out the system including all the reseller level tag sets. The response is either a SystemDeviceManagementTagSetExportResponse or an ErrorResponse.

Attributes:

tag_set_name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementTagSetExportRequest(OCIRequest):
    """Request to export a custom tag set.
        Tag set name should be unique through out the system including all the reseller level tag sets.
        The response is either a SystemDeviceManagementTagSetExportResponse or an ErrorResponse.

    Attributes:

        tag_set_name (str):

    """

    tag_set_name: str = field(metadata={"alias": "tagSetName"})

Responses

Bases: OCIDataResponse

Response to SystemDeviceManagementTagSetExportRequest.

Attributes:

file (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementTagSetExportResponse(OCIDataResponse):
    """Response to SystemDeviceManagementTagSetExportRequest.

    Attributes:

        file (str):

    """

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

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 SystemDeviceManagementTagSetExportRequest

client = Client()

command = SystemDeviceManagementTagSetExportRequest(
    tag_set_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemDeviceManagementTagSetExportRequest",
    tag_set_name=...,
)

print(response)