Skip to content

get_satellite async

get_satellite(
    satellite_id: Uuid,
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> GetSatelliteResponse

Returns a satellite.

Parameters:

  • satellite_id (Uuid) –

    UUID of a satellite.

Raises:

Source code in docs_src/capo_groundstation/_services/async_ground_station.py
async def get_satellite(
    self,
    satellite_id: "capo_groundstation.types.uuid.Uuid",
    *,
    config_overrides: Optional[AsyncGroundStationClientConfig] = None,
) -> "capo_groundstation.types.get_satellite_response.GetSatelliteResponse":
    """<p>Returns a satellite.</p>

    Args:
        satellite_id: <p>UUID of a satellite.</p>

    Raises:
        capo_groundstation.errors.dependency_exception.DependencyException: <p>Dependency encountered an error.</p>
        capo_groundstation.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more parameters are not valid.</p>
        capo_groundstation.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource was not found.</p>
        capo_groundstation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_groundstation.types.get_satellite_request.GetSatelliteRequest]",
    ) -> AsyncOperationResponse[
        "capo_groundstation.types.get_satellite_response.GetSatelliteResponse"
    ]:
        import capo_groundstation._operations.ground_station.get_satellite

        (
            output,
            http_response,
        ) = await capo_groundstation._operations.ground_station.get_satellite.async_get_satellite(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetSatellite")
    )
    input_: capo_groundstation.types.get_satellite_request.GetSatelliteRequest = {
        "satellite_id": satellite_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output