JSON API » regions » regions/machines/get

Gets the fields of how a machine is used within a region.

Input parameters

Requires authentication and the system role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
machineIntegerID of machine.Yes
regionIntegerID of region.Yes

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

Fields of machine within region.

Example: With required parameters

http://enswitch.example.com/api/json/regions/machines/get/?auth_username=user;auth_password=password;machine=1;region=2

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "machine":1, "region":2, "priority":1 } }

Change history

VersionChanges
3.13Function added.