Skip to content

get_license_endpoint async

get_license_endpoint(
    license_endpoint_id: LicenseEndpointId,
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> GetLicenseEndpointResponse

Gets a licence endpoint.

Parameters:

Raises:

Source code in docs_src/capo_deadline/_services/async_deadline.py
async def get_license_endpoint(
    self,
    license_endpoint_id: "capo_deadline.types.license_endpoint_id.LicenseEndpointId",
    *,
    config_overrides: Optional[AsyncdeadlineClientConfig] = None,
) -> "capo_deadline.types.get_license_endpoint_response.GetLicenseEndpointResponse":
    """<p>Gets a licence endpoint.</p>

    Args:
        license_endpoint_id: <p>The license endpoint ID.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_deadline.types.get_license_endpoint_request.GetLicenseEndpointRequest]",
    ) -> AsyncOperationResponse[
        "capo_deadline.types.get_license_endpoint_response.GetLicenseEndpointResponse"
    ]:
        import capo_deadline._operations.deadline.get_license_endpoint

        (
            output,
            http_response,
        ) = await capo_deadline._operations.deadline.get_license_endpoint.async_get_license_endpoint(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetLicenseEndpoint")
    )
    input_: capo_deadline.types.get_license_endpoint_request.GetLicenseEndpointRequest = {
        "license_endpoint_id": license_endpoint_id
    }

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