File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function loadEntity($data)
33
33
$ this ->apiToFriendly ($ data , $ this ->getEntityMap ())
34
34
);
35
35
}
36
-
36
+
37
37
/**
38
38
* Assigns an IP address with a NIC
39
39
* @param $id
@@ -48,7 +48,19 @@ public function assignIpAddress($id, $ipAddressId)
48
48
);
49
49
return $ response ->getStatusCode () == 202 ;
50
50
}
51
-
51
+
52
+ /**
53
+ * Detaches an IP address from a NIC
54
+ * @param $id
55
+ * @param $ipAddressId
56
+ * @return bool
57
+ */
58
+ public function detachIpAddress ($ id , $ ipAddressId )
59
+ {
60
+ $ response = $ this ->delete ($ this ->collectionPath . '/ ' . $ id . '/ip-addresses/ ' . $ ipAddressId );
61
+ return $ response ->getStatusCode () == 202 ;
62
+ }
63
+
52
64
/**
53
65
* Get the IP address records associated with a NIC
54
66
* @param $id
You can’t perform that action at this time.
0 commit comments