grpcurl. To send a Nebius AI Cloud API request:
-
Get an access token for authentication:
-
On GitHub, find a gRPC service that you want to send a request to, and determine its endpoint.
For example, to get a list of virtual machines (VMs) in a project, use the following:
compute.api.nebius.cloud:443endpoint for the Compute service.nebius.compute.v1.InstanceServicegRPC service for VMs.
-
To check what body your request should have, open the
***_service.protofile of the selected endpoint. You can open it from the same page on GitHub. For example, to get a list of VMs in a project, use theListInstancesRequestmessage. It requires theparent_idparameter (the ID of your project). -
Prepare and send the request.
For example, to get a list of VMs, you can run the following
grpcurlcommand: