Skip to content

Commit abd89d2

Browse files
security group examples and some release notes
1 parent c96f53e commit abd89d2

43 files changed

Lines changed: 4386 additions & 822 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

classes/softlayer_network_securitygroup/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,26 @@ <h3>python</h3>
107107

108108
</ul>
109109

110+
<h3>rest</h3>
111+
<ul>
112+
113+
<li>
114+
<a href="https://softlayer.github.io/rest/addgeteditremovesecuritygrouprules/">Add, get, edit and remove Security Group rules</a>
115+
<div class="meta">Examples of how to add, get, edit and remove Security Group rules.</div>
116+
</li>
117+
118+
<li>
119+
<a href="https://softlayer.github.io/rest/creategeteditdeletesecuritygroup/">Create, get, edit and delete Security Groups</a>
120+
<div class="meta">Examples of how to create, get, edit and delete Security Groups.</div>
121+
</li>
122+
123+
<li>
124+
<a href="https://softlayer.github.io/rest/getattachdetachnetworkcomponent/">Get network components, attach and detach network components</a>
125+
<div class="meta">Examples of how to get a VSI&#39;s network components, attach network components to and detach network components from Security Groups.</div>
126+
</li>
127+
128+
</ul>
129+
110130
<h3>ruby</h3>
111131
<ul>
112132

classes/softlayer_network_securitygroup/index.xml

Lines changed: 242 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,248 @@
66
<language>en-US</language>
77
<author>Enthusiastic Hugo User</author>
88
<rights>Copyright (c) 2014, Enthusiastic Hugo User; all rights reserved.</rights>
9-
<updated>Wed, 09 Aug 2017 00:00:00 UTC</updated>
9+
<updated>Mon, 02 Oct 2017 00:00:00 UTC</updated>
10+
11+
<item>
12+
<title>Add, get, edit and remove Security Group rules</title>
13+
<link>https://softlayer.github.io/rest/addgeteditremovesecuritygrouprules/</link>
14+
<pubDate>Mon, 02 Oct 2017 00:00:00 UTC</pubDate>
15+
<author>Enthusiastic Hugo User</author>
16+
<guid>https://softlayer.github.io/rest/addgeteditremovesecuritygrouprules/</guid>
17+
<description>
18+
19+
&lt;h3 id=&#34;add-rules&#34;&gt;Add rules&lt;/h3&gt;
20+
21+
&lt;p&gt;Operation: &lt;code&gt;POST&lt;/code&gt;&lt;/p&gt;
22+
23+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/addRules&lt;/code&gt;&lt;/p&gt;
24+
25+
&lt;p&gt;Example CURL:&lt;/p&gt;
26+
27+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -X POST &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/136741/addRules&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [[{&amp;quot;direction&amp;quot;: &amp;quot;ingress&amp;quot;,&amp;quot;portRangeMin&amp;quot;:100,&amp;quot;portRangeMax&amp;quot;:101,&amp;quot;protocol&amp;quot;:&amp;quot;tcp&amp;quot;}]]}&#39;
28+
&lt;/code&gt;&lt;/pre&gt;
29+
30+
&lt;hr /&gt;
31+
32+
&lt;h3 id=&#34;get-rules&#34;&gt;Get rules&lt;/h3&gt;
33+
34+
&lt;p&gt;Operation: &lt;code&gt;GET&lt;/code&gt;&lt;/p&gt;
35+
36+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/getObject?objectMask=mask[rules]&lt;/code&gt;&lt;/p&gt;
37+
38+
&lt;p&gt;Example CURL:&lt;/p&gt;
39+
40+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -g -X GET &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/42401/getObject?objectMask=mask[rules]&#39;
41+
&lt;/code&gt;&lt;/pre&gt;
42+
43+
&lt;p&gt;Example Response:&lt;/p&gt;
44+
45+
&lt;pre&gt;&lt;code&gt;{
46+
&amp;quot;createDate&amp;quot;: &amp;quot;2017-05-19T14:00:15-05:00&amp;quot;,
47+
&amp;quot;description&amp;quot;: &amp;quot;VSIs in this group respond to ping requests.&amp;quot;,
48+
&amp;quot;id&amp;quot;: 42401,
49+
&amp;quot;modifyDate&amp;quot;: null,
50+
&amp;quot;name&amp;quot;: &amp;quot;allow_ping&amp;quot;,
51+
&amp;quot;rules&amp;quot;: [
52+
{
53+
&amp;quot;direction&amp;quot;: &amp;quot;ingress&amp;quot;,
54+
&amp;quot;ethertype&amp;quot;: &amp;quot;IPv4&amp;quot;,
55+
&amp;quot;id&amp;quot;: 43001,
56+
&amp;quot;portRangeMax&amp;quot;: 0,
57+
&amp;quot;portRangeMin&amp;quot;: 8,
58+
&amp;quot;protocol&amp;quot;: &amp;quot;icmp&amp;quot;,
59+
&amp;quot;remoteGroupId&amp;quot;: null,
60+
&amp;quot;securityGroupId&amp;quot;: 42401
61+
}
62+
]
63+
}
64+
65+
&lt;/code&gt;&lt;/pre&gt;
66+
67+
&lt;hr /&gt;
68+
69+
&lt;h3 id=&#34;edit-rules&#34;&gt;Edit Rules&lt;/h3&gt;
70+
71+
&lt;p&gt;Operation: &lt;code&gt;PUT&lt;/code&gt;&lt;/p&gt;
72+
73+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/editRules&lt;/code&gt;&lt;/p&gt;
74+
75+
&lt;p&gt;Example CURL:&lt;/p&gt;
76+
77+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -X PUT &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456/editRules&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [[{&amp;quot;id&amp;quot;: 11111,&amp;quot;portRangeMin&amp;quot;: 99},{&amp;quot;id&amp;quot;: 22222,&amp;quot;portRangeMin&amp;quot;: 199}]]}&#39;
78+
&lt;/code&gt;&lt;/pre&gt;
79+
80+
&lt;hr /&gt;
81+
82+
&lt;h3 id=&#34;remove-rules&#34;&gt;Remove Rules&lt;/h3&gt;
83+
84+
&lt;p&gt;Operation: &lt;code&gt;PUT&lt;/code&gt;&lt;/p&gt;
85+
86+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/removeRules&lt;/code&gt;&lt;/p&gt;
87+
88+
&lt;p&gt;Example CURL:&lt;/p&gt;
89+
90+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -X PUT &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456/removeRules&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [[11111]]}&#39;
91+
&lt;/code&gt;&lt;/pre&gt;
92+
</description>
93+
</item>
94+
95+
<item>
96+
<title>Create, get, edit and delete Security Groups</title>
97+
<link>https://softlayer.github.io/rest/creategeteditdeletesecuritygroup/</link>
98+
<pubDate>Mon, 02 Oct 2017 00:00:00 UTC</pubDate>
99+
<author>Enthusiastic Hugo User</author>
100+
<guid>https://softlayer.github.io/rest/creategeteditdeletesecuritygroup/</guid>
101+
<description>
102+
103+
&lt;h3 id=&#34;create-security-group&#34;&gt;Create Security Group&lt;/h3&gt;
104+
105+
&lt;p&gt;Operation: &lt;code&gt;POST&lt;/code&gt;&lt;/p&gt;
106+
107+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup&lt;/code&gt;&lt;/p&gt;
108+
109+
&lt;p&gt;Example CURL:&lt;/p&gt;
110+
111+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -k -X POST &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [{&amp;quot;name&amp;quot;: &amp;quot;some name&amp;quot;,&amp;quot;description&amp;quot;:&amp;quot;some description&amp;quot;}]}&#39;
112+
&lt;/code&gt;&lt;/pre&gt;
113+
114+
&lt;p&gt;Example Response:&lt;/p&gt;
115+
116+
&lt;pre&gt;&lt;code&gt;{
117+
&amp;quot;createDate&amp;quot;: &amp;quot;2017-10-11T11:04:42-05:00&amp;quot;,
118+
&amp;quot;description&amp;quot;: &amp;quot;some description&amp;quot;,
119+
&amp;quot;id&amp;quot;: 123456,
120+
&amp;quot;modifyDate&amp;quot;: null,
121+
&amp;quot;name&amp;quot;: &amp;quot;some name&amp;quot;
122+
}
123+
&lt;/code&gt;&lt;/pre&gt;
124+
125+
&lt;hr /&gt;
126+
127+
&lt;h3 id=&#34;get-security-group&#34;&gt;Get Security Group&lt;/h3&gt;
128+
129+
&lt;p&gt;Operation: &lt;code&gt;GET&lt;/code&gt;&lt;/p&gt;
130+
131+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}&lt;/code&gt;&lt;/p&gt;
132+
133+
&lt;p&gt;Example CURL:&lt;/p&gt;
134+
135+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -k -X GET &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456&#39;
136+
&lt;/code&gt;&lt;/pre&gt;
137+
138+
&lt;p&gt;Example Response:&lt;/p&gt;
139+
140+
&lt;pre&gt;&lt;code&gt;{
141+
&amp;quot;createDate&amp;quot;: &amp;quot;2017-10-11T11:04:42-05:00&amp;quot;,
142+
&amp;quot;description&amp;quot;: &amp;quot;some description&amp;quot;,
143+
&amp;quot;id&amp;quot;: 123456,
144+
&amp;quot;modifyDate&amp;quot;: null,
145+
&amp;quot;name&amp;quot;: &amp;quot;some name&amp;quot;
146+
}
147+
&lt;/code&gt;&lt;/pre&gt;
148+
149+
&lt;hr /&gt;
150+
151+
&lt;h3 id=&#34;edit-security-group&#34;&gt;Edit Security Group&lt;/h3&gt;
152+
153+
&lt;p&gt;Operation: &lt;code&gt;PUT&lt;/code&gt;&lt;/p&gt;
154+
155+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}&lt;/code&gt;&lt;/p&gt;
156+
157+
&lt;p&gt;Example CURL:&lt;/p&gt;
158+
159+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -k -X PUT &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [{&amp;quot;description&amp;quot;: &amp;quot;new description&amp;quot;}]}&#39;
160+
&lt;/code&gt;&lt;/pre&gt;
161+
162+
&lt;p&gt;Example Response:&lt;/p&gt;
163+
164+
&lt;pre&gt;&lt;code&gt;true
165+
&lt;/code&gt;&lt;/pre&gt;
166+
167+
&lt;hr /&gt;
168+
169+
&lt;h3 id=&#34;delete-security-group&#34;&gt;Delete Security Group&lt;/h3&gt;
170+
171+
&lt;p&gt;Operation: &lt;code&gt;DELETE&lt;/code&gt;&lt;/p&gt;
172+
173+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}&lt;/code&gt;&lt;/p&gt;
174+
175+
&lt;p&gt;Example CURL:&lt;/p&gt;
176+
177+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -k -X DELETE &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456&#39;
178+
&lt;/code&gt;&lt;/pre&gt;
179+
180+
&lt;p&gt;Example Response:&lt;/p&gt;
181+
182+
&lt;pre&gt;&lt;code&gt;true
183+
&lt;/code&gt;&lt;/pre&gt;
184+
</description>
185+
</item>
186+
187+
<item>
188+
<title>Get network components, attach and detach network components</title>
189+
<link>https://softlayer.github.io/rest/getattachdetachnetworkcomponent/</link>
190+
<pubDate>Mon, 02 Oct 2017 00:00:00 UTC</pubDate>
191+
<author>Enthusiastic Hugo User</author>
192+
<guid>https://softlayer.github.io/rest/getattachdetachnetworkcomponent/</guid>
193+
<description>
194+
195+
&lt;h3 id=&#34;get-the-network-component-ids-for-a-vsi&#34;&gt;Get the network component IDs for a VSI&lt;/h3&gt;
196+
197+
&lt;p&gt;Operation: &lt;code&gt;GET&lt;/code&gt;&lt;/p&gt;
198+
199+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Virtual_Guest/{guest_id}/getObject.json?objectMask=mask[networkComponents.port,networkComponents.id]&lt;/code&gt;&lt;/p&gt;
200+
201+
&lt;p&gt;Example CURL:&lt;/p&gt;
202+
203+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -g -X GET &#39;https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/30000007/getObject.json?objectMask=mask[networkComponents.port,networkComponents.id]&#39;
204+
&lt;/code&gt;&lt;/pre&gt;
205+
206+
&lt;p&gt;Example Response:&lt;/p&gt;
207+
208+
&lt;pre&gt;&lt;code&gt;{
209+
&amp;lt;output omitted&amp;gt;
210+
&amp;quot;networkComponents&amp;quot;: [
211+
{
212+
&amp;quot;id&amp;quot;: 20000003,
213+
&amp;quot;port&amp;quot;: 0
214+
},
215+
{
216+
&amp;quot;id&amp;quot;: 20000001,
217+
&amp;quot;port&amp;quot;: 1
218+
}
219+
],
220+
&amp;lt;output omitted&amp;gt;
221+
}
222+
&lt;/code&gt;&lt;/pre&gt;
223+
224+
&lt;hr /&gt;
225+
226+
&lt;h3 id=&#34;attach-network-component-to-security-group&#34;&gt;Attach network component to Security Group&lt;/h3&gt;
227+
228+
&lt;p&gt;Operation: &lt;code&gt;POST&lt;/code&gt;&lt;/p&gt;
229+
230+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/attachNetworkComponents&lt;/code&gt;&lt;/p&gt;
231+
232+
&lt;p&gt;Example CURL:&lt;/p&gt;
233+
234+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -X POST &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456/attachNetworkComponents&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [[20000003]]}&#39;
235+
&lt;/code&gt;&lt;/pre&gt;
236+
237+
&lt;hr /&gt;
238+
239+
&lt;h3 id=&#34;detach-network-component-from-security-group&#34;&gt;Detach network component from Security Group&lt;/h3&gt;
240+
241+
&lt;p&gt;Operation: &lt;code&gt;POST&lt;/code&gt;&lt;/p&gt;
242+
243+
&lt;p&gt;URL: &lt;code&gt;SoftLayer_Network_SecurityGroup/{securitygroup_id}/detachNetworkComponents&lt;/code&gt;&lt;/p&gt;
244+
245+
&lt;p&gt;Example CURL:&lt;/p&gt;
246+
247+
&lt;pre&gt;&lt;code&gt;$ curl --user &amp;quot;$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY&amp;quot; -X POST &#39;https://api.softlayer.com/rest/v3/SoftLayer_Network_SecurityGroup/123456/detachNetworkComponents&#39; -d &#39;{&amp;quot;parameters&amp;quot;: [[20000003]]}&#39;
248+
&lt;/code&gt;&lt;/pre&gt;
249+
</description>
250+
</item>
10251

11252
<item>
12253
<title>Add and remove rules in a Security group</title>

index.html

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,43 @@
9999
<h1>Release Notes</h1>
100100
<div class="col-md-9">
101101

102+
<div class="well well-sm release-note example col-md-12">
103+
<h3>
104+
<a href="https://softlayer.github.io/release_notes/2017/20171012/"> October 12, 2017</a>
105+
<br>
106+
</h3>
107+
<div class="container">
108+
<div class="row">
109+
<div class="col-md-8">
110+
111+
112+
<h4 id="portal">Portal</h4>
113+
114+
<ul>
115+
<li>Fixed an error that was being displayed when an end user clicks on “Reconfigure System Configuration” link on complete order page.</li>
116+
</ul>
117+
118+
<h4 id="api">API</h4>
119+
120+
<ul>
121+
<li>Removed the ability to edit or view a users profile via the API if the users status is set to <code>cancel_pending</code>.<br /></li>
122+
</ul>
123+
124+
<h4 id="backend">Backend</h4>
125+
126+
<ul>
127+
<li>None</li>
128+
</ul>
129+
130+
</div>
131+
</div>
132+
</div>
133+
</div>
134+
135+
136+
137+
138+
102139
<div class="well well-sm release-note example col-md-12">
103140
<h3>
104141
<a href="https://softlayer.github.io/release_notes/2017/20171005/"> October 5, 2017</a>
@@ -448,44 +485,6 @@ <h4 id="backend">Backend</h4>
448485

449486

450487

451-
<div class="well well-sm release-note example col-md-12">
452-
<h3>
453-
<a href="https://softlayer.github.io/release_notes/2017/20170726/"> July 26, 2017</a>
454-
<br>
455-
</h3>
456-
<div class="container">
457-
<div class="row">
458-
<div class="col-md-8">
459-
460-
461-
<h4 id="portal">Portal</h4>
462-
463-
<ul>
464-
<li>None</li>
465-
</ul>
466-
467-
<h4 id="api">API</h4>
468-
469-
<ul>
470-
<li>Deprecated the <code>blueIdAuthenticationRequiredFlag</code> method and replaced it with the <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Account/ibmIdAuthenticationRequiredFlag">ibmIdAuthenticationRequiredFlag</a> method for the <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Account">SoftLayer_Account</a> service.<br /></li>
471-
<li>Added <code>isoCodeAlphaThree</code> to the returned data for the <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Locale_Country/getCountries">SoftLayer_Locale_Country::getCountries</a> and <a href="http://sldn.softlayer.com/reference/services/SoftLayer_Locale_Country/getAvailableCountries">SoftLayer_Locale_Country::getAvailableCountries</a> methods. This returns the 3 character ISO code for a country.</li>
472-
</ul>
473-
474-
<h4 id="backend">Backend</h4>
475-
476-
<ul>
477-
<li>Added logic for Brazil and India to support local currency for billing.</li>
478-
</ul>
479-
480-
</div>
481-
</div>
482-
</div>
483-
</div>
484-
485-
486-
487-
488-
489488
</div>
490489

491490

0 commit comments

Comments
 (0)