forked from rgeyer/rs_guzzle_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rs_guzzle_client_v1.5.xml
112 lines (102 loc) · 6.69 KB
/
rs_guzzle_client_v1.5.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<client>
<commands>
<!-- Start Clouds -->
<command name="clouds" class="Guzzle.Rs.Command.DefaultCommand">
<doc>List the clouds available to this account.</doc>
<param name="path" type="string" static="clouds{{output_format}}" />
<param name="method" type="string" static="GET" />
<param name="output_format" type="enum:.json,.xml" default=".json" location="path" />
<param name="filters" type="array" required="false" />
</command>
<command name="cloud" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Show information about a single cloud</doc>
<param name="path" type="string" static="clouds/{{id}}{{output_format}}" />
<param name="method" type="string" static="GET" />
<param name="output_format" type="enum:.json,.xml" default=".json" location="path" />
<param name="id" type="integer" required="true" />
<param name="return_class" type="string" static="Guzzle\Rs\Model\Cloud" />
</command>
<!-- Start Security Groups -->
<command name="security_groups_create" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Create a new security group</doc>
<param name="path" type="string" static="clouds/{{cloud_id}}/security_groups" />
<param name="method" type="string" static="POST" />
<param name="cloud_id" type="integer" required="true" location="path"/>
<param name="security_group[name]" type="string" required="true" />
<param name="security_group[description]" type="string" required="false" />
<!-- <param name="return_class" type="string" static="Guzzle\Rs\Model\SecurityGroup" /> -->
</command>
<command name="security_groups_destroy" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Show a Security Group</doc>
<param name="path" type="string" static="clouds/{{cloud_id}}/security_groups/{{id}}" />
<param name="method" type="string" static="DELETE" />
<param name="id" type="string" required="true" location="path" />
<param name="cloud_id" type="integer" required="true" location="path"/>
</command>
<command name="security_groups" class="Guzzle.Rs.Command.DefaultCommand">
<doc>List all Security Groups</doc>
<param name="path" type="string" static="clouds/{{cloud_id}}/security_groups{{output_format}}" />
<param name="method" type="string" static="GET" />
<param name="output_format" type="enum:.json,.xml" default=".json" location="path" />
<param name="cloud_id" type="integer" required="true" location="path"/>
<param name="filters" type="array" required="false" />
<param name="view" type="enum:default,tiny" required="false" />
</command>
<command name="security_group" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Show one Security Group</doc>
<param name="path" type="string" static="cloud/{{cloud_id}}/security_groups/{{id}}{{output_format}}" />
<param name="method" type="string" static="GET" />
<param name="id" type="string" required="true" location="path" />
<param name="cloud_id" type="integer" required="true" location="path"/>
<!-- <param name="return_class" type="string" static="Guzzle\Rs\Model\SecurityGroup" /> -->
<param name="output_format" type="enum:.json,.xml" default=".json" location="path" />
<param name="view" type="enum:default,tiny" required="false" />
</command>
<!-- Start Servers -->
<command name="servers_create" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Creates a new server, and configures its corresponding "next" instance with the received parameters.</doc>
<param name="path" type="string" static="servers" />
<param name="method" type="string" static="POST" />
<param name="server[deployment_href]" type="string" required="true" />
<param name="server[description]" type="string" required="false" />
<param name="server[instance][cloud_href]" type="string" required="true" />
<param name="server[instance][datacenter_href]" type="string" required="false" />
<param name="server[instance][image_href]" type="string" required="false" />
<param name="server[instance][inputs]" type="array" required="false" />
<param name="server[instance][instance_type_href]" type="string" required="false" />
<param name="server[instance][kernel_image_href]" type="string" required="false" />
<param name="server[instance][multi_cloud_image_href]" type="string" required="false" />
<param name="server[instance][ramdisk_image_href]" type="string" required="false" />
<param name="server[instance][security_group_hrefs]" type="array" required="false" />
<param name="server[instance][server_template_href]" type="string" required="true" />
<param name="server[instance][ssh_key_href]" type="string" required="false" />
<param name="server[instance][user_data]" type="string" required="false" />
<param name="server[name]" type="string" required="true" />
<!-- <param name="return_class" type="string" static="Guzzle\Rs\Model\Server" /> -->
</command>
<command name="servers_destroy" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Deletes a given server.</doc>
<param name="path" type="string" static="servers/{{id}}" />
<param name="method" type="string" static="DELETE" />
<param name="id" type="string" required="true" location="path" />
</command>
<command name="server" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Shows the information of a single server.</doc>
<param name="path" type="string" static="servers/{{id}}{{output_format}}" />
<param name="method" type="string" static="GET" />
<param name="id" type="integer" required="true" location="path" />
<!-- <param name="return_class" type="string" static="Guzzle\Rs\Model\Server" /> -->
<param name="output_format" type="enum:.json,.xml" default=".json" location="path" />
<param name="view" type="enum:default,instance_detail" required="false" />
</command>
<command name="servers_launch" class="Guzzle.Rs.Command.DefaultCommand">
<doc>Launches the "next" instance of this server. This function is equivalent to invoking the launch action on the URL of this servers next_instance. See Instances#launch for details.</doc>
<param name="path" type="string" static="servers/{{id}}/launch" />
<param name="method" type="string" static="POST" />
<param name="id" type="integer" required="true" />
<param name="inputs" type="array" required="false" />
<!-- <param name="return_class" type="string" static="Guzzle\Rs\Model\Server" /> -->
</command>
</commands>
</client>