Retrieves information about an export image task, including its current state, progress, and any error details.
Parameters:
-
task_id
(Optional[UUID], default:
None
)
–
The unique identifier of the export image task to retrieve information about.
Raises:
Source code in docs_src/capo_appstream/_services/async_app_stream.py
| async def get_export_image_task(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
task_id: Optional["capo_appstream.types.uuid.UUID"] = None,
) -> "capo_appstream.types.get_export_image_task_result.GetExportImageTaskResult":
"""<p>Retrieves information about an export image task, including its current state, progress, and any error details.</p>
Args:
task_id: <p>The unique identifier of the export image task to retrieve information about.</p>
Raises:
capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</p>
capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appstream.types.get_export_image_task_request.GetExportImageTaskRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.get_export_image_task_result.GetExportImageTaskResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.get_export_image_task
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.get_export_image_task.async_get_export_image_task(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetExportImageTask")
)
input_: capo_appstream.types.get_export_image_task_request.GetExportImageTaskRequest = {}
if task_id is not None:
input_["task_id"] = task_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|