StopInfrastructures

Description

The StopInfrastructures method sends a request to stop infrastructures.

Parameters

REST example

POST http://localhost:7400/Runtime/v1/Service.svc/StartInfrastructures HTTP/1.1
Accept: application/json
Content-Type: application/json
Cache-Control: nocache
Pragma: nocache

{
  "d":
    {
    	"Infrastructures": "---\ninfrastructures:\n - name: My Cloud infrastructure\n   type: NEOTYS_CLOUD_LOAD_GENERATOR\n   workgroup: test\n   architecture: MEDIUM\n   duration: 1h\n   zones:\n   - id: us-east-1\n     count: 1\n   - id: us-west-4\n     count: 1",
    	"NCPLogin": "loginUser:VyVmg=="
    }
}

Use case with Java Client

import com.neotys.rest.runtime.client.RuntimeAPIClient;
import com.neotys.rest.runtime.client.RuntimeAPIClientFactory;

public class StartTestExample {
	public static void main(String[] args) throws Exception {
		final RuntimeAPIClient client = RuntimeAPIClientFactory
				.newClient("http://localhost:7400/Runtime/v1/Service.svc/");

		client.stopInfrastructures();
	}
}