GetInfrastructuresStatus

Description

The GetInfrastructuresStatus method provides the current status of infrastructures. An Infrastructure Status is composed of an Infrastructure State (STOPPED or RUNNING) and two Infrastructure Transitions (the current one and the last one).

A Transition is composed of a name (STARTING or STOPPING) and a Step (NONE, LOADING, VALIDATING, PROVISIONING or DEPROVISIONING) or a Result (NONE, SUCCEEDED or FAILED).

Parameters

REST example

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

{"d": {
}}

Use case with Java Client

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

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

		InfrastructuresStatus status = client.getInfrastructuresStatus();
		System.out.println(status);
	}
}