NeptuneData / Client / list_ml_endpoints

list_ml_endpoints#

NeptuneData.Client.list_ml_endpoints(**kwargs)#

Lists existing inference endpoints. See Managing inference endpoints using the endpoints command.

When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ListMLEndpoints IAM action in that cluster.

See also: AWS API Documentation

Request Syntax

response = client.list_ml_endpoints(
    maxItems=123,
    neptuneIamRoleArn='string'
)
Parameters:
  • maxItems (integer) – The maximum number of items to return (from 1 to 1024; the default is 10.

  • neptuneIamRoleArn (string) – The ARN of an IAM role that provides Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur.

Return type:

dict

Returns:

Response Syntax

{
    'ids': [
        'string',
    ]
}

Response Structure

  • (dict) –

    • ids (list) –

      A page from the list of inference endpoint IDs.

      • (string) –

Exceptions

  • NeptuneData.Client.exceptions.UnsupportedOperationException

  • NeptuneData.Client.exceptions.BadRequestException

  • NeptuneData.Client.exceptions.MLResourceNotFoundException

  • NeptuneData.Client.exceptions.InvalidParameterException

  • NeptuneData.Client.exceptions.ClientTimeoutException

  • NeptuneData.Client.exceptions.PreconditionsFailedException

  • NeptuneData.Client.exceptions.ConstraintViolationException

  • NeptuneData.Client.exceptions.InvalidArgumentException

  • NeptuneData.Client.exceptions.MissingParameterException

  • NeptuneData.Client.exceptions.IllegalArgumentException

  • NeptuneData.Client.exceptions.TooManyRequestsException