RemovePorts removes one or more forwarded HTTP ports from an instance in a single call.
(instanceID string, ports []int)
| 306 | |
| 307 | // RemovePorts removes one or more forwarded HTTP ports from an instance in a single call. |
| 308 | func (c *Client) RemovePorts(instanceID string, ports []int) error { |
| 309 | if len(ports) == 0 { |
| 310 | return nil |
| 311 | } |
| 312 | _, err := c.UpdatePorts(instanceID, nil, ports) |
| 313 | return err |
| 314 | } |
| 315 | |
| 316 | func (c *Client) CreateSnapshot(req CreateSnapshotRequest) (*CreateSnapshotResponse, error) { |
| 317 | var resp CreateSnapshotResponse |
nothing calls this directly
no test coverage detected