grpcurl:
-
Get an access token for authentication:
-
In the services and endpoints list, 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 the request body should contain, open the
***_service.protofile of the selected endpoint. You can open it from the same services and endpoints list. For example, to get a list of VMs in a project, use theListInstancesRequestmessage. It requires theparent_idparameter (the ID of your project). -
Send the
grpcurlrequest with the request body and authorization header. For example, to get a list of VMs, you can run the followinggrpcurlcommand: