APIs use a set of methods for resource management. Each gRPC method is mapped to a certain HTTP method (verb). For example, the
List method is mapped to the verb
GET, while the
Create method is mapped to the verb
POST. Mapping to HTTP requests is specified in a method's description in google.api.http annotation.
There are two sets of methods in APIs:
- Standard API methods allow you to perform CRUD operations: create, retrieve, update, and delete resources. Standard methods have the same semantics and work in the same way for all APIs.
- Additional API methods enhance the functionality of standard methods. They can be used to perform operations such as attaching a disk, restarting a VM instance, and so on. The semantics of additional methods differs from that of standard ones.