ECS Go SDK User Guide

The SDK corresponds to RESTful APIs. For details about the APIs supported by the latest SDK version and the mapping between the SDK and APIs, see here.

For details about the parameters supported by SDK, see the description of ECS APIs.

The ECS v1 go SDK supports operations on the following resource objects. The following table lists the example code for adding, modifying, deleting, and querying a resource.

Resource Object

Example Code

cloudservers

Code

tags

Code

flavors

Code

The ECS v1.1 go SDK supports operations on the following resource objects. The following table lists the example code for adding, modifying, deleting, and querying a resource.

Resource Object

Example Code

cloudservers

Code

The ECS v2 go SDK supports operations on the following resource objects. The following table lists the example code for adding, modifying, deleting, and querying a resource.

Resource Object

Example Code

cloudservers

Code

The Nova v2 go SDK supports operations on the following resource objects. The following table lists the example code for adding, modifying, deleting, and querying a resource.

Resource Object

Example Code

flavors

Code

images

Code

keypairs

Code

quotas

Code

servers

Code

volume attach

Code