Help Center> > Developer Guide > Java >ECS Java SDK Demo

ECS Java SDK Demo

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 Java 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

cloudserver v1

Code

job

Code

The ECS v1.1 Java 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

cloudserver

Code

The Nova v2 Java 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

flavor

Code

floating ip

Code

interface

Code

keypair

Code

quota set

Code

security group

Code

server

Code

server group

Code

zone

Code

The following table lists the scenario example code provided by the ECS Java SDK:

Scenario

Example code

create one or more servers

Code

create server with password

Code